Skip to content

Instantly share code, notes, and snippets.

@LunNova
Last active August 18, 2025 03:10
Show Gist options
  • Save LunNova/b8d22fa28ec7ccfe822c766011b2de58 to your computer and use it in GitHub Desktop.
Save LunNova/b8d22fa28ec7ccfe822c766011b2de58 to your computer and use it in GitHub Desktop.
# Building https://github.com/LunNova/nixpkgs/blob/ad384653a6094ad6460ee2c10a01fc42a252038a/pkgs/development/rocm-modules/6/aotriton/default.nix
https://cache.nixos.org/hqr05ly7gm93gasdqmxsgmyin0bdkq86.narinfo
https://cache.nixos.org/pbmiqw44xjgdgx6ncwn0p3pw2dz520vm.narinfo
structuredAttrs is enabled
Running phase: unpackPhase
@nix {"action":"setPhase","phase":"unpackPhase"}
unpacking source archive /nix/store/sj81yw7mqagddvxbhcl2bk6m1rs6v43k-source
source root is source
separate-debug-info: recording checksum of source files for debug support...
Running phase: patchPhase
@nix {"action":"setPhase","phase":"patchPhase"}
applying patch /nix/store/bqdcrvxjafi01yx0s13b3zi96z3hbhi8-883025e653bd023f8556865f54655aa481864169.patch
patching file CMakeLists.txt
Hunk #1 succeeded at 57 (offset -9 lines).
Hunk #2 succeeded at 118 with fuzz 2 (offset -28 lines).
Hunk #3 succeeded at 149 (offset -33 lines).
applying patch /nix/store/p3la6w39d1kn7rdj21xqx0rfwbl2nph8-0e84e7f887589d319ead96c9cbeecd75de1ae379.patch
patching file CMakeLists.txt
Hunk #2 succeeded at 60 (offset -9 lines).
Hunk #3 succeeded at 107 (offset -23 lines).
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix {"action":"setPhase","phase":"updateAutotoolsGnuConfigScriptsPhase"}
Running phase: configurePhase
@nix {"action":"setPhase","phase":"configurePhase"}
fixing cmake files...
cmake flags: -GNinja -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/pbmiqw44xjgdgx6ncwn0p3pw2dz520vm-aotriton-0.10b/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/pbmiqw44xjgdgx6ncwn0p3pw2dz520vm-aotriton-0.10b/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/pbmiqw44xjgdgx6ncwn0p3pw2dz520vm-aotriton-0.10b/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/pbmiqw44xjgdgx6ncwn0p3pw2dz520vm-aotriton-0.10b/share/doc/AOTriton -DCMAKE_INSTALL_INFODIR=/nix/store/pbmiqw44xjgdgx6ncwn0p3pw2dz520vm-aotriton-0.10b/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/pbmiqw44xjgdgx6ncwn0p3pw2dz520vm-aotriton-0.10b/share/man -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/pbmiqw44xjgdgx6ncwn0p3pw2dz520vm-aotriton-0.10b/include -DCMAKE_INSTALL_SBINDIR=/nix/store/pbmiqw44xjgdgx6ncwn0p3pw2dz520vm-aotriton-0.10b/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/pbmiqw44xjgdgx6ncwn0p3pw2dz520vm-aotriton-0.10b/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/pbmiqw44xjgdgx6ncwn0p3pw2dz520vm-aotriton-0.10b/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/67x7pknz0qa2j16x02idf0x98lpcspah-gcc-wrapper-14.3.0/bin/strip -DCMAKE_RANLIB=/nix/store/67x7pknz0qa2j16x02idf0x98lpcspah-gcc-wrapper-14.3.0/bin/ranlib -DCMAKE_AR=/nix/store/67x7pknz0qa2j16x02idf0x98lpcspah-gcc-wrapper-14.3.0/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/pbmiqw44xjgdgx6ncwn0p3pw2dz520vm-aotriton-0.10b -Wno-dev -DVENV_DIR=/build/venv -DVENV_BIN_PYTHON=/build/venv/bin/python -DAOTRITON_TRITON_SO=/nix/store/a6fpg2kbczirvhnfwi8jsxh1q0cy1s7m-python3.13-triton-v3.3.1/lib/python3.13/site-packages/triton/_C/libtriton.so -DVIRTUALENV_PYTHON_EXENAME=/nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/bin/python3.13 -DAOTRITON_NOIMAGE_MODE:BOOL=FALSE -DAOTRITON_USE_EXTERNAL_TRITON:BOOL=TRUE -DCMAKE_INSTALL_BINDIR=bin -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_INCLUDEDIR=include -DAOTRITON_TARGET_ARCH=gfx90a
-- The CXX compiler identification is GNU 14.3.0
-- The C compiler identification is GNU 14.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/67x7pknz0qa2j16x02idf0x98lpcspah-gcc-wrapper-14.3.0/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/67x7pknz0qa2j16x02idf0x98lpcspah-gcc-wrapper-14.3.0/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- [AOTriton] ccache not found
-- [AOTriton] Triton's caching system is parallel to ccache and always enabled.
-- [AOTriton] UTF-8 input character is set for all C/C++ source files.
-- Found Python3: /nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/bin/python3.13 (found suitable version "3.13.5", minimum required is "3.10") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Python3: /nix/store/9yh9ak97gn659bk4d3n411fx6c0ng7s2-python3-3.13.5/include/python3.13 (found suitable version "3.13.5", minimum required is "3.10") found components: Development Development.Module Development.Embed
-- pybind11 v2.11.1
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Found PkgConfig: /nix/store/7vrzhnby95407cbbahn3fj3y98qifgby-pkg-config-wrapper-0.29.2/bin/pkg-config (found version "0.29.2")
-- Checking for one of the modules 'liblzma'
VENV_DIR /build/venv
VENV_SITE /build/venv/lib/python3.13/site-packages
WARNING: The directory '/homeless-shelter/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Requirement already satisfied: filelock in /nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/lib/python3.13/site-packages (from -r /build/source/requirements.txt (line 1)) (3.18.0)
Requirement already satisfied: iniconfig in /nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/lib/python3.13/site-packages (from -r /build/source/requirements.txt (line 2)) (2.1.0)
Requirement already satisfied: packaging in /nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/lib/python3.13/site-packages (from -r /build/source/requirements.txt (line 3)) (25.0)
Requirement already satisfied: pluggy in /nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/lib/python3.13/site-packages (from -r /build/source/requirements.txt (line 4)) (1.6.0)
Requirement already satisfied: numpy in /nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/lib/python3.13/site-packages (from -r /build/source/requirements.txt (line 5)) (2.3.1)
Requirement already satisfied: setuptools in /nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/lib/python3.13/site-packages (from -r /build/source/requirements.txt (line 6)) (80.7.1.post0)
Requirement already satisfied: wheel in /nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/lib/python3.13/site-packages (from -r /build/source/requirements.txt (line 7)) (0.45.1)
Requirement already satisfied: pybind11 in /nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/lib/python3.13/site-packages (from -r /build/source/requirements.txt (line 8)) (2.13.6)
Requirement already satisfied: pandas in /nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/lib/python3.13/site-packages (from -r /build/source/requirements.txt (line 9)) (2.2.3)
Requirement already satisfied: python-dateutil>=2.8.2 in /nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/lib/python3.13/site-packages (from pandas->-r /build/source/requirements.txt (line 9)) (2.9.0.post0)
Requirement already satisfied: pytz>=2020.1 in /nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/lib/python3.13/site-packages (from pandas->-r /build/source/requirements.txt (line 9)) (2025.2)
Requirement already satisfied: tzdata>=2022.7 in /nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/lib/python3.13/site-packages (from pandas->-r /build/source/requirements.txt (line 9)) (2025.2)
Requirement already satisfied: six>=1.5 in /nix/store/hmlkxhg4ziq2q7dcblnr6djk8by196f3-python3-3.13.5-env/lib/python3.13/site-packages (from python-dateutil>=2.8.2->pandas->-r /build/source/requirements.txt (line 9)) (1.17.0)
-- [AOTriton] Triton found: 3.3.1
CMAKE_SOURCE_DIR /build/source
CMAKE_CURRENT_SOURCE_DIR /build/source/v3src
CMAKE_CURRENT_SOURCE_PARENT_DIR /build/source
CMAKE_CURRENT_LIST_DIR /build/source/v3src
CMAKE_CURRENT_BINARY_DIR /build/source/build/v3src
-- AOTRITON_TARGET_ARCH gfx90a
-- AOTRITON_OVERRIDE_TARGET_GPUS
-- EFFECTIVE_TARGET_GPUS gfx90a_mod0
AOTRITON_COMPILER /build/source/v3python/compile.py
'/nix/store/a3w3ka2d796ghlhf31il839c0658m5ih-cmake-3.31.7/bin/cmake' '-E' 'env' 'VIRTUAL_ENV=/build/venv' 'AOTRITON_ENABLE_FP32=1' '/build/venv/bin/python' '-m' 'v3python.generate' '--target_gpus' 'gfx90a_mod0' '--build_dir' '/build/source/build/v3src'
Bare.compile: /build/source/build/v3src/Bare.compile
Bare.cluster: /build/source/build/v3src/Bare.cluster
Bare.compile 14995 rules read
-- AOTRITON_SHIM_FLAGS
CMAKE_INSTALL_INCLUDEDIR include
-- Configuring done (21.1s)
-- Generating done (1.2s)
CMake Warning:
Manually-specified variables were not used by the project:
AOTRITON_TRITON_SO
BUILD_TESTING
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_POLICY_DEFAULT_CMP0025
VIRTUALENV_PYTHON_EXENAME

-- Build files have been written to: /build/source/build
cmake: enabled parallel building
cmake: enabled parallel installing
Running phase: installPhase
@nix {"action":"setPhase","phase":"installPhase"}
[1/18698] /nix/store/67x7pknz0qa2j16x02idf0x98lpcspah-gcc-wrapper-14.3.0/bin/g++ @v3src/CMakeFiles/aotriton_v2.dir/flash/autotune.bwd_preprocess/FONLY__*fp16@16_96_F___gfx90a.cc.o.rsp -MD -MT 'v3src/CMakeFiles/aotriton_v2.dir/flash/autotune.bwd_preprocess/FONLY__*fp16@16_96_F___gfx90a.cc.o' -MF v3src/CMakeFiles/aotriton_v2.dir/flash/autotune.bwd_preprocess/FONLY__*fp16@16_96_F___gfx90a.cc.o.d -o 'v3src/CMakeFiles/aotriton_v2.dir/flash/autotune.bwd_preprocess/FONLY__*fp16@16_96_F___gfx90a.cc.o' -c '/build/source/build/v3src/flash/autotune.bwd_preprocess/FONLY__*fp16@16_96_F___gfx90a.cc'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment