Skip to content

Install flex into build manylinux container#2365

Merged
ScottTodd merged 3 commits intoROCm:mainfrom
ScottTodd:dockerfile-flex
Dec 2, 2025
Merged

Install flex into build manylinux container#2365
ScottTodd merged 3 commits intoROCm:mainfrom
ScottTodd:dockerfile-flex

Conversation

@ScottTodd
Copy link
Member

@ScottTodd ScottTodd commented Dec 1, 2025

Motivation

I suspect this will help with #2364 :

2025-11-30T06:50:31.5504409Z [rocprofiler-systems] make[4]: Entering directory '/therock/output/build/profiler/rocprofiler-systems/build/external/binutils/src/rocprofiler-systems-libiberty-build/binutils'
2025-11-30T06:50:31.5504565Z [rocprofiler-systems]   CC       size.o
2025-11-30T06:50:31.5504719Z [rocprofiler-systems]   CC       bucomm.o
...
2025-11-30T06:50:31.5506987Z [rocprofiler-systems]   CC       arparse.o
2025-11-30T06:50:31.5507135Z [rocprofiler-systems]   LEX      arlex.c
2025-11-30T06:50:31.5508159Z [rocprofiler-systems] /therock/output/build/profiler/rocprofiler-systems/build/external/binutils/src/rocprofiler-systems-libiberty-build/missing: line 81: flex: command not found
2025-11-30T06:50:31.5508461Z [rocprofiler-systems] WARNING: 'flex' is missing on your system.
2025-11-30T06:50:31.5508792Z [rocprofiler-systems]          You should only need it if you modified a '.l' file.
2025-11-30T06:50:31.5509240Z [rocprofiler-systems]          You may want to install the Fast Lexical Analyzer package:
2025-11-30T06:50:31.5509527Z [rocprofiler-systems]          <http://flex.sourceforge.net/>
2025-11-30T06:50:31.5509809Z [rocprofiler-systems] make[4]: *** [Makefile:1241: arlex.c] Error 127

Technical Details

Once merged and a new image is built we will need to update pins like here:

BUILD_IMAGE: ghcr.io/rocm/therock_build_manylinux_x86_64@sha256:4af52d56d91ef6ef8b7d0a13c6115af1ab2c9bf4a8a85d9267b489ecb737ed25

Test Plan

I don't have a Linux development environment easily accessible to test this right now but here's what I would do:

  • Reproduce the build issue locally with our existing docker image
  • Build the container locally
  • Check if the issue persists or is fixed

Alternately, we could merge this without testing and then update the workflows and hope for the best...

Test Result

On local setup, reproduced initial failure on gfx950, installed flex, rebuild was successful.

Submission Checklist

@ScottTodd ScottTodd merged commit 990439a into ROCm:main Dec 2, 2025
16 of 22 checks passed
@ScottTodd ScottTodd deleted the dockerfile-flex branch December 2, 2025 20:02
@github-project-automation github-project-automation bot moved this from TODO to Done in TheRock Triage Dec 2, 2025
dgaliffiAMD added a commit that referenced this pull request Dec 3, 2025
## Motivation

To use the latest `therock_build_manylinux_x86_64` docker image created
with #2365 to resolve
#2364.

## Technical Details

Update the previous SHA,
`4af52d56d91ef6ef8b7d0a13c6115af1ab2c9bf4a8a85d9267b489ecb737ed25`, to
the latest,
`583d473f263a289222c48d4b493e2956b2354a45796f09dee6f2c8ecd4504ab6`.

## Test Plan

<!-- Explain any relevant testing done to verify this PR. -->
Run workflows with the new image.

## Test Result

<!-- Briefly summarize test outcomes. -->
Workflows passing.

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.

Signed-off-by: David Galiffi <David.Galiffi@amd.com>
rponnuru5 pushed a commit that referenced this pull request Dec 9, 2025
## Motivation

I suspect this will help with
#2364 :

```
2025-11-30T06:50:31.5504409Z [rocprofiler-systems] make[4]: Entering directory '/therock/output/build/profiler/rocprofiler-systems/build/external/binutils/src/rocprofiler-systems-libiberty-build/binutils'
2025-11-30T06:50:31.5504565Z [rocprofiler-systems]   CC       size.o
2025-11-30T06:50:31.5504719Z [rocprofiler-systems]   CC       bucomm.o
...
2025-11-30T06:50:31.5506987Z [rocprofiler-systems]   CC       arparse.o
2025-11-30T06:50:31.5507135Z [rocprofiler-systems]   LEX      arlex.c
2025-11-30T06:50:31.5508159Z [rocprofiler-systems] /therock/output/build/profiler/rocprofiler-systems/build/external/binutils/src/rocprofiler-systems-libiberty-build/missing: line 81: flex: command not found
2025-11-30T06:50:31.5508461Z [rocprofiler-systems] WARNING: 'flex' is missing on your system.
2025-11-30T06:50:31.5508792Z [rocprofiler-systems]          You should only need it if you modified a '.l' file.
2025-11-30T06:50:31.5509240Z [rocprofiler-systems]          You may want to install the Fast Lexical Analyzer package:
2025-11-30T06:50:31.5509527Z [rocprofiler-systems]          <http://flex.sourceforge.net/>
2025-11-30T06:50:31.5509809Z [rocprofiler-systems] make[4]: *** [Makefile:1241: arlex.c] Error 127
```

## Technical Details

Once merged and a new image is built we will need to update pins like
here:
https://github.com/ROCm/TheRock/blob/f4e3c625d8718b38a3aa8ba8ba283bbc5fd4eb63/.github/workflows/release_portable_linux_packages.yml#L148

## Test Plan

I don't have a Linux development environment easily accessible to test
this right now but here's what I would do:

- [x] Reproduce the build issue locally with our existing docker image
- [x] Build the container locally
- [x] Check if the issue persists or is fixed

Alternately, we could merge this without testing and then update the
workflows and hope for the best...

## Test Result

On local setup, reproduced initial failure on gfx950, installed `flex`,
rebuild was successful.

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
rponnuru5 pushed a commit that referenced this pull request Dec 9, 2025
## Motivation

To use the latest `therock_build_manylinux_x86_64` docker image created
with #2365 to resolve
#2364.

## Technical Details

Update the previous SHA,
`4af52d56d91ef6ef8b7d0a13c6115af1ab2c9bf4a8a85d9267b489ecb737ed25`, to
the latest,
`583d473f263a289222c48d4b493e2956b2354a45796f09dee6f2c8ecd4504ab6`.

## Test Plan

<!-- Explain any relevant testing done to verify this PR. -->
Run workflows with the new image.

## Test Result

<!-- Briefly summarize test outcomes. -->
Workflows passing.

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.

Signed-off-by: David Galiffi <David.Galiffi@amd.com>
erman-gurses added a commit that referenced this pull request Feb 11, 2026
) and (#2877) (#3305)

## Motivation
Closes #2954

This pull request re-introduces the relocation of the amdsmi subproject
from the base/ directory into the core/ directory of the TheRock
repository. This move was originally proposed in PR
#2188 and
#2877 but were reverted due to test
failures exposed in CI and local runs.

#2188 - Was failure on `rocm-sdk
test`
#2877 - Was failure on `Multi-Arch`
workflow

## Technical Details

1. `amdsmi` sources and build targets were relocated from `base/amdsmi`
→ `core/amdsmi`.
2. Packaging updates were applied so that `amd-smi` console script entry
points and runtime artifacts are properly included in the Python wheel
produced by TheRock’s packaging logic.
3. `core-amdsmi` artifacts are included in the `rocm-sdk-core` package
and validation tests exercise `amd-smi` as expected.
4. Fixed the multi-arch build failures by making `amd-smi` an explicit
core artifact (`core-amdsmi`) in the build topology and aligning CMake
dependencies to treat it as a required/conditional dependency where
appropriate. This removed ordering ambiguities and “missing target”
errors across math-libs, profiler, and comm-libs, allowing multi-arch
builds to resolve dependencies deterministically.
## Testing

`rocm-sdk test` now passes the `testConsoleScripts` check for `amd-smi`,
which was previously failing with a non-zero exit status. See the
details: #2954

## CI:
### A: Release Workflows Tests
1) Triggered `Release portable Linux packages
(gfx94X,gfx110X,gfx950,gfx1151,gfx120X, dev)` from [this
](#3305) PR's branch
https://github.com/ROCm/TheRock/actions/runs/21836558832 and it is
successful.

2) This automatically triggered workflows below:
[Release portable Linux PyTorch Wheels (gfx120X-all, dev,
7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834) #2363
](https://github.com/ROCm/TheRock/actions/runs/21846577066) 
[Release portable Linux PyTorch Wheels (gfx950-dcgpu, dev,
7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834) #2364
](https://github.com/ROCm/TheRock/actions/runs/21852030796)
[Release portable Linux PyTorch Wheels (gfx1151, dev,
7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834) #2365
](https://github.com/ROCm/TheRock/actions/runs/21852717253)
[Release portable Linux PyTorch Wheels (gfx110X-all, dev,
7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834) #2367
](https://github.com/ROCm/TheRock/actions/runs/21853829698)
[Release portable Linux PyTorch Wheels (gfx94X-dcgpu, dev,
7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834) #2368
](https://github.com/ROCm/TheRock/actions/runs/21854299495)

See example `testConsoleScripts
(rocm_sdk.tests.core_test.ROCmCoreTest.testConsoleScripts) ... ok`

https://github.com/ROCm/TheRock/actions/runs/21854299495/job/63070085745#step:11:1

### B: Multi-Arch Tests

Run `Multi-Arch CI`from this PR's [branch
](https://github.com/ROCm/TheRock/tree/users/erman-gurses/move-amd-smi):

https://github.com/ROCm/TheRock/actions/runs/21834134481. The issue seen
in here #3292 has gone.

## Local:


```
((.venv) ) TheRock$ .venv/bin/python -m pip  install --index-url=https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu  torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834

Looking in indexes: https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu
Collecting torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834
  Downloading https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/torch-2.7.1%2Bdevrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834-cp312-cp312-linux_x86_64.whl (721.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 721.0/721.0 MB 48.1 MB/s eta 0:00:00
Collecting filelock (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/filelock-3.20.3-py3-none-any.whl (16 kB)
Collecting typing-extensions>=4.10.0 (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/typing_extensions-4.15.0-py3-none-any.whl (44 kB)
Collecting setuptools (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/setuptools-80.9.0-py3-none-any.whl (1.2 MB)
Collecting sympy>=1.13.3 (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/sympy-1.14.0-py3-none-any.whl (6.3 MB)
Collecting networkx (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/networkx-3.6.1-py3-none-any.whl (2.1 MB)
Collecting jinja2 (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/jinja2-3.1.6-py3-none-any.whl (134 kB)
Collecting fsspec (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/fsspec-2026.1.0-py3-none-any.whl (201 kB)
Collecting rocm==7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834 (from rocm[libraries]==7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834->torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Downloading https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/rocm-7.12.0.dev0%2Bab23b96387a5c79111438ea936764dc353773834.tar.gz (16 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting triton==3.3.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834 (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Downloading https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/triton-3.3.1%2Bdevrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834-cp312-cp312-linux_x86_64.whl (265.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 265.3/265.3 MB 54.0 MB/s eta 0:00:00
Collecting rocm-sdk-core==7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834 (from rocm==7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834->rocm[libraries]==7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834->torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Downloading https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/rocm_sdk_core-7.12.0.dev0%2Bab23b96387a5c79111438ea936764dc353773834-py3-none-linux_x86_64.whl (284.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 284.1/284.1 MB 61.3 MB/s eta 0:00:00
Collecting rocm-sdk-libraries-gfx94X-dcgpu==7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834 (from rocm[libraries]==7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834->torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Downloading https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/rocm_sdk_libraries_gfx94x_dcgpu-7.12.0.dev0%2Bab23b96387a5c79111438ea936764dc353773834-py3-none-linux_x86_64.whl (1588.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 GB 42.7 MB/s eta 0:00:00
Collecting mpmath<1.4,>=1.1.0 (from sympy>=1.13.3->torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/mpmath-1.3.0-py3-none-any.whl (536 kB)
Collecting MarkupSafe>=2.0 (from jinja2->torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/markupsafe-3.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (22 kB)
Building wheels for collected packages: rocm
  Building wheel for rocm (pyproject.toml) ... done
  Created wheel for rocm: filename=rocm-7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834-py3-none-any.whl size=20754 sha256=f02d33b63c925fc71cf8b561aaba4478700e388f40c7964a55d7545d5b8a4770
  Stored in directory: /home/nod/.cache/pip/wheels/7b/98/96/86d1dd8c6a61cf40f084c7efb9a9267e5d61bfc0fea9f52e81
Successfully built rocm
Installing collected packages: rocm-sdk-libraries-gfx94X-dcgpu, rocm-sdk-core, mpmath, typing-extensions, sympy, setuptools, networkx, MarkupSafe, fsspec, filelock, triton, jinja2, rocm, torch
Successfully installed MarkupSafe-3.0.3 filelock-3.20.3 fsspec-2026.1.0 jinja2-3.1.6 mpmath-1.3.0 networkx-3.6.1 rocm-7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834 rocm-sdk-core-7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834 rocm-sdk-libraries-gfx94X-dcgpu-7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834 setuptools-80.9.0 sympy-1.14.0 torch-2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834 triton-3.3.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834 typing-extensions-4.15.0
```

```
((.venv) ) TheRock$ rocm-sdk test

`testCLI (rocm_sdk.tests.base_test.ROCmBaseTest.testCLI) ... ++ Exec [/home/nod/ergurses/TheRock]$ /home/nod/ergurses/TheRock/.venv/bin/python -P -m rocm_sdk --help
ok
testTargets (rocm_sdk.tests.base_test.ROCmBaseTest.testTargets) ... ++ Exec [/home/nod/ergurses/TheRock]$ /home/nod/ergurses/TheRock/.venv/bin/python -P -m rocm_sdk targets
ok
testVersion (rocm_sdk.tests.base_test.ROCmBaseTest.testVersion) ... ++ Exec [/home/nod/ergurses/TheRock]$ /home/nod/ergurses/TheRock/.venv/bin/python -P -m rocm_sdk version
ok
test_initialize_process_check_version (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_check_version) ... ok
test_initialize_process_check_version_asterisk (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_check_version_asterisk) ... ok
test_initialize_process_check_version_mismatch (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_check_version_mismatch) ... ok
test_initialize_process_check_version_mismatch_warning (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_check_version_mismatch_warning) ... ok
test_initialize_process_check_version_pattern (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_check_version_pattern) ... ok
test_initialize_process_env_preload_1 (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_env_preload_1) ... ok
test_initialize_process_env_preload_2_comma (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_env_preload_2_comma) ... ok
test_initialize_process_env_preload_2_semi (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_env_preload_2_semi) ... ok
test_initialize_process_preload_libraries (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_preload_libraries) ... ok
testConsoleScripts (rocm_sdk.tests.core_test.ROCmCoreTest.testConsoleScripts) ... ok
testInstallationLayout (rocm_sdk.tests.core_test.ROCmCoreTest.testInstallationLayout)
The `rocm_sdk` and core module must be siblings on disk. ... ok
testPreloadLibraries (rocm_sdk.tests.core_test.ROCmCoreTest.testPreloadLibraries) ... ok
testSharedLibrariesLoad (rocm_sdk.tests.core_test.ROCmCoreTest.testSharedLibrariesLoad) ... ok
testConsoleScripts (rocm_sdk.tests.libraries_test.ROCmLibrariesTest.testConsoleScripts) ... ok
testInstallationLayout (rocm_sdk.tests.libraries_test.ROCmLibrariesTest.testInstallationLayout)
The `rocm_sdk` and libraries module must be siblings on disk. ... ok
testSharedLibrariesLoad (rocm_sdk.tests.libraries_test.ROCmLibrariesTest.testSharedLibrariesLoad) ... ok

----------------------------------------------------------------------
Ran 19 tests in 6.455s

OK
```

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
brockhargreaves-amd pushed a commit that referenced this pull request Feb 11, 2026
) and (#2877) (#3305)

## Motivation
Closes #2954

This pull request re-introduces the relocation of the amdsmi subproject
from the base/ directory into the core/ directory of the TheRock
repository. This move was originally proposed in PR
#2188 and
#2877 but were reverted due to test
failures exposed in CI and local runs.

#2188 - Was failure on `rocm-sdk
test`
#2877 - Was failure on `Multi-Arch`
workflow

## Technical Details

1. `amdsmi` sources and build targets were relocated from `base/amdsmi`
→ `core/amdsmi`.
2. Packaging updates were applied so that `amd-smi` console script entry
points and runtime artifacts are properly included in the Python wheel
produced by TheRock’s packaging logic.
3. `core-amdsmi` artifacts are included in the `rocm-sdk-core` package
and validation tests exercise `amd-smi` as expected.
4. Fixed the multi-arch build failures by making `amd-smi` an explicit
core artifact (`core-amdsmi`) in the build topology and aligning CMake
dependencies to treat it as a required/conditional dependency where
appropriate. This removed ordering ambiguities and “missing target”
errors across math-libs, profiler, and comm-libs, allowing multi-arch
builds to resolve dependencies deterministically.
## Testing

`rocm-sdk test` now passes the `testConsoleScripts` check for `amd-smi`,
which was previously failing with a non-zero exit status. See the
details: #2954

## CI:
### A: Release Workflows Tests
1) Triggered `Release portable Linux packages
(gfx94X,gfx110X,gfx950,gfx1151,gfx120X, dev)` from [this
](#3305) PR's branch
https://github.com/ROCm/TheRock/actions/runs/21836558832 and it is
successful.

2) This automatically triggered workflows below:
[Release portable Linux PyTorch Wheels (gfx120X-all, dev,
7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834) #2363
](https://github.com/ROCm/TheRock/actions/runs/21846577066) 
[Release portable Linux PyTorch Wheels (gfx950-dcgpu, dev,
7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834) #2364
](https://github.com/ROCm/TheRock/actions/runs/21852030796)
[Release portable Linux PyTorch Wheels (gfx1151, dev,
7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834) #2365
](https://github.com/ROCm/TheRock/actions/runs/21852717253)
[Release portable Linux PyTorch Wheels (gfx110X-all, dev,
7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834) #2367
](https://github.com/ROCm/TheRock/actions/runs/21853829698)
[Release portable Linux PyTorch Wheels (gfx94X-dcgpu, dev,
7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834) #2368
](https://github.com/ROCm/TheRock/actions/runs/21854299495)

See example `testConsoleScripts
(rocm_sdk.tests.core_test.ROCmCoreTest.testConsoleScripts) ... ok`

https://github.com/ROCm/TheRock/actions/runs/21854299495/job/63070085745#step:11:1

### B: Multi-Arch Tests

Run `Multi-Arch CI`from this PR's [branch
](https://github.com/ROCm/TheRock/tree/users/erman-gurses/move-amd-smi):

https://github.com/ROCm/TheRock/actions/runs/21834134481. The issue seen
in here #3292 has gone.

## Local:


```
((.venv) ) TheRock$ .venv/bin/python -m pip  install --index-url=https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu  torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834

Looking in indexes: https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu
Collecting torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834
  Downloading https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/torch-2.7.1%2Bdevrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834-cp312-cp312-linux_x86_64.whl (721.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 721.0/721.0 MB 48.1 MB/s eta 0:00:00
Collecting filelock (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/filelock-3.20.3-py3-none-any.whl (16 kB)
Collecting typing-extensions>=4.10.0 (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/typing_extensions-4.15.0-py3-none-any.whl (44 kB)
Collecting setuptools (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/setuptools-80.9.0-py3-none-any.whl (1.2 MB)
Collecting sympy>=1.13.3 (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/sympy-1.14.0-py3-none-any.whl (6.3 MB)
Collecting networkx (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/networkx-3.6.1-py3-none-any.whl (2.1 MB)
Collecting jinja2 (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/jinja2-3.1.6-py3-none-any.whl (134 kB)
Collecting fsspec (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/fsspec-2026.1.0-py3-none-any.whl (201 kB)
Collecting rocm==7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834 (from rocm[libraries]==7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834->torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Downloading https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/rocm-7.12.0.dev0%2Bab23b96387a5c79111438ea936764dc353773834.tar.gz (16 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting triton==3.3.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834 (from torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Downloading https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/triton-3.3.1%2Bdevrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834-cp312-cp312-linux_x86_64.whl (265.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 265.3/265.3 MB 54.0 MB/s eta 0:00:00
Collecting rocm-sdk-core==7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834 (from rocm==7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834->rocm[libraries]==7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834->torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Downloading https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/rocm_sdk_core-7.12.0.dev0%2Bab23b96387a5c79111438ea936764dc353773834-py3-none-linux_x86_64.whl (284.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 284.1/284.1 MB 61.3 MB/s eta 0:00:00
Collecting rocm-sdk-libraries-gfx94X-dcgpu==7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834 (from rocm[libraries]==7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834->torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Downloading https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/rocm_sdk_libraries_gfx94x_dcgpu-7.12.0.dev0%2Bab23b96387a5c79111438ea936764dc353773834-py3-none-linux_x86_64.whl (1588.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 GB 42.7 MB/s eta 0:00:00
Collecting mpmath<1.4,>=1.1.0 (from sympy>=1.13.3->torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/mpmath-1.3.0-py3-none-any.whl (536 kB)
Collecting MarkupSafe>=2.0 (from jinja2->torch==2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834)
  Using cached https://rocm.devreleases.amd.com/v2-staging/gfx94X-dcgpu/markupsafe-3.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (22 kB)
Building wheels for collected packages: rocm
  Building wheel for rocm (pyproject.toml) ... done
  Created wheel for rocm: filename=rocm-7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834-py3-none-any.whl size=20754 sha256=f02d33b63c925fc71cf8b561aaba4478700e388f40c7964a55d7545d5b8a4770
  Stored in directory: /home/nod/.cache/pip/wheels/7b/98/96/86d1dd8c6a61cf40f084c7efb9a9267e5d61bfc0fea9f52e81
Successfully built rocm
Installing collected packages: rocm-sdk-libraries-gfx94X-dcgpu, rocm-sdk-core, mpmath, typing-extensions, sympy, setuptools, networkx, MarkupSafe, fsspec, filelock, triton, jinja2, rocm, torch
Successfully installed MarkupSafe-3.0.3 filelock-3.20.3 fsspec-2026.1.0 jinja2-3.1.6 mpmath-1.3.0 networkx-3.6.1 rocm-7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834 rocm-sdk-core-7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834 rocm-sdk-libraries-gfx94X-dcgpu-7.12.0.dev0+ab23b96387a5c79111438ea936764dc353773834 setuptools-80.9.0 sympy-1.14.0 torch-2.7.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834 triton-3.3.1+devrocm7.12.0.dev0.ab23b96387a5c79111438ea936764dc353773834 typing-extensions-4.15.0
```

```
((.venv) ) TheRock$ rocm-sdk test

`testCLI (rocm_sdk.tests.base_test.ROCmBaseTest.testCLI) ... ++ Exec [/home/nod/ergurses/TheRock]$ /home/nod/ergurses/TheRock/.venv/bin/python -P -m rocm_sdk --help
ok
testTargets (rocm_sdk.tests.base_test.ROCmBaseTest.testTargets) ... ++ Exec [/home/nod/ergurses/TheRock]$ /home/nod/ergurses/TheRock/.venv/bin/python -P -m rocm_sdk targets
ok
testVersion (rocm_sdk.tests.base_test.ROCmBaseTest.testVersion) ... ++ Exec [/home/nod/ergurses/TheRock]$ /home/nod/ergurses/TheRock/.venv/bin/python -P -m rocm_sdk version
ok
test_initialize_process_check_version (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_check_version) ... ok
test_initialize_process_check_version_asterisk (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_check_version_asterisk) ... ok
test_initialize_process_check_version_mismatch (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_check_version_mismatch) ... ok
test_initialize_process_check_version_mismatch_warning (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_check_version_mismatch_warning) ... ok
test_initialize_process_check_version_pattern (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_check_version_pattern) ... ok
test_initialize_process_env_preload_1 (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_env_preload_1) ... ok
test_initialize_process_env_preload_2_comma (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_env_preload_2_comma) ... ok
test_initialize_process_env_preload_2_semi (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_env_preload_2_semi) ... ok
test_initialize_process_preload_libraries (rocm_sdk.tests.base_test.ROCmBaseTest.test_initialize_process_preload_libraries) ... ok
testConsoleScripts (rocm_sdk.tests.core_test.ROCmCoreTest.testConsoleScripts) ... ok
testInstallationLayout (rocm_sdk.tests.core_test.ROCmCoreTest.testInstallationLayout)
The `rocm_sdk` and core module must be siblings on disk. ... ok
testPreloadLibraries (rocm_sdk.tests.core_test.ROCmCoreTest.testPreloadLibraries) ... ok
testSharedLibrariesLoad (rocm_sdk.tests.core_test.ROCmCoreTest.testSharedLibrariesLoad) ... ok
testConsoleScripts (rocm_sdk.tests.libraries_test.ROCmLibrariesTest.testConsoleScripts) ... ok
testInstallationLayout (rocm_sdk.tests.libraries_test.ROCmLibrariesTest.testInstallationLayout)
The `rocm_sdk` and libraries module must be siblings on disk. ... ok
testSharedLibrariesLoad (rocm_sdk.tests.libraries_test.ROCmLibrariesTest.testSharedLibrariesLoad) ... ok

----------------------------------------------------------------------
Ran 19 tests in 6.455s

OK
```

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Issue] rocprofiler-systems build failures for Linux gfx950 releases

2 participants