-
Notifications
You must be signed in to change notification settings - Fork 188
Fix cmake warnings #1342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix cmake warnings #1342
Conversation
I saw another warning caused error when I try to verify this PR using clang trunk: In file included from /home/yaxunl/git/composable_kernel/library/src/tensor_operation_instance/gpu/image_to_column/device_image_to_column_gnwc_1d_instance.cpp:4: |
LGTM. You may consider adding |
679b452
to
51e7025
Compare
…latform/composable_kernel into barkocot/fix-clang-warning
verified with llvm trunk. build successful. |
Thanks! |
This PR was already merged in trunk: llvm#77359 However, it was reverted in amd-staging due to ck issue ROCm/composable_kernel#1330 Now try relanding it in amd-staging after ck issue fixed by ROCm/composable_kernel#1342 Fixes: SWDEV-431838 Original commit message: nvcc warns about the following code: `void f(); __device__ void f() {}` but clang does not since clang allows device function to overload host function. Users want clang to emit similar warning to help code to be compatible with nvcc. Since this may cause regression with existing code, the warning is off by default and can be enabled by -Wnvcc-compat. It won't cause warning in system headers, even with -Wnvcc-compat. Change-Id: Ia370700eb3eb1b1928d04ec59e2ec63506f85545
#1330