+3
−0
+28
−1
+70
−0
Loading
Problem:
On HPC systems like Frontier, Machine files can set build defaults
(e.g., GPU without OpenMP) that make it difficult to configure
custom builds like GPU+OpenMP. Users have no clean way to opt-out
of Machine file configuration and must manually override each
variable.
Solution:
Add TRITON_IGNORE_MACHINE_FILES CMake option that skips all Machine
file loading and uses user-specified CMake options and environment
variables only. When enabled:
- Machine file auto-detection is skipped
- Default values are set for COMPILER, BACKEND, RUN_COMMAND
- User retains full control via -D options
Usage:
cmake -DTRITON_IGNORE_MACHINE_FILES=ON \
-DBACKEND=HIP \
-DCMAKE_CXX_FLAGS="-O3 -fopenmp -DTRITON_HIP_LAUNCHER" \
..
Changes:
- CMakeLists.txt: Add TRITON_IGNORE_MACHINE_FILES option
- cmake/machine.cmake: Guard Machine file loading logic with if()
- README.md: Document usage and when to use the option
Testing:
- Normal build (Machine files): Works as before
- Ignore mode: Correctly skips Machine files and uses user config