Skip to content
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

[mlir][bazel] Don't set MLIR_ENABLE_NVPTXCOMPILER on if_cuda_available. #84238

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

ingomueller-net
Copy link
Contributor

was available. However, it turns out that the NVPTX compiler is not part of every CUDA distribution, so if_cuda_available may evaluate to true without that compiler being present, which breaks the build. This PR thus sets the macro to 0 always (which was the behavior before #84007).

was available. However, it turns out that the NVPTX compiler is not part
of every CUDA distribution, so `if_cuda_available` may evaluate to true
without that compiler being present, which breaks the build. This PR
thus sets the macro to 0 always (which was the behavior before llvm#84007).
@ingomueller-net ingomueller-net marked this pull request as draft March 6, 2024 21:57
@ingomueller-net ingomueller-net marked this pull request as ready for review March 6, 2024 22:11
@frgossen frgossen self-requested a review March 6, 2024 22:20
@ingomueller-net ingomueller-net merged commit 395bc79 into llvm:main Mar 6, 2024
4 checks passed
@ingomueller-net ingomueller-net deleted the fix-nvptx-macro branch March 6, 2024 22:36
rupprecht pushed a commit that referenced this pull request Mar 7, 2024
Reverts #84235
With changes in #84238 these dependencies are not required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants