Skip to content

[Issue] Aotriton Build failure during Pytorch build due to missing argument --target_gpus to generate.py - gfx900 #4002

@chiranjeevipattigidi

Description

@chiranjeevipattigidi

Platform: Linux
Effected Archs: gfx900

Run

2026-03-17T07:33:48.5802545Z CMAKE_SOURCE_DIR /__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/aotriton/src/aotriton_runtime
2026-03-17T07:33:48.5803901Z CMAKE_CURRENT_SOURCE_DIR /__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/aotriton/src/aotriton_runtime/v3src
2026-03-17T07:33:48.5805272Z CMAKE_CURRENT_SOURCE_PARENT_DIR /__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/aotriton/src/aotriton_runtime
2026-03-17T07:33:48.5807308Z CMAKE_CURRENT_LIST_DIR /__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/aotriton/src/aotriton_runtime/v3src
2026-03-17T07:33:48.5808740Z CMAKE_CURRENT_BINARY_DIR /__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/aotriton/src/aotriton_runtime-build/v3src
2026-03-17T07:33:48.7535380Z -- AOTRITON_TARGET_ARCH gfx900
2026-03-17T07:33:48.7536160Z -- AOTRITON_OVERRIDE_TARGET_GPUS 
2026-03-17T07:33:48.7536791Z -- EFFECTIVE_TARGET_GPUS 
2026-03-17T07:33:50.0147233Z AOTRITON_COMPILER /__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/aotriton/src/aotriton_runtime/v3python/compile.py
2026-03-17T07:33:50.8322800Z usage: generate.py [-h]
2026-03-17T07:33:50.8324852Z                    [--target_gpus {gfx90a_mod0,gfx942_mod0,gfx950_mod0,gfx1100_mod0,gfx1101_mod0,gfx1102_mod0,gfx1151_mod0,gfx1150_mod0,gfx1201_mod0,gfx1200_mod0,gfx1250_mod0} [{gfx90a_mod0,gfx942_mod0,gfx950_mod0,gfx1100_mod0,gfx1101_mod0,gfx1102_mod0,gfx1151_mod0,gfx1150_mod0,gfx1201_mod0,gfx1200_mod0,gfx1250_mod0} ...]]
2026-03-17T07:33:50.8327474Z                    [--build_dir BUILD_DIR] [--root_dir ROOT_DIR]
2026-03-17T07:33:50.8328102Z                    [--archive_only] [--library_suffix LIBRARY_SUFFIX]
2026-03-17T07:33:50.8328684Z                    [--noimage_mode] [--build_for_tuning]
2026-03-17T07:33:50.8329235Z                    [--build_for_tuning_second_pass]
2026-03-17T07:33:50.8329928Z                    [--build_for_tuning_but_skip_kernel [BUILD_FOR_TUNING_BUT_SKIP_KERNEL ...]]
2026-03-17T07:33:50.8330638Z                    [--verbose] [--lut_sanity_check]
2026-03-17T07:33:50.8331303Z generate.py: error: argument --target_gpus: expected at least one argument
2026-03-17T07:33:50.8334757Z '/opt/_internal/cpython-3.10.17/lib/python3.10/site-packages/cmake/data/bin/cmake' '-E' 'env' 'VIRTUAL_ENV=/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/aotriton/src/aotriton_runtime-build/venv' 'AOTRITON_ENABLE_FP32=1' '/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/aotriton/src/aotriton_runtime-build/venv/bin/python' '-X' 'utf8' '-m' 'v3python.generate' '--target_gpus' '--build_dir' '/__w/TheRock/TheRock/external-builds/pytorch/pytorch/build/aotriton/src/aotriton_runtime-build/v3src' '--noimage_mode'
2026-03-17T07:33:50.9369730Z CMake Error at v3src/CMakeLists.txt:71 (execute_process):
2026-03-17T07:33:50.9371312Z   execute_process failed command indexes:
2026-03-17T07:33:50.9371666Z 
2026-03-17T07:33:50.9371849Z     1: "Child return code: 2"

similar issue in other Archs gfx908,gfx906: #3701

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions