Age | Commit message (Collapse) | Author |
|
Make possible to cross-run tests with CMAKE_CROSSCOMPILING_EMULATOR
|
|
On line 68, and in most places, "intel-like" is checked with `i[3-6]86|AMD64|x86(_64)?`, but in these 3 places the (_x64)? was missing.
First reported as https://github.com/microsoft/vcpkg/issues/24713
|
|
This patch implements the required APIs for the new
win-arm64 platform by reading topology information via
Windows API.
Build config: cmake . -A ARM64
|
|
This allows projects that depend on cpuinfo to use namespace qualified
target name regardless of whether they consume cpuinfo through
add_subdirectory or find_package.
|
|
* Support CMake 'find_package'
* export 2 target 'cpuinfo', 'clog'
* create cpuinfo-config.cmake template
* fix script include
|
|
CPUINFO_TARGET_PROCESSOR was not set when the cpuinfo was cross-compiled
with CMAKE_SYTEM_NAME=iOS.
Co-authored-by: Oleksii Skidan <oleksii.skidan@ua.ibm.com>
|
|
HOMEPAGE_URL in cmake's project function is only supported by cmake >=
3.12. In order to support versions down to 3.5, it needs to be removed.
|
|
CMakeLists.txt: Cosmetic changes...
|
|
requested...
{CMakeLists.txt,libcpuinfo.pc.in}: Remove semantic versioning, as per @Maratyszcza's request...
CMakeLists.txt: Cosmetic formatting changes, per @Maratyszcza's request...
|
|
README.md: Improved pkg-config notes...
|
|
|
|
* Add support for CMAKE_OSX_ARCHITECTURES
Test Plan:
On x86_64 Mac:
cmake -DCMAKE_OSX_ARCHITECTURES=arm64 -DCPUINFO_BUILD_BENCHMARKS=OFF .. -G Ninja
ninja
On M1 Mac:
cmake -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCPUINFO_BUILD_BENCHMARKS=OFF .. -G Ninja
ninja
Then copy and execute build artifacts on a different platform
* Incorporate review feedback
|
|
XNNPACK:b20dcd6252740a9a62e8541144a978d23b72bb81. (#50)
|
|
* Fix build for Apple Silicon
MacOS machines based on Apple M1 silicon are identified by cmake as "arm64"
Modify build rules accordingly to recognize "arm64" is valid CPU configuration for cpuinfo
* Add CPUFAMILY_ARM_FIRESTORM_ICESTORM switch case
* Update comment in src/arm/mach/init.c
|
|
XNNPACK:d793f6c2ec145be3ddbffea951e6e5480f4646b8.
|
|
XNNPACK:c58bd3486d52db9c6b9934912790db741bc366f6.
|
|
The XNNPACK Team.
|
|
|
|
|
|
Signed-off-by: Alexander GQ Gerasiov <gq@cs.msu.su>
|
|
|
|
|
|
Object library has many limitations in older CMake versions
|
|
|
|
Some unit tests test internal interfaces of cpuinfo. a07a09b changed visibility for internal symbols to hidden/private, and they are no longer accessible to unit tests when cpuinfo is built as a shared library. The work-around is to add cpuinfo_internal target with the same sources as cpuinfo, but static linking.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
initialization
|
|
This is an attempt to work around the issue in pytorch/pytorch#5932
If external library sets up global include directories, and then does add_subrectory(cpuinfo), cpuinfo endows the global include directory. If it happens to have cpuinfo.h, this file is used in place of local include/cpuinfo.h
This commit works around the issue by including local include directories before all others
|
|
|
|
|
|
- Build will succeed and library can be linked as usual.
- CMake will report a warning about unsupported OS/architecture.
- CMake will define CPUINFO_SUPPORTED_PLATFORM=0 for targets depending on cpuinfo target (if platform is supported, it defines CPUINFO_SUPPORTED_PLATFORM=1)
- cpuinfo_initialize() function will log an error about unsupported OS/architecture and return false.
- cpuinfo_get_* functions will return NULL or 0.
|