-
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
Improve OpenMP affinity warning to include MPI concerns #6185
Conversation
IMO, we should not remove the warning.
|
@@ -241,13 +241,19 @@ void OpenMPInternal::initialize(int thread_count) { | |||
} | |||
|
|||
{ | |||
if (Kokkos::show_warnings() && nullptr == std::getenv("OMP_PROC_BIND")) { | |||
if (Kokkos::show_warnings() && !std::getenv("OMP_PROC_BIND")) { |
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.
Didn't mean to commit. Let me know if you want me to undo.
looks good to me! (CI failure unrelated) |
OMP_PROC_BIND
not being set if we can detect MPI
CI failure was unrelated |
* Detect MPI execution environment * Do not warn about OMP_PROC_BIND not being set when MPI is used * Improve warning message and is_mpi_exec -> mpi_detected
Tentative resolution for #6180