Issue 117540
Summary clang-tidy performance-unnecessary-value-param check erronously applied to CUDA kernels
Labels clang-tidy
Assignees
Reporter RAMitchell
    Clang-tidy recommends via the `performance-unnecessary-value-param` check that value parameters in cuda kernels be converted to const ref. These recommendations result in an illegal memory access as the device attempts to access host memory through a reference.

The fix would be for this check to somehow exclude cuda kernels - functions with declared with `__global__`.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to