================
@@ -1537,6 +1537,11 @@ documentation](CIR/index.md) for more information 
regarding ClangIR's status and
 - Added `--cuda-emit-nvcc-abi` to emit the NVCC-compatible host registration 
ABI
   (`__cudaRegisterLinkedBinary`).
 
+- Removed the `-Wcuda-compat` warning about a parenthesized argument to
+  `#pragma unroll` in CUDA and HIP. `nvcc` accepts both `#pragma unroll N` and
+  `#pragma unroll (N)` with identical results, and the CUDA C++ Programming
+  Guide documents the parenthesized form, so the warning was incorrect.
----------------
Artem-B wrote:

Minor wording nit: the warning originally matched pre-CUDA 8.0 `nvcc` behavior 
before integral constant expressions were supported in `#pragma unroll`, so 
saying the warning is obsolete/no longer needed (or simply dropping `, so the 
warning was incorrect`) would be slightly more accurate.

Please update PR description to reflect that, too.

https://github.com/llvm/llvm-project/pull/244791
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to