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

Reproducer/nvidia/offset - (DO NOT MERGE) #478

Closed
wants to merge 3 commits into from

Conversation

artv3
Copy link
Member

@artv3 artv3 commented May 9, 2018

Reproducer for NVIDIA. We found a bug when views are used in the device with offset layouts. In particular the generated copy constructor does not actually copy-construct the object.

The follows compilers generate run time errors :
CUDA 8, 9.0.176, 9.0.184, 9.1.76, 9.1.85 .

In particular the following test fails /test/unit/cuda/test/test-cuda-forall-view.exe

By defining FIX_NVCC_BUG in nvidia-bug/include/RAJA/util/View.hpp we are able to fix the bug, i.e. specifying the copy constructor. Removing FIX_NVCC_BUG macro will cause run-time errors.

git clone -b reproducer/nvidia/offset https://github.com/LLNL/RAJA.git nvcc-bug
cd nvcc-bug
git submodule init && git submodule update
mkdir build
cmake -DENABLE_CUDA=On -DCUDA_TOOLKIT_ROOT_DIR=$(PATH_TO_CUDA) ../
make -j
./test/unit/cuda/test/test-cuda-forall-view.exe

@codecov-io
Copy link

Codecov Report

Merging #478 into develop will increase coverage by 0.001%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##           develop      #478       +/-   ##
=============================================
+ Coverage   98.576%   98.577%   +0.001%     
=============================================
  Files           61        61               
  Lines         1194      1195        +1     
=============================================
+ Hits          1177      1178        +1     
  Misses          17        17
Impacted Files Coverage Δ
include/RAJA/util/View.hpp 100% <ø> (ø) ⬆️
include/RAJA/policy/openmp/scan.hpp 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1fd537...8afc0e6. Read the comment docs.

Copy link
Member

@rhornung67 rhornung67 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@artv3 Did you document this issue on the COE compiler issue page, nvcc section?

@davidbeckingsale
Copy link
Member

@artv3 - do we need to keep this PR open?

@artv3
Copy link
Member Author

artv3 commented May 30, 2018

@davidbeckingsale , I am not sure. I shared the issue on the COE compiler issue page and with an NVIDIA rep. I can check with him.

@davidbeckingsale
Copy link
Member

We don't need to delete the branch, but we can just close the PR.

@artv3
Copy link
Member Author

artv3 commented May 30, 2018

Oh gotcha. Sure we can close it. I can let him know it will still be there.

@rhornung67 rhornung67 deleted the reproducer/nvidia/offset branch October 5, 2023 21:19
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.

4 participants