Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pytorch/cpuinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgaborkertesz-linaro <91903944+gaborkertesz-linaro@users.noreply.github.com>2022-07-05 18:52:35 +0300
committerGitHub <noreply@github.com>2022-07-05 18:52:35 +0300
commit1baac2bb033666698e0e30074664aa32fa28ce80 (patch)
tree12820a86a340a5d7fc8077b85176bca408c2bdbf /CMakeLists.txt
parentab5c79fa45e459dd9a98e53c8878e9e20fb7be7a (diff)
Enable win-arm64 (#82)
This patch implements the required APIs for the new win-arm64 platform by reading topology information via Windows API. Build config: cmake . -A ARM64
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7c28761..1f8fc6c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -65,7 +65,7 @@ IF(NOT CMAKE_SYSTEM_PROCESSOR)
"cpuinfo will compile, but cpuinfo_initialize() will always fail.")
SET(CPUINFO_SUPPORTED_PLATFORM FALSE)
ENDIF()
-ELSEIF(NOT CPUINFO_TARGET_PROCESSOR MATCHES "^(i[3-6]86|AMD64|x86(_64)?|armv[5-8].*|aarch64|arm64)$")
+ELSEIF(NOT CPUINFO_TARGET_PROCESSOR MATCHES "^(i[3-6]86|AMD64|x86(_64)?|armv[5-8].*|aarch64|arm64|ARM64)$")
MESSAGE(WARNING
"Target processor architecture \"${CPUINFO_TARGET_PROCESSOR}\" is not supported in cpuinfo. "
"cpuinfo will compile, but cpuinfo_initialize() will always fail.")
@@ -171,6 +171,9 @@ IF(CPUINFO_SUPPORTED_PLATFORM)
LIST(APPEND CPUINFO_SRCS
src/arm/android/properties.c)
ENDIF()
+ ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "Windows" AND CPUINFO_TARGET_PROCESSOR STREQUAL "ARM64")
+ LIST(APPEND CPUINFO_SRCS src/arm/windows/init-by-logical-sys-info.c)
+ LIST(APPEND CPUINFO_SRCS src/arm/windows/init.c)
ENDIF()
IF(CMAKE_SYSTEM_NAME STREQUAL "Emscripten")