Documentation for --compile-as-tools-patch

https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#options-for-steering-gpu-code-generation-astoolspatch

Hi, is there a sample or a more descriptive example of how to use the nvcc flag “-astoolspatch”. It would be nice to show how patch code can be written or how it can be used, unless this is only for internal consumption by CUDA tools.

The primary goal for this option is to be used with the Sanitizer API: https://docs.nvidia.com/cuda/sanitizer-docs/SanitizerApi/index.html

We have a couple of samples using this option at https://github.com/NVIDIA/compute-sanitizer-samples

1 Like