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

Only link against libatomic in gnu-make OpenMPTarget build #5537

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

crtrott
Copy link
Member

@crtrott crtrott commented Oct 7, 2022

This mirrors the CMake logic

@crtrott
Copy link
Member Author

crtrott commented Oct 7, 2022

Mirrors logic here:

IF (Kokkos_ENABLE_IMPL_DESUL_ATOMICS AND KOKKOS_ENABLE_OPENMPTARGET)
target_link_libraries(kokkoscore PUBLIC atomic)
ENDIF()

Fixes #5501

@@ -491,6 +487,7 @@ ifeq ($(KOKKOS_INTERNAL_USE_SYCL), 1)
endif

ifeq ($(KOKKOS_INTERNAL_USE_OPENMPTARGET), 1)
KOKKOS_LIBS += -latomic
Copy link
Member

@dalg24 dalg24 Oct 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please confirm that we don't want to guard for KOKKOS_INTERNAL_ENABLE_DESUL_ATOMICS equal to 1

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I am considering getting rid of that option anyway.

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

Successfully merging this pull request may close these issues.

None yet

4 participants