Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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, ...

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 build

cmake --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.