Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial math function support in in the hemi:: namespace and some tests #10

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Commits on Jul 18, 2014

  1. Configuration menu
    Copy the full SHA
    0f15f35 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c765312 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2014

  1. Initial implementation for various functions. The CUDA side points to…

    … the appropriate single or double-precision
    
    function.
    
    Switching is done based on HEMI_DEV_CODE preprocessor statement.
    lordofhyphens committed Jul 21, 2014
    Configuration menu
    Copy the full SHA
    6dc77b5 View commit details
    Browse the repository at this point in the history
  2. added more functions

    lordofhyphens committed Jul 21, 2014
    Configuration menu
    Copy the full SHA
    3bd4997 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2014

  1. fixed a couple typos in math.h, forgot to rename popcll to popcll fro…

    …m brev.
    
    Unsure if fma actually works or is just a infinite loop trap on host.
    lordofhyphens committed Jul 22, 2014
    Configuration menu
    Copy the full SHA
    34bf5b9 View commit details
    Browse the repository at this point in the history
  2. Added round and lround

    lordofhyphens committed Jul 22, 2014
    Configuration menu
    Copy the full SHA
    9b1a45d View commit details
    Browse the repository at this point in the history
  3. Added working round() and lround() with simple algorithm for non-C++11

    compilers.
    
    Changed test makefile to look like examples'
    Started test harness for math.h functions in hemi. Double-precision round() on the device is not passing an assert.
    lordofhyphens committed Jul 22, 2014
    Configuration menu
    Copy the full SHA
    d0554bc View commit details
    Browse the repository at this point in the history
  4. Removed fma(), as it's new to C++11. When nvcc plays nice with -std=c…

    …++11 in GCC-4.8 it can come back.
    lordofhyphens committed Jul 22, 2014
    Configuration menu
    Copy the full SHA
    0457631 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2014

  1. Changed tabs to spaces to conform to hemi.h

    Moved { } to their own lines.
    lordofhyphens committed Jul 25, 2014
    Configuration menu
    Copy the full SHA
    8350d38 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fe3fdfd View commit details
    Browse the repository at this point in the history
  3. Fixed indenting inside of #ifdef statements.

    Removed hemi::fma for now, no c++11 support in nvcc (at least experimentally the compiler is choking on STL).
    lordofhyphens committed Jul 25, 2014
    Configuration menu
    Copy the full SHA
    1e7ffb1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f4216c3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6fa816f View commit details
    Browse the repository at this point in the history
  6. Preliminary atomics implementation, with atomicAdd and atomicCAS supp…

    …orted. Uses OpenMP locks as an example.
    lordofhyphens committed Jul 25, 2014
    Configuration menu
    Copy the full SHA
    31e4b46 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2014

  1. Added atomicExch().

    lordofhyphens committed Jul 27, 2014
    Configuration menu
    Copy the full SHA
    5da95d4 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2014

  1. Configuration menu
    Copy the full SHA
    23675f1 View commit details
    Browse the repository at this point in the history
  2. Same problem as with atomics, was calling the wrong functions. Sorry …

    …I didn't catch this the first time, this particular issue isn't something I have managed to come across before.
    lordofhyphens committed Aug 1, 2014
    Configuration menu
    Copy the full SHA
    1b51136 View commit details
    Browse the repository at this point in the history