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

CPU core oversubscription warning on macOS with OpenMP backend #2996

Closed
keichi opened this issue Apr 30, 2020 · 4 comments
Closed

CPU core oversubscription warning on macOS with OpenMP backend #2996

keichi opened this issue Apr 30, 2020 · 4 comments
Labels
Enhancement Improve existing capability; will potentially require voting

Comments

@keichi
Copy link
Contributor

keichi commented Apr 30, 2020

I get the following warning when running a minimal Kokkos program with the OpenMP backend:

Kokkos::OpenMP::initialize WARNING: You are likely oversubscribing your CPU cores.
                                    Detected: -1 cores per node.
                                    Detected: 1 MPI_ranks per node.
                                    Requested: 8 threads per process.
  • Kokkos 3.1.00
  • GCC 9.3.0
  • macOS 10.15.4 (19E266)
#include <Kokkos_Core.hpp>

int main(int argc, char* argv[])
{
    Kokkos::initialize(argc, argv);
    Kokkos::finalize();
    return 0;
}
@keichi
Copy link
Contributor Author

keichi commented Apr 30, 2020

It seems Impl:: processors_per_node() is hardcoded to return -1 on macOS for some reason.

#elif !defined(__APPLE__)
#include <unistd.h>
#endif

@ndellingwood
Copy link
Contributor

Cross reference #2477 (comment)

@dalg24
Copy link
Member

dalg24 commented Apr 30, 2020

@keichi the fix is in develop

@dalg24 dalg24 closed this as completed Apr 30, 2020
@keichi
Copy link
Contributor Author

keichi commented May 1, 2020

Thanks!

@crtrott crtrott added the Enhancement Improve existing capability; will potentially require voting label May 7, 2020
@crtrott crtrott reopened this May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improve existing capability; will potentially require voting
Projects
None yet
Development

No branches or pull requests

5 participants