namnkahn1607 wrote:
> One remaining question -- are current CUDA versions (e.g 13.x) still
> redefining threadIdx and blockDim ?
> If not, then I'd still prefer to disable this hack for the newer CUDA
> versions.
I crawled `libcurand-dev` across CUDA 12.9 and 13.0-13.5, and
`curand_mtgp32_kernel.h` still redeclares both in every version:
```cpp
#ifndef __CUDA_ARCH__
// define blockDim and threadIdx for host compatibility call
extern const dim3 blockDim;
extern const uint3 threadIdx;
#endif
```
So we can't drop the workaround for 13.x yet, and keeping `#if
__has_include("curand_mtgp32_kernel.h")` without a version cap looks like the
right approach.
Let me know if there's anything else you'd like adjusted in the patch or tests.
I could also provide the script I used to crawl if you want.
Thanks.
https://github.com/llvm/llvm-project/pull/244945
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits