This is an archive of the discontinued LLVM Phabricator instance.

Add --no-cuda-version-check in unknown-std.cpp
ClosedPublic

Authored by kkwli0 on Dec 7 2017, 6:50 PM.

Details

Summary

This unit test fails on the system that has CUDA Toolkit 9.0 installed. And CUDA 9 does not support GPU arch sm_20. It results in the following error.

clang-6.0: error: GPU arch sm_20 is supported by CUDA versions between 7.0 and 8.0 (inclusive), but installation at /usr/local/cuda is 9.0.  Use --cuda-path to specify a different CUDA install, pass a different GPU arch with --cuda-gpu-arch, or pass --no-cuda-version-check.

Diff Detail

Repository
rC Clang

Event Timeline

kkwli0 created this revision.Dec 7 2017, 6:50 PM
jlebar edited reviewers, added: tra; removed: jlebar.Dec 7 2017, 7:14 PM
tra edited edge metadata.Dec 8 2017, 10:03 AM

Ideally the tests should be hermetic and should use mock CUDA installation that comes with the tests. E.g. --cuda-path=%S/Inputs/CUDA/usr/local/cuda

kkwli0 updated this revision to Diff 126258.Dec 8 2017, 6:40 PM

Using a mock CUDA installation works too.

tra accepted this revision.Dec 11 2017, 11:46 AM
This revision is now accepted and ready to land.Dec 11 2017, 11:46 AM
This revision was automatically updated to reflect the committed changes.