-
Notifications
You must be signed in to change notification settings - Fork 198
need to add -Wno-nvcc-compt #1330
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
Labels
urgency_blocker
blocking feature deliverables
Comments
@junliume This is blocking a compiler feature requested by customers. Can some one take a look? Thanks. |
Merged
@yxsamliu any update? Does it work now? |
I will try it and get back to you. thanks |
I can verify the PR fixes the issue. |
Hi @yxsamliu I built llvm-project and Im able to reproduce this bug. I will try to resolve them. |
Fix merged into develop:#1342 |
searlmc1
pushed a commit
to ROCm/llvm-project
that referenced
this issue
Aug 22, 2024
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
A recent clang change (llvm/llvm-project#77359) caused build failure in composable_kernel:
This warning is intended for HIP code that is compatible with nvcc (not overloading device/host functions with the same signature) and is off by default. composable_kernel uses overloaded device/host functions with the same signature, therefore has to turn this warning off. Since composable_kernel uses -Weverything, it has to explicitly add -Wno-nvcc-compat to disable this warning.
The text was updated successfully, but these errors were encountered: