[clang] [Clang][CUDA] Guard curand_mtgp32_kernel.h include with has_include (PR #244945)
Nam Khanh via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 22 00:09:20 PST 2026
namnkahn1607 wrote:
I also searched for headers that actually include `curand_mtgp32_kernel.h`:
```
$ CUDA=/usr/local/cuda-12.8
$ grep -n 'include.*curand_mtgp32_kernel' $CUDA/include/*.h
```
and the result provides the headers which are all bundled inside the external `libcurand-dev` package:
```
/usr/local/cuda-12.8/include/curand_discrete2.h:65:#include "curand_mtgp32_kernel.h"
/usr/local/cuda-12.8/include/curand_kernel.h:113:#include "curand_mtgp32_kernel.h"
/usr/local/cuda-12.8/include/curand_lognormal.h:65:#include "curand_mtgp32_kernel.h"
/usr/local/cuda-12.8/include/curand_normal.h:66:#include "curand_mtgp32_kernel.h"
/usr/local/cuda-12.8/include/curand_poisson.h:67:#include "curand_mtgp32_kernel.h"
/usr/local/cuda-12.8/include/curand_uniform.h:65:#include "curand_mtgp32_kernel.h"
```
https://github.com/llvm/llvm-project/pull/244945
More information about the cfe-commits
mailing list