-
Notifications
You must be signed in to change notification settings - Fork 407
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
Deprecate Kokkos_ENABLE_PTHREAD in favor of Kokkos_ENABLE_THREADS #4619
Conversation
Haven't dealt with Makefiles yet |
Please fix the typo in the pr title |
IF(Kokkos_ENABLE_THREADS) # for backward compatibility | ||
SET(Kokkos_ENABLE_PTHREAD ON) | ||
LIST(APPEND Kokkos_DEVICES PTHREAD) | ||
ENDIF() | ||
|
||
IF(NOT Kokkos_FIND_QUIETLY) | ||
MESSAGE(STATUS "Enabled Kokkos devices: ${Kokkos_DEVICES}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we print Kokkos_THREADS
and Kokkos_PTHREAD
after this pull request? Is omitting to add PTHREAD
to Kokkos_DEVICES
feasible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will append after printing. Unfortunately we have to append PTHREAD
to Kokkos_DEVICES
and set Kokkos_ENABLE_PTHREAD
to ON
or we may break code downstream.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now only appending if Kokkos_ENABLE_DEPRECATED_CODE_3 was ON
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Btw -- I don't know if there is a good way in telling anyone consuming PTHREADS device or Kokkos_ENABLE_PTHREAD in their own projects that those are deprecated but we should consider how we eventually want to remove that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to me.
IF(Kokkos_ENABLE_THREADS) # for backward compatibility | ||
SET(Kokkos_ENABLE_PTHREAD ON) | ||
LIST(APPEND Kokkos_DEVICES PTHREAD) | ||
ENDIF() | ||
|
||
IF(NOT Kokkos_FIND_QUIETLY) | ||
MESSAGE(STATUS "Enabled Kokkos devices: ${Kokkos_DEVICES}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Compatibility change in accordance with kokkos/kokkos#4619 Resolves nightly build failures (due to undefined references at link stage) when both Pthreads (not Threads) and Serial backends simultaneously enabled
Compatibility change in accordance with kokkos/kokkos#4619 Resolves nightly build failures (due to undefined references at link stage) when both Pthreads (not Threads) and Serial backends simultaneously enabled
Rename Kokkos_ENABLE_PTHREAD cache variable to Kokkos_ENABLE_THREADS Coincides with kokkos/kokkos#4619 and kokkos/kokkos#4830
Rename Kokkos_ENABLE_PTHREAD cache variable to Kokkos_ENABLE_THREADS Coincides with kokkos/kokkos#4619 and kokkos/kokkos#4830
Rename Kokkos_ENABLE_PTHREAD cache variable to Kokkos_ENABLE_THREADS Coincides with kokkos/kokkos#4619 and kokkos/kokkos#4830
Rename Kokkos_ENABLE_PTHREAD cache variable to Kokkos_ENABLE_THREADS Coincides with kokkos/kokkos#4619 and kokkos/kokkos#4830
Rename Kokkos_ENABLE_PTHREAD cache variable to Kokkos_ENABLE_THREADS Coincides with kokkos/kokkos#4619 and kokkos/kokkos#4830
Rename Kokkos_ENABLE_PTHREAD cache variable to Kokkos_ENABLE_THREADS Coincides with kokkos/kokkos#4619 and kokkos/kokkos#4830
Rename Kokkos_ENABLE_PTHREAD cache variable to Kokkos_ENABLE_THREADS Coincides with kokkos/kokkos#4619 and kokkos/kokkos#4830
Rename Kokkos_ENABLE_PTHREAD cache variable to Kokkos_ENABLE_THREADS Coincides with kokkos/kokkos#4619 and kokkos/kokkos#4830
Follow up on #4081
It doesn't really make sense to keep enabling with
-DKokkos_ENABLE_PTHREAD=ON
.Besides the departure between the exec space name
Kokkos::Threads
and the backend name was a pain.