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 

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).


cfe-commits mailing list

Reply via email to