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

clang-13: OpenMP support broken when using CUDA #1755

Closed
j-stephan opened this issue Jun 29, 2022 · 0 comments · Fixed by #1756
Closed

clang-13: OpenMP support broken when using CUDA #1755

j-stephan opened this issue Jun 29, 2022 · 0 comments · Fixed by #1756

Comments

@j-stephan
Copy link
Member

Another bug uncovered by #1713. clang-13's default OpenMP support is broken when using CUDA:

/usr/lib/llvm-13/lib/clang/13.0.1/include/omp.h(487): error: function "omp_is_initial_device" has already been defined

This is related to clang-13 enabling OpenMP 5 by default; lowering the OpenMP version seems to silence this error. See this related issue on NVIDIA's issue tracker:

NVIDIA/cuda-samples#102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant