hemi
hemi copied to clipboard
Partial math function support in in the hemi:: namespace and some tests
Added a tests folder for the math function support. There's a failing assert on the device for double-precision round() (internal function), at least for the case of 0^1 = 0.
Everything's defined as a inline function and should be usable just as their std:: counterparts. It also selects the single-precision versions when the input arguments are floats. We could probably improve on this behavior, but it'd probably need a global flipped in the hemi namespace or something similar.
I've tested it with CUDA 6 and g++ 4.8.
Please make some changes.
- Indents should be 2 spaces, not tabs, as in hemi.h
- { and } get their own lines
- Use .cpp extension for C++ source files, not .cc
Submitting a new pull request.
Github is confusing. Sorry for the extra noise.