Giter Club home page Giter Club logo

Comments (4)

harrism avatar harrism commented on June 1, 2024

This could indeed be useful. Please see the discussion on #6 though. Portability is very important here, so a good design is important. I welcome pull requests. Thanks!

from hemi.

lordofhyphens avatar lordofhyphens commented on June 1, 2024

I'm a bit torn on whether to look at this from the CUDA side or the host. I suspect it would be easier to use the math function names. This way, the functionality is clear (especially w/r/t rounding). Going the other way (from functions in to API is more natural to program in, but there's a pile of very specific functions with different rounding behaviors.

Right now, I've got everything as templated inline functions. Interesting side effect is that when the compiler is evaluating what template to use when the result of ?: is being passed to a function, the output is a bit weird when the types differ slightly (like a signed/unsigned int). It's fixable via typecasting, though.

On a related note, is there a preference as to a framework to use for writing testcases for some of these additions to Hemi?

from hemi.

lordofhyphens avatar lordofhyphens commented on June 1, 2024

See #10 for a pull request for this.

from hemi.

harrism avatar harrism commented on June 1, 2024

I would probably use google test, BTW (haven't looked at pull request yet).

from hemi.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.