CPU_ARCH get the Operating System CPU architecture
This function retrieves the CPU architecture of the current operating system. The physical CPU architecture can be obscured and even determining it in high-level languages like Python is not exactly trivial. This method is as used by CMake.
Contents
Outputs
- a: the CPU architecture as a character vector:
function a = cpu_arch() if ispc() a = getenv("PROCESSOR_ARCHITECTURE"); else [~, a] = system('uname -m'); a = strip(a); end end