[PATCH] D27316: [CUDA] Filter out dirver sanitizer args for NVPTX
Jason Henline via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 1 13:04:45 PST 2016
jhen added a reviewer: kcc.
jhen added a comment.
Before this patch, the following command would fail:
clang++ -fsanitize=address --cuda-gpu-arch=sm_20 -c example.cu
with error:
clang-4.0: error: unsupported option '-fsanitize=address' for target 'nvptx64-nvidia-cuda'
After this patch, there is no such compilation error.
I don't understand this part of the driver code very well, so I would appreciate any advice on whether this is the right way to fix this bug, and where would be the right place for me to put a test to check that it is working (i.e. ASAN still works for CUDA host code).
https://reviews.llvm.org/D27316
More information about the cfe-commits
mailing list