Python script to print CPU information. CMake doesn't currently have access to detailed CPU information like family ID, model ID, and vendor string.
python3 cpu_info.pyARM on Windows or Linux:
Significant speedup in compiler tests can occur with concurrent execution enabled by Python asyncio.TaskGroup.
Written to support nvfortran bug finding.
| config.json | |
| *.db |
I've collected a few optical flow repositories that interested us due to their use in papers relevant to our field. There are many, many more algorithms that are likely of greater merit-here's just a few I've looked at over time.
| *.json | |
| __pycache__/ |
We often find such a platform-independent script handy for CI or for helping end users get a new-enough CMake. It can also be used to install older specific CMake versions for CI testing of minimum CMake versions.
We have a more elaborate and general script that handles older CMake versions at cmakeutils under scripts/install_cmake.cmake. This script here is intentionally very minimal and does little error checking.
CMake version in repository by Linux distribution
Scientific computing libraries with notable CMake minimum versions:
This Python script uses only built-in stdlib functions and attempts to detect the CPU count of each type of CPU core. Many CPUs have only one core type, while others (especially for laptops) may have 2 or more CPU core types, sometimes called "big-little" or "super-performance-efficiency".
python cpu_hetero.py| cmake_minimum_required(VERSION 3.19) | |
| project(mod_files LANGUAGES Fortran) | |
| enable_testing() | |
| include(CheckCompilerFlag) | |
| set(tgt dummy) | |
| set(submod define_pi) |
| # Activate AOCC compilers by | |
| # source aocc.sh | |
| version=6.0.0 | |
| root=/opt/AMD/aocc-compiler-${version} | |
| [[ ! -d ${root} ]] && echo "ERROR: ${root} not found" && exit 1 | |
| source ${root}/setenv_AOCC.sh |