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

Add cuda test and fix weird segmentation error coming from enum conversion. #67

Merged
merged 4 commits into from
Sep 1, 2017

Conversation

kyungjoo-kim
Copy link
Contributor

  1. batched operation correctness test on cuda.
  2. it has a trouble (very very weird) that incurs a segmentation error.
    This is due to not being able to convert among enum : int , constexpr int and static const int when nvcc_wrapper is used. When g++ is directly used, the error does not appear. However, with nvcc_wrapper, mixing the above types is dangerous.
  3. solution is to use static const int consistently.

  - it test scalar algorithms
  on white, nvcc wrapper (gcc 5.4) does not translate between
  - enum : int
  - static constexpr int
  - static const int

  this is quite confusing as all the code is valid and work well
  when gcc is used by itself.
@kyungjoo-kim kyungjoo-kim requested a review from crtrott August 31, 2017 23:23
@crtrott crtrott merged commit c0932a7 into develop Sep 1, 2017
@crtrott crtrott deleted the batched-develop branch September 1, 2017 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants