Skip to content
Snippets Groups Projects
Verified Commit 833c5ab7 authored by Lars Bilke's avatar Lars Bilke
Browse files

[cmake] Job pools now use number of physical cores.

parent add9e1cb
No related branches found
No related tags found
No related merge requests found
# From https://www.youtube.com/watch?v=8y7UuAG3Z0g (minute 52)
cmake_host_system_information(RESULT _memfree QUERY AVAILABLE_PHYSICAL_MEMORY)
cmake_host_system_information(RESULT _cores QUERY NUMBER_OF_LOGICAL_CORES)
cmake_host_system_information(RESULT _cores QUERY NUMBER_OF_PHYSICAL_CORES)
message(
STATUS "Number of (logical) cores: ${_cores}, Free memory: ${_memfree} MB"
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment