Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scivision/cmake-macos-rosetta
Check MacOS CPU capabilities using CMake, C++, Python, ...
https://github.com/scivision/cmake-macos-rosetta
Last synced: 14 days ago
JSON representation
Check MacOS CPU capabilities using CMake, C++, Python, ...
- Host: GitHub
- URL: https://github.com/scivision/cmake-macos-rosetta
- Owner: scivision
- License: mit
- Created: 2022-06-13T16:00:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-24T14:54:08.000Z (over 2 years ago)
- Last Synced: 2024-05-02T03:07:36.320Z (7 months ago)
- Language: CMake
- Size: 6.84 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CMake MacOS Rosetta
Check MacOS CPU capabilities using CMake, C++, Python, Matlab.
By default, the test will show not using Rosetta even on an Apple Silicon Mac.
This is because by default the compiler uses native mode.
To force Rosetta use, build with:```sh
cmake -DCMAKE_OSX_ARCHITECTURES=x86_64 -B buildcmake --build build
ctest --test-dir build -V
```To get physical CPU count, especially for the number of fast "performance" cores, see [physical-cpu-count](https://github.com/scivision/physical-cpu-count) single-file C++ project.