================ @@ -0,0 +1,37 @@ +// Check that __clang_cuda_runtime_wrapper.h does not require cuRAND's ---------------- Artem-B wrote:
The `__clang_cuda_runtime_wrapper.h` change itself looks good, and removing `Inputs/include/curand_mtgp32_kernel.h` is a nice cleanup (it also makes existing tests like `gpu_disabled_math.cpp` and `cuda_with_openmp.cu` exercise the missing-header case). However, I don't think we need this new test or `Inputs/curand/curand_mtgp32_kernel.h`: - We're working around an external CUDA header quirk rather than testing Clang functionality, and a minimal mock stub doesn't meaningfully verify NVIDIA's real headers (other similar workarounds in `__clang_cuda_runtime_wrapper.h` also go in without mock tests). - As written, the test also has a couple of portability/hermeticity issues: invoking `%clang` without `-nostdlibinc` will pick up `/usr/include/curand_mtgp32_kernel.h` on hosts with distro CUDA packages installed, and reaching outside `clang/test/Headers/` via `%S/../../lib/Headers` and `%S/../Driver/Inputs/...` is problematic for distributed test runs without a full source tree. Could you drop `cuda_wrapper_curand.cu` and `Inputs/curand/` and keep just the wrapper change and the removal of `Inputs/include/curand_mtgp32_kernel.h`? https://github.com/llvm/llvm-project/pull/244945 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
