Skip to content

Update rocm recipes to 7.2.1 and add rocwmma, triton, libmagma and pytorch#26

Merged
traversaro merged 113 commits into
mainfrom
updaterocm702
Apr 27, 2026
Merged

Update rocm recipes to 7.2.1 and add rocwmma, triton, libmagma and pytorch#26
traversaro merged 113 commits into
mainfrom
updaterocm702

Conversation

@traversaro

@traversaro traversaro commented Mar 31, 2026

Copy link
Copy Markdown
Collaborator

Almost all initial changes done by Opus 4.6, with the initial prompt:

Can you please update the repo to the rocm 7.2.1 version? Note that since 7.0.2 version used here, most rocm package passed to use tarballs hosted in https://github.com/ROCm/rocm-systems/releases/tag/rocm-7.2.1 and https://github.com/ROCm/rocm-libraries/releases/tag/rocm-7.2.1, so it is not simply the version in the recipe that needs to be updated, but also the actual tarball downloaded.

Furthermore, all the hash needs to be updated, for that please use the bump_version.py script .

For some indication of the changes necessary for the 7.0.2 to 7.2.1 update, please refer to:

@traversaro

Copy link
Copy Markdown
Collaborator Author

rocm-device-libs fails with:

use of undeclared identifier '__builtin_amdgcn_cluster_workgroup_max_id_y'

@traversaro

Copy link
Copy Markdown
Collaborator Author

It seems due to https://github.com/ROCm/llvm-project/blob/rocm-7.2.1/amd/device-libs/ockl/src/cluster.cl and ROCm/llvm-project#553 . It is probably a modification to support newer gfx1250 and gfx1251 (that anyhow we do not support) that requires a rocm-specific llvm change that is not there in clang 20.1.8 . I think the easier option is to revert the device-libs specific bits of ROCm/llvm-project#553 , but let's check what gentoo does (as the only distro that packages recent rocm with older upstream clang/llvm).

@traversaro

Copy link
Copy Markdown
Collaborator Author

Now we have a rocr-runtime error:

mcode-object-version=4 -o ocl_blit_object_gfx902 $SRC_DIR/runtime/hsa-runtime/image/blit_src/imageblit_kernels.cl
2026-03-31T16:52:31.6832423Z cd $SRC_DIR/build/runtime/hsa-runtime/core/runtime/trap_handler && $PREFIX/bin/llvm-objcopy --dump-section=.text=kCodeTrapHandlerV2_942 kCodeTrapHandlerV2_942.hsaco
2026-03-31T16:52:31.6833654Z cd $SRC_DIR/build/runtime/hsa-runtime/core/runtime/blit_shaders && $PREFIX/bin/clang-20 -x assembler -target amdgcn-amd-amdhsa -mcode-object-version=5 -fPIC -mcpu=gfx1100 -o kCodeFill11.hsaco $SRC_DIR/runtime/hsa-runtime/core/runtime/blit_shaders/blit_fill.s
2026-03-31T16:52:31.6835199Z /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/conda-bld/rocr-runtime_1774975867221/work/libhsakmt/src/fmm.c:1679:38: error: use of undeclared identifier 'MFD_ALLOW_SEALING'
2026-03-31T16:52:31.6835970Z  1679 |         memfd = memfd_create("thunk_memfd", MFD_ALLOW_SEALING);
2026-03-31T16:52:31.6836268Z       |                                             ^
2026-03-31T16:52:31.6863193Z /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/conda-bld/rocr-runtime_1774975867221/work/libhsakmt/src/fmm.c:1692:19: error: use of undeclared identifier 'F_ADD_SEALS'
2026-03-31T16:52:31.6902960Z  1692 |         if (fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_GROW) < 0) {
2026-03-31T16:52:31.6962334Z       |                          ^
2026-03-31T16:52:31.7002325Z /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/conda-bld/rocr-runtime_1774975867221/work/libhsakmt/src/fmm.c:1692:32: error: use of undeclared identifier 'F_SEAL_SHRINK'
2026-03-31T16:52:31.7041974Z  1692 |         if (fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_GROW) < 0) {
2026-03-31T16:52:31.7071373Z       |                                       ^
2026-03-31T16:52:31.7101851Z /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/conda-bld/rocr-runtime_1774975867221/work/libhsakmt/src/fmm.c:1692:48: error: use of undeclared identifier 'F_SEAL_GROW'
2026-03-31T16:52:31.7111556Z  1692 |         if (fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_GROW) < 0) {
2026-03-31T16:52:31.7112353Z       |     

@traversaro

Copy link
Copy Markdown
Collaborator Author

Now we have a rocr-runtime error:

mcode-object-version=4 -o ocl_blit_object_gfx902 $SRC_DIR/runtime/hsa-runtime/image/blit_src/imageblit_kernels.cl
2026-03-31T16:52:31.6832423Z cd $SRC_DIR/build/runtime/hsa-runtime/core/runtime/trap_handler && $PREFIX/bin/llvm-objcopy --dump-section=.text=kCodeTrapHandlerV2_942 kCodeTrapHandlerV2_942.hsaco
2026-03-31T16:52:31.6833654Z cd $SRC_DIR/build/runtime/hsa-runtime/core/runtime/blit_shaders && $PREFIX/bin/clang-20 -x assembler -target amdgcn-amd-amdhsa -mcode-object-version=5 -fPIC -mcpu=gfx1100 -o kCodeFill11.hsaco $SRC_DIR/runtime/hsa-runtime/core/runtime/blit_shaders/blit_fill.s
2026-03-31T16:52:31.6835199Z /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/conda-bld/rocr-runtime_1774975867221/work/libhsakmt/src/fmm.c:1679:38: error: use of undeclared identifier 'MFD_ALLOW_SEALING'
2026-03-31T16:52:31.6835970Z  1679 |         memfd = memfd_create("thunk_memfd", MFD_ALLOW_SEALING);
2026-03-31T16:52:31.6836268Z       |                                             ^
2026-03-31T16:52:31.6863193Z /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/conda-bld/rocr-runtime_1774975867221/work/libhsakmt/src/fmm.c:1692:19: error: use of undeclared identifier 'F_ADD_SEALS'
2026-03-31T16:52:31.6902960Z  1692 |         if (fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_GROW) < 0) {
2026-03-31T16:52:31.6962334Z       |                          ^
2026-03-31T16:52:31.7002325Z /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/conda-bld/rocr-runtime_1774975867221/work/libhsakmt/src/fmm.c:1692:32: error: use of undeclared identifier 'F_SEAL_SHRINK'
2026-03-31T16:52:31.7041974Z  1692 |         if (fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_GROW) < 0) {
2026-03-31T16:52:31.7071373Z       |                                       ^
2026-03-31T16:52:31.7101851Z /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/conda-bld/rocr-runtime_1774975867221/work/libhsakmt/src/fmm.c:1692:48: error: use of undeclared identifier 'F_SEAL_GROW'
2026-03-31T16:52:31.7111556Z  1692 |         if (fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_GROW) < 0) {
2026-03-31T16:52:31.7112353Z       |     

Ok, the missing symbols were introduced in glibc 2.27, so for this package we need to raise the c_stdlib_version, for now we just do it in conda_build_config.yaml for simplificy, but once that is ported upstream that should be done in a per-feedstock way.

Updated the C standard library version for Linux from 2.17 to 2.27.
@traversaro

Copy link
Copy Markdown
Collaborator Author

Now we have a rocr-runtime error:

mcode-object-version=4 -o ocl_blit_object_gfx902 $SRC_DIR/runtime/hsa-runtime/image/blit_src/imageblit_kernels.cl
2026-03-31T16:52:31.6832423Z cd $SRC_DIR/build/runtime/hsa-runtime/core/runtime/trap_handler && $PREFIX/bin/llvm-objcopy --dump-section=.text=kCodeTrapHandlerV2_942 kCodeTrapHandlerV2_942.hsaco
2026-03-31T16:52:31.6833654Z cd $SRC_DIR/build/runtime/hsa-runtime/core/runtime/blit_shaders && $PREFIX/bin/clang-20 -x assembler -target amdgcn-amd-amdhsa -mcode-object-version=5 -fPIC -mcpu=gfx1100 -o kCodeFill11.hsaco $SRC_DIR/runtime/hsa-runtime/core/runtime/blit_shaders/blit_fill.s
2026-03-31T16:52:31.6835199Z /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/conda-bld/rocr-runtime_1774975867221/work/libhsakmt/src/fmm.c:1679:38: error: use of undeclared identifier 'MFD_ALLOW_SEALING'
2026-03-31T16:52:31.6835970Z  1679 |         memfd = memfd_create("thunk_memfd", MFD_ALLOW_SEALING);
2026-03-31T16:52:31.6836268Z       |                                             ^
2026-03-31T16:52:31.6863193Z /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/conda-bld/rocr-runtime_1774975867221/work/libhsakmt/src/fmm.c:1692:19: error: use of undeclared identifier 'F_ADD_SEALS'
2026-03-31T16:52:31.6902960Z  1692 |         if (fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_GROW) < 0) {
2026-03-31T16:52:31.6962334Z       |                          ^
2026-03-31T16:52:31.7002325Z /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/conda-bld/rocr-runtime_1774975867221/work/libhsakmt/src/fmm.c:1692:32: error: use of undeclared identifier 'F_SEAL_SHRINK'
2026-03-31T16:52:31.7041974Z  1692 |         if (fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_GROW) < 0) {
2026-03-31T16:52:31.7071373Z       |                                       ^
2026-03-31T16:52:31.7101851Z /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/conda-bld/rocr-runtime_1774975867221/work/libhsakmt/src/fmm.c:1692:48: error: use of undeclared identifier 'F_SEAL_GROW'
2026-03-31T16:52:31.7111556Z  1692 |         if (fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK | F_SEAL_GROW) < 0) {
2026-03-31T16:52:31.7112353Z       |     

Ok, the missing symbols were introduced in glibc 2.27, so for this package we need to raise the c_stdlib_version, for now we just do it in conda_build_config.yaml for simplificy, but once that is ported upstream that should be done in a per-feedstock way.

Done in 0716640 .

@traversaro

Copy link
Copy Markdown
Collaborator Author

Done in 0716640 .

This resulted in:

 ╰─────────────────── (took 3 seconds)
Error:   × Failed to resolve dependencies: Cannot solve the request because of: No
  │ candidates were found for sysroot_linux-64 2.27.*.
  │ 
  ╰─▶ Cannot solve the request because of: No candidates were found for
      sysroot_linux-64 2.27.*.

the closest available version is 2.28 .

Update c_stdlib_version to 2.28 for Linux.
Removed 'pciutils-devel' from build dependencies.
Removed patches for backporting changes from ROCm repository.
@traversaro

Copy link
Copy Markdown
Collaborator Author

We have a real failure in the newly added rocminfo tests:


-SIZE=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/bin/x86_64-conda-linux-gnu-size
-STRINGS=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/bin/x86_64-conda-linux-gnu-strings
-STRIP=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/bin/x86_64-conda-linux-gnu-strip
AMDGPU kernel module detected, assuming AMD GPU is present
ERROR: rocminfo did not report any GPU agent

the good news is that the test work as intended, and they fail the generation if an amdgpu is detected but rocminfo does not behave as intended.

@traversaro

Copy link
Copy Markdown
Collaborator Author

We have a real failure in the newly added rocminfo tests:


-SIZE=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/bin/x86_64-conda-linux-gnu-size
-STRINGS=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/bin/x86_64-conda-linux-gnu-strings
-STRIP=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/bin/x86_64-conda-linux-gnu-strip
AMDGPU kernel module detected, assuming AMD GPU is present
ERROR: rocminfo did not report any GPU agent

the good news is that the test work as intended, and they fail the generation if an amdgpu is detected but rocminfo does not behave as intended.

Fixed by fac8b8d .

@traversaro

Copy link
Copy Markdown
Collaborator Author

I was trying to get rocm-comgr 7.2.1 to build with llvm 20.1.8, but checking more in details it seems that rocm 7.2.1 uses llvm 22, see https://github.com/ROCm/llvm-project/blob/rocm-7.2.1/cmake/Modules/LLVMVersion.cmake . So we should jump to llvm 22 also here, indeed also gentoo for rocm 7.2 only had patches for llvm 22 compat, not llvm 20 compat.

@traversaro

Copy link
Copy Markdown
Collaborator Author

xref: gentoo/gentoo#45826

@traversaro

Copy link
Copy Markdown
Collaborator Author

The error is now:


 ╰─────────────────── (took 1 second)
Error:   × Failed to resolve dependencies: Cannot solve the request because of: No
  │ candidates were found for clang_linux-64 22.*.
  │ 
  ╰─▶ Cannot solve the request because of: No candidates were found for
      clang_linux-64 22.*.

so this is now blocked by conda-forge/ctng-compiler-activation-feedstock#184 .

@traversaro

Copy link
Copy Markdown
Collaborator Author

The error is now:


 ╰─────────────────── (took 1 second)
Error:   × Failed to resolve dependencies: Cannot solve the request because of: No
  │ candidates were found for clang_linux-64 22.*.
  │ 
  ╰─▶ Cannot solve the request because of: No candidates were found for
      clang_linux-64 22.*.

so this is now blocked by conda-forge/ctng-compiler-activation-feedstock#184 .

As a workaround, I tried to build the package locally, but I get as error:

2026-04-01T21:35:01.6255752Z  ╭─ Running script test for recipe: clang_linux-64-22.1-h4769388_22.conda
2026-04-01T21:35:01.6255923Z  │ 
2026-04-01T21:35:01.6256030Z  │ Resolving test environment:
2026-04-01T21:35:01.6256291Z  │   Platform: linux-64 [__unix=0=0, __linux=6.17.0=0, __glibc=2.39=0, __archspec=1=x86_64_v4]
2026-04-01T21:35:01.6256508Z  │   Channels: 
2026-04-01T21:35:01.6256628Z  │    - file:///tmp/.tmpA5BBMT/
2026-04-01T21:35:01.6256838Z  │    - file:///home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/
2026-04-01T21:35:01.6257028Z  │    - conda-forge
2026-04-01T21:35:01.6257180Z  │    - https://prefix.dev/rock-the-conda-strix/
2026-04-01T21:35:01.6257322Z  │   Specs:
2026-04-01T21:35:01.6257430Z  │    - sysroot_linux-64 2.17.*
2026-04-01T21:35:01.6257574Z  │    - clang_linux-64 ==22.1 h4769388_22
2026-04-01T21:35:01.7534261Z  │
2026-04-01T21:35:01.7534724Z  ╰─────────────────── (took 0 seconds)
2026-04-01T21:35:01.9068240Z Error:   × Test failed: failed to setup test environment: Cannot solve the request
2026-04-01T21:35:01.9068550Z   │ because of: The following packages are incompatible
2026-04-01T21:35:01.9068799Z   │ └─ clang_linux-64 ==22.1 h4769388_22 cannot be installed because there are
2026-04-01T21:35:01.9069024Z   │ no viable options:
2026-04-01T21:35:01.9069159Z   │    ├─ clang_linux-64 22.1 would require
2026-04-01T21:35:01.9069368Z   │    │  └─ clang_impl_linux-64 22.1.*, which cannot be installed because
2026-04-01T21:35:01.9069554Z   │ there are no viable options:
2026-04-01T21:35:01.9069707Z   │    │     ├─ clang_impl_linux-64 22.1 would require
2026-04-01T21:35:01.9069904Z   │    │     │  └─ clang 22.1.*, which cannot be installed because there are
2026-04-01T21:35:01.9070070Z   │ no viable options:
2026-04-01T21:35:01.9070520Z   │    │     │     ├─ clang 22.1.0 would require
2026-04-01T21:35:01.9070911Z   │    │     │     │  └─ clang_impl_linux-64 ==22.1.0 default_h0a60c25_0,
2026-04-01T21:35:01.9071232Z   │ which cannot be installed because there are no viable options:
2026-04-01T21:35:01.9071521Z   │    │     │     │     └─ clang_impl_linux-64 22.1.0 is excluded because due
2026-04-01T21:35:01.9071740Z   │ to strict channel priority not using this option from: 'https://
2026-04-01T21:35:01.9071937Z   │ conda.anaconda.org/conda-forge/'
2026-04-01T21:35:01.9072088Z   │    │     │     └─ clang 22.1.0 would require
2026-04-01T21:35:01.9072273Z   │    │     │        └─ clang_impl_linux-64 ==22.1.0 default_h666bb00_0,
2026-04-01T21:35:01.9072482Z   │ which cannot be installed because there are no viable options:
2026-04-01T21:35:01.9072695Z   │    │     │           └─ clang_impl_linux-64 22.1.0 is excluded because due
2026-04-01T21:35:01.9072906Z   │ to strict channel priority not using this option from: 'https://
2026-04-01T21:35:01.9073094Z   │ conda.anaconda.org/conda-forge/'
2026-04-01T21:35:01.9073279Z   │    │     ├─ clang_impl_linux-64 22.1.0 is excluded because due to strict
2026-04-01T21:35:01.9073537Z   │ channel priority not using this option from: 'https://conda.anaconda.org/
2026-04-01T21:35:01.9073720Z   │ conda-forge/'
2026-04-01T21:35:01.9073877Z   │    │     └─ clang_impl_linux-64 22.1.0 is excluded because due to strict
2026-04-01T21:35:01.9074117Z   │ channel priority not using this option from: 'https://conda.anaconda.org/
2026-04-01T21:35:01.9074305Z   │ conda-forge/'
2026-04-01T21:35:01.9074471Z   │    └─ clang_linux-64 22.1 is excluded because due to strict channel
2026-04-01T21:35:01.9074701Z   │ priority not using this option from: 'file:///home/gene/actions-runner/
2026-04-01T21:35:01.9074908Z   │ _work/rock-the-conda/rock-the-conda/output/'
2026-04-01T21:35:01.9075040Z   │ 
2026-04-01T21:35:01.9075087Z 

that is similar to the upstream error:

2026-04-02T00:30:24.0440155Z  │ │
2026-04-02T00:30:24.0440779Z  │ ╰─────────────────── (took 0 seconds)
2026-04-02T00:30:24.0456754Z  │
2026-04-02T00:30:24.0457133Z  ╰─────────────────── (took 2 seconds)
2026-04-02T00:30:24.0577238Z  Collecting tests from '/tmp/.tmpPs35qc/clang_impl_linux-64-22.1-h5817e32_22'
2026-04-02T00:30:24.0581369Z 
2026-04-02T00:30:24.0582156Z  ╭─ Running script test for recipe: clang_impl_linux-64-22.1-h5817e32_22.conda
2026-04-02T00:30:24.0582786Z  │
2026-04-02T00:30:24.0583147Z  │ ╭─ Resolving test environment
2026-04-02T00:30:24.0583657Z  │ │   Platform: linux-64 [__unix=0=0, __linux=6.17.0=0, __glibc=2.34=0, __archspec=1=zen2]
2026-04-02T00:30:24.0585575Z  │ │   Channels: 
2026-04-02T00:30:24.0585877Z  │ │    - file:///tmp/.tmpyM6XXX/
2026-04-02T00:30:24.0586347Z  │ │    - file:///home/conda/feedstock_root/build_artifacts/
2026-04-02T00:30:24.0586929Z  │ │    - conda-forge
2026-04-02T00:30:24.0587283Z  │ │   Specs:
2026-04-02T00:30:24.0587726Z  │ │    - clang_impl_linux-64 ==22.1 h5817e32_22
2026-04-02T00:30:24.1587286Z  │ │
2026-04-02T00:30:24.1587614Z  │ ╰─────────────────── (took 0 seconds)
2026-04-02T00:30:24.1587901Z  │
2026-04-02T00:30:24.1588113Z  ╰─────────────────── (took 0 seconds)
2026-04-02T00:30:24.1766555Z Error:   × Test failed: failed to setup test environment:   × Cannot solve the
2026-04-02T00:30:24.1767506Z   │ request because of: clang_impl_linux-64 ==22.1
2026-04-02T00:30:24.1768306Z   │   │ h5817e32_22 cannot be installed because there are no viable options:
2026-04-02T00:30:24.1769030Z   │   │ └─ clang_impl_linux-64 22.1 would require
2026-04-02T00:30:24.1770248Z   │   │    └─ clang 22.1.*, which cannot be installed because there are no
2026-04-02T00:30:24.1770855Z   │ viable
2026-04-02T00:30:24.1771151Z   │   │ options:
2026-04-02T00:30:24.1771568Z   │   │       └─ clang 22.1.0 | 22.1.0 would require
2026-04-02T00:30:24.1772227Z   │   │          └─ clang_impl_linux-64 ==22.1.0 default_h666bb00_0, for which
2026-04-02T00:30:24.1772769Z   │ no
2026-04-02T00:30:24.1773097Z   │   │ candidates were found.
2026-04-02T00:30:24.1773561Z   │   │ The following packages are incompatible
2026-04-02T00:30:24.1774265Z   │   │ └─ clang_impl_linux-64 ==22.1 h5817e32_22 cannot be installed because
2026-04-02T00:30:24.1774923Z   │   │ there are no viable options:
2026-04-02T00:30:24.1775541Z   │   │    └─ clang_impl_linux-64 22.1 is excluded because due to strict
2026-04-02T00:30:24.1776051Z   │ channel
2026-04-02T00:30:24.1776489Z   │   │ priority not using this option from: 'file:///home/conda/
2026-04-02T00:30:24.1776992Z   │ feedstock_root/
2026-04-02T00:30:24.1777339Z   │   │ build_artifacts/'
2026-04-02T00:30:24.1777661Z   │   │
2026-04-02T00:30:24.1777902Z   │ 

@traversaro

Copy link
Copy Markdown
Collaborator Author

I backported here the fix proposed in conda-forge/ctng-compiler-activation-feedstock#184 (comment), and reduced the build matrix to speedup compilation of the clang_impl_* packages.

Co-authored-by: traversaro <1857049+traversaro@users.noreply.github.com>

Copilot AI commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Done. The only conflict was in pixi.toml — resolved by keeping the new build-rocm-jax-plugin-no-deps and build-rocm-jax-plugin tasks from main, while preserving our branch's build-packages definition (which includes build-clang22-activation and build-pytorch). Merge commit: 3951587.

@traversaro

Copy link
Copy Markdown
Collaborator Author

Ok, we finally reach the tests, where the fun part will begin:

2026-04-17T15:14:59.4570103Z Nothing to test for: ./output/linux-64/pytorch-2.10.0-rocm72_mkl_py313_h063dd0a_303.conda
2026-04-17T15:14:59.4570984Z TEST START: ./output/linux-64/pytorch-2.10.0-rocm72_mkl_py312_h36c450c_303.conda
2026-04-17T15:14:59.4571695Z Adding in variants from /tmp/tmpwej42_40/info/recipe/conda_build_config.yaml
2026-04-17T15:14:59.6724410Z WARNING: Multiple meta files found. The meta.yaml file in the base directory (/tmp/tmpyxfgv8zj/info/recipe) will be used.
2026-04-17T15:14:59.7028736Z Nothing to test for: ./output/linux-64/pytorch-2.10.0-rocm72_mkl_py312_h36c450c_303.conda
2026-04-17T15:14:59.7029541Z TEST START: ./output/linux-64/pytorch-gpu-2.10.0-rocm72_mkl_h3780895_303.conda
2026-04-17T15:14:59.7030257Z Adding in variants from /tmp/tmpyxfgv8zj/info/recipe/conda_build_config.yaml
2026-04-17T15:15:02.9751417Z Reloading output folder: ...working... done
2026-04-17T15:15:03.6095322Z Solving environment (_test_env): ...working... done
2026-04-17T15:15:03.6530282Z 
2026-04-17T15:15:03.6530856Z ## Package Plan ##
2026-04-17T15:15:03.6531029Z 
2026-04-17T15:15:03.6532234Z   environment location: /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776434406469/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p
2026-04-17T15:15:03.6533133Z 
2026-04-17T15:15:03.6533137Z 
2026-04-17T15:15:03.6533238Z The following NEW packages will be INSTALLED:
2026-04-17T15:15:03.6533409Z 
2026-04-17T15:15:03.6533546Z     _openmp_mutex:        4.5-7_kmp_llvm                       conda-forge
2026-04-17T15:15:03.6533909Z     bzip2:                1.0.8-hda65f42_9                     conda-forge
2026-04-17T15:15:03.6534225Z     c-ares:               1.34.6-hb03c661_0                    conda-forge
2026-04-17T15:15:03.6534568Z     ca-certificates:      2026.2.25-hbd8a1cb_0                 conda-forge
2026-04-17T15:15:03.6534935Z     composable-kernel:    7.2.1-hbdecb88_0                     local      
2026-04-17T15:15:03.6535284Z     cpython:              3.13.13-py313hd8ed1ab_100            conda-forge
2026-04-17T15:15:03.6535618Z     cuda-cudart:          13.2.75-hecca717_0                   conda-forge
2026-04-17T15:15:03.6535971Z     cuda-cudart_linux-64: 13.2.75-h376f20c_0                   conda-forge
2026-04-17T15:15:03.6536312Z     cuda-nvrtc:           13.2.78-hecca717_0                   conda-forge
2026-04-17T15:15:03.6536650Z     cuda-version:         13.2-he2cc418_3                      conda-forge
2026-04-17T15:15:03.6537044Z     elfutils:             0.192-hebdcf93_2                     conda-forge
2026-04-17T15:15:03.6537369Z     filelock:             3.28.0-pyhd8ed1ab_0                  conda-forge
2026-04-17T15:15:03.6537687Z     fmt:                  12.1.0-hff5e90c_0                    conda-forge
2026-04-17T15:15:03.6537999Z     fsspec:               2026.3.0-pyhd8ed1ab_0                conda-forge
2026-04-17T15:15:03.6539276Z     gmp:                  6.3.0-hac33072_2                     conda-forge
2026-04-17T15:15:03.6539860Z     gmpy2:                2.3.0-py313h86d8783_1                conda-forge
2026-04-17T15:15:03.6540408Z     gnutls:               3.8.11-h18acefa_1                    conda-forge
2026-04-17T15:15:03.6540972Z     hip-runtime-amd:      7.2.1-h3a53fc1_1                     local      
2026-04-17T15:15:03.6541525Z     hipblas:              7.2.1-h1fb86a0_0                     local      
2026-04-17T15:15:03.6542052Z     hipblaslt:            7.2.1-h75e3474_1                     local      
2026-04-17T15:15:03.6542571Z     hipcub:               7.2.1-hbdecb88_0                     local      
2026-04-17T15:15:03.6543075Z     hipfft:               7.2.1-hbdecb88_0                     local      
2026-04-17T15:15:03.6543583Z     hiprand:              7.2.1-h1fb86a0_0                     local      
2026-04-17T15:15:03.6544441Z     hipsolver:            7.2.1-h1fb86a0_0                     local      
2026-04-17T15:15:03.6544964Z     hipsparse:            7.2.1-h1fb86a0_0                     local      
2026-04-17T15:15:03.6545475Z     icu:                  78.3-h33c6efd_0                      conda-forge
2026-04-17T15:15:03.6545978Z     jinja2:               3.1.6-pyhcf101f3_1                   conda-forge
2026-04-17T15:15:03.6546497Z     keyutils:             1.6.3-hb9d3cd8_0                     conda-forge
2026-04-17T15:15:03.6547002Z     krb5:                 1.22.2-ha1258a1_0                    conda-forge
2026-04-17T15:15:03.6547535Z     ld_impl_linux-64:     2.45.1-default_hbd61a6d_102          conda-forge
2026-04-17T15:15:03.6548091Z     libabseil:            20260107.1-cxx17_h7b12aa8_0          conda-forge
2026-04-17T15:15:03.6548860Z     libarchive:           3.8.7-gpl_hc2c16d8_100               conda-forge
2026-04-17T15:15:03.6549395Z     libblas:              3.11.0-6_h5875eb1_mkl                conda-forge
2026-04-17T15:15:03.6549912Z     libboost:             1.86.0-hd24cca6_5                    conda-forge
2026-04-17T15:15:03.6550132Z     libcblas:             3.11.0-6_hfef963f_mkl                conda-forge
2026-04-17T15:15:03.6550311Z     libcublas:            13.4.0.1-h676940d_0                  conda-forge
2026-04-17T15:15:03.6550528Z     libcurl:              8.19.0-hcf29cc6_0                    conda-forge
2026-04-17T15:15:03.6550738Z     libcusparse:          12.7.10.1-hecca717_0                 conda-forge
2026-04-17T15:15:03.6550916Z     libdrm:               2.4.125-hb03c661_1                   conda-forge
2026-04-17T15:15:03.6551093Z     libedit:              3.1.20250104-pl5321h7949ede_0        conda-forge
2026-04-17T15:15:03.6551270Z     libev:                4.33-hd590300_2                      conda-forge
2026-04-17T15:15:03.6551445Z     libexpat:             2.7.5-hecca717_0                     conda-forge
2026-04-17T15:15:03.6551621Z     libffi:               3.5.2-h3435931_0                     conda-forge
2026-04-17T15:15:03.6551791Z     libgcc:               15.2.0-he0feb66_18                   conda-forge
2026-04-17T15:15:03.6551968Z     libgcc-ng:            15.2.0-h69a702a_18                   conda-forge
2026-04-17T15:15:03.6552180Z     libgfortran:          15.2.0-h69a702a_18                   conda-forge
2026-04-17T15:15:03.6552367Z     libgfortran5:         15.2.0-h68bc16d_18                   conda-forge
2026-04-17T15:15:03.6559350Z     libhwloc:             2.12.2-default_hafda6a7_1000         conda-forge
2026-04-17T15:15:03.6559968Z     libiconv:             1.18-h3b78370_2                      conda-forge
2026-04-17T15:15:03.6560505Z     libidn2:              2.3.8-hfac485b_1                     conda-forge
2026-04-17T15:15:03.6561360Z     liblapack:            3.11.0-6_h5e43f62_mkl                conda-forge
2026-04-17T15:15:03.6561897Z     libllvm22:            22.1.3-hf7376ad_0                    conda-forge
2026-04-17T15:15:03.6562419Z     liblzma:              5.8.3-hb03c661_0                     conda-forge
2026-04-17T15:15:03.6562926Z     libmagma:             2.10.0-hd93470c_0                    conda-forge
2026-04-17T15:15:03.6563467Z     libmicrohttpd:        1.0.2-hc2fc477_0                     conda-forge
2026-04-17T15:15:03.6564013Z     libmpdec:             4.0.0-hb03c661_1                     conda-forge
2026-04-17T15:15:03.6564549Z     libnghttp2:           1.68.1-h877daf1_0                    conda-forge
2026-04-17T15:15:03.6565076Z     libnuma:              2.0.18-hb03c661_3                    conda-forge
2026-04-17T15:15:03.6565615Z     libnvjitlink:         13.2.78-hecca717_0                   conda-forge
2026-04-17T15:15:03.6566161Z     libpciaccess:         0.18-hb9d3cd8_0                      conda-forge
2026-04-17T15:15:03.6566708Z     libprotobuf:          6.33.5-h2b00c02_0                    conda-forge
2026-04-17T15:15:03.6567244Z     libsqlite:            3.53.0-hf4e2dac_0                    conda-forge
2026-04-17T15:15:03.6567968Z     libssh2:              1.11.1-hcf80075_0                    conda-forge
2026-04-17T15:15:03.6568709Z     libstdcxx:            15.2.0-h934c35e_18                   conda-forge
2026-04-17T15:15:03.6569252Z     libstdcxx-ng:         15.2.0-hdf11a46_18                   conda-forge
2026-04-17T15:15:03.6569786Z     libtasn1:             4.21.0-hb03c661_0                    conda-forge
2026-04-17T15:15:03.6570095Z     libtorch:             2.10.0-rocm72_mkl_h83a464a_303       local      
2026-04-17T15:15:03.6570280Z     libunistring:         0.9.10-h7f98852_0                    conda-forge
2026-04-17T15:15:03.6570460Z     libuuid:              2.42-h5347b49_0                      conda-forge
2026-04-17T15:15:03.6570632Z     libuv:                1.51.0-hb03c661_1                    conda-forge
2026-04-17T15:15:03.6570805Z     libxml2:              2.15.3-h49c6c72_0                    conda-forge
2026-04-17T15:15:03.6570978Z     libxml2-16:           2.15.3-hca6bf5a_0                    conda-forge
2026-04-17T15:15:03.6571156Z     libzlib:              1.3.2-h25fd6f3_2                     conda-forge
2026-04-17T15:15:03.6571338Z     llvm-openmp:          22.1.3-h4922eb0_0                    conda-forge
2026-04-17T15:15:03.6571516Z     lz4-c:                1.10.0-h5888daf_1                    conda-forge
2026-04-17T15:15:03.6571697Z     lzo:                  2.10-h280c20c_1002                   conda-forge
2026-04-17T15:15:03.6571891Z     markupsafe:           3.0.3-py313h3dea7bd_1                conda-forge
2026-04-17T15:15:03.6572076Z     miopen-hip:           7.2.1-hb0697c1_1                     local      
2026-04-17T15:15:03.6572254Z     mkl:                  2025.3.1-h0e700b2_10                 conda-forge
2026-04-17T15:15:03.6572421Z     mpc:                  1.4.0-he0a73b1_0                     conda-forge
2026-04-17T15:15:03.6572586Z     mpfr:                 4.2.2-he0a73b1_0                     conda-forge
2026-04-17T15:15:03.6572759Z     mpmath:               1.3.0-pyhd8ed1ab_1                   conda-forge
2026-04-17T15:15:03.6572941Z     msgpack-cxx:          7.0.0-h9fb26e6_0                     conda-forge
2026-04-17T15:15:03.6573124Z     ncurses:              6.5-h2d0b736_3                       conda-forge
2026-04-17T15:15:03.6573298Z     nettle:               3.10.1-h4a9d5aa_0                    conda-forge
2026-04-17T15:15:03.6573472Z     networkx:             3.6.1-pyhcf101f3_0                   conda-forge
2026-04-17T15:15:03.6573650Z     numpy:                2.4.3-py313hf6604e3_0                conda-forge
2026-04-17T15:15:03.6573824Z     openssl:              3.6.2-h35e630c_0                     conda-forge
2026-04-17T15:15:03.6573997Z     optree:               0.19.0-py313h7037e92_0               conda-forge
2026-04-17T15:15:03.6574184Z     p11-kit:              0.26.2-h3435931_0                    conda-forge
2026-04-17T15:15:03.6574356Z     pip:                  26.0.1-pyh145f28c_0                  conda-forge
2026-04-17T15:15:03.6574534Z     pybind11:             3.0.1-pyh7a1b43c_0                   conda-forge
2026-04-17T15:15:03.6574720Z     pybind11-abi:         11-hc364b38_1                        conda-forge
2026-04-17T15:15:03.6574915Z     pybind11-global:      3.0.1-pyhc7ab6ef_0                   conda-forge
2026-04-17T15:15:03.6575100Z     python:               3.13.13-h6add32d_100_cp313           conda-forge
2026-04-17T15:15:03.6575281Z     python_abi:           3.13-8_cp313                         conda-forge
2026-04-17T15:15:03.6575464Z     pytorch:              2.10.0-rocm72_mkl_py313_h063dd0a_303 local      
2026-04-17T15:15:03.6575653Z     pytorch-gpu:          2.10.0-rocm72_mkl_h3780895_303       local      
2026-04-17T15:15:03.6575830Z     rccl:                 7.2.1-hbdecb88_0                     local      
2026-04-17T15:15:03.6576004Z     readline:             8.3-h853b02a_0                       conda-forge
2026-04-17T15:15:03.6576179Z     rocblas:              7.2.1-h31ffd07_1                     local      
2026-04-17T15:15:03.6576366Z     rocfft:               7.2.1-h856b544_0                     local      
2026-04-17T15:15:03.6576542Z     rocm-comgr:           7.2.1-h23c7a43_0                     local      
2026-04-17T15:15:03.6576724Z     rocm-core:            7.2.1-hb72ac8c_0                     local      
2026-04-17T15:15:04.6232651Z     rocm-smi:             7.2.1-h3a53fc1_0                     local      
2026-04-17T15:15:04.6233300Z     rocr-runtime:         7.2.1-h5b8f024_0                     local      
2026-04-17T15:15:04.6233865Z     rocrand:              7.2.1-hbdecb88_0                     local      
2026-04-17T15:15:04.6234392Z     rocsolver:            7.2.1-hbdecb88_0                     local      
2026-04-17T15:15:04.6234920Z     rocsparse:            7.2.1-hbdecb88_0                     local      
2026-04-17T15:15:04.6235451Z     rocthrust:            7.2.1-hbdecb88_0                     local      
2026-04-17T15:15:04.6235970Z     roctracer:            7.2.1-hbdecb88_0                     local      
2026-04-17T15:15:04.6236525Z     setuptools:           82.0.1-pyh332efcf_0                  conda-forge
2026-04-17T15:15:04.6237062Z     sleef:                3.9.0-ha0421bc_0                     conda-forge
2026-04-17T15:15:04.6237563Z     sqlite:               3.53.0-h04a0ce9_0                    conda-forge
2026-04-17T15:15:04.6238383Z     sympy:                1.14.0-pyh2585a3b_106                conda-forge
2026-04-17T15:15:04.6238890Z     tbb:                  2022.3.0-hb700be7_2                  conda-forge
2026-04-17T15:15:04.6239445Z     tk:                   8.6.13-noxft_h366c992_103            conda-forge
2026-04-17T15:15:04.6239944Z     triton:               3.6.0-rocm72py313h78d1192_1          local      
2026-04-17T15:15:04.6240513Z     typing-extensions:    4.15.0-h396c80c_0                    conda-forge
2026-04-17T15:15:04.6240999Z     typing_extensions:    4.15.0-pyhcf101f3_0                  conda-forge
2026-04-17T15:15:04.6241189Z     tzdata:               2025c-hc9c84f9_1                     conda-forge
2026-04-17T15:15:04.6241370Z     yaml-cpp:             0.8.0-h3f2d84a_0                     conda-forge
2026-04-17T15:15:04.6241545Z     zstd:                 1.5.7-hb78ec9c_6                     conda-forge
2026-04-17T15:15:04.6241657Z 
2026-04-17T15:15:04.9609445Z Preparing transaction: ...working... done
2026-04-17T15:15:07.5943107Z Verifying transaction: ...working... done
2026-04-17T15:15:12.3249937Z Executing transaction: ...working... done
2026-04-17T15:15:13.0110420Z Traceback (most recent call last):
2026-04-17T15:15:13.0111560Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776434406469/test_tmp/run_test.py", line 2, in <module>
2026-04-17T15:15:13.0112408Z     import torch
2026-04-17T15:15:13.0114029Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776434406469/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/python3.13/site-packages/torch/__init__.py", line 431, in <module>
2026-04-17T15:15:13.0116133Z     from torch._C import *  # noqa: F403
2026-04-17T15:15:13.0116498Z     ^^^^^^^^^^^^^^^^^^^^^^
2026-04-17T15:15:13.0118874Z ImportError: /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776434406469/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/python3.13/site-packages/torch/../../.././libtorch_hip.so: undefined symbol: magma_queue_create_from_hip_internal
2026-04-17T15:15:14.4172338Z WARNING: Tests failed for pytorch-gpu-2.10.0-rocm72_mkl_h3780895_303.conda - moving package to /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/broken
2026-04-17T15:15:14.4708794Z Traceback (most recent call last):
2026-04-17T15:15:14.4710166Z export PREFIX=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776434406469/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p
2026-04-17T15:15:14.4712615Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/lib/python3.12/site-packages/conda_build/build.py", line 3497, in test
2026-04-17T15:15:14.4713423Z     utils.check_call_env(
2026-04-17T15:15:14.4714219Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/lib/python3.12/site-packages/conda_build/utils.py", line 411, in check_call_env
2026-04-17T15:15:14.4715149Z     return _func_defaulting_env_to_os_environ("call", *popenargs, **kwargs)
2026-04-17T15:15:14.4715629Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-04-17T15:15:14.4716558Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/lib/python3.12/site-packages/conda_build/utils.py", line 387, in _func_defaulting_env_to_os_environ
2026-04-17T15:15:14.4717546Z     raise subprocess.CalledProcessError(proc.returncode, _args)
2026-04-17T15:15:14.4718783Z subprocess.CalledProcessError: Command '['/bin/bash', '-o', 'errexit', '/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776434406469/test_tmp/conda_test_runner.sh']' returned non-zero exit status 1.
2026-04-17T15:15:14.4719736Z 
2026-04-17T15:15:14.4720046Z During handling of the above exception, another exception occurred:
2026-04-17T15:15:14.4720366Z 
2026-04-17T15:15:14.4720553Z Traceback (most recent call last):
2026-04-17T15:15:14.4721197Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/bin/conda-build", line 11, in <module>
2026-04-17T15:15:14.4721830Z     sys.exit(execute())
2026-04-17T15:15:14.4722085Z              ^^^^^^^^^
2026-04-17T15:15:14.4722718Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/lib/python3.12/site-packages/conda_build/cli/main_build.py", line 622, in execute
2026-04-17T15:15:14.4723174Z     api.build(
2026-04-17T15:15:14.4723565Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/lib/python3.12/site-packages/conda_build/api.py", line 211, in build
2026-04-17T15:15:14.4724154Z export SRC_DIR=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776434406469/test_tmp
2026-04-17T15:15:14.4724576Z INFO: deactivate-gxx_linux-64.sh made the following environmental changes:
2026-04-17T15:15:14.4725384Z -CXXFLAGS=-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/include
2026-04-17T15:15:14.4726332Z -CXX_FOR_BUILD=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/bin/x86_64-conda-linux-gnu-c++
2026-04-17T15:15:14.4726864Z -CXX=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/bin/x86_64-conda-linux-gnu-c++
2026-04-17T15:15:14.4727850Z -DEBUG_CXXFLAGS=-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe -isystem /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/include
2026-04-17T15:15:14.4728896Z -GXX=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/bin/x86_64-conda-linux-gnu-g++
2026-04-17T15:15:14.4729311Z INFO: deactivate-gcc_linux-64.sh made the following environmental changes:
2026-04-17T15:15:14.4729566Z -build_alias=x86_64-conda-linux-gnu
2026-04-17T15:15:14.4729745Z -BUILD=x86_64-conda-linux-gnu

@traversaro

Copy link
Copy Markdown
Collaborator Author

This failure is probably due to the missing correct run dependeing on the magma rocm variant.

@traversaro

Copy link
Copy Markdown
Collaborator Author

Ok, a bit of recap. After fixing the dependency on the magma variant of libmagma, the loading of the library failed with the error:

2026-04-17T23:01:28.1257102Z Traceback (most recent call last):
2026-04-17T23:01:28.1258705Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776463202597/test_tmp/run_test.py", line 2, in <module>
2026-04-17T23:01:28.1259647Z     import torch
2026-04-17T23:01:28.1261683Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776463202597/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/python3.13/site-packages/torch/__init__.py", line 431, in <module>
2026-04-17T23:01:28.1263436Z     from torch._C import *  # noqa: F403
2026-04-17T23:01:28.1263798Z     ^^^^^^^^^^^^^^^^^^^^^^
2026-04-17T23:01:28.1265761Z ImportError: /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776463202597/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/python3.13/site-packages/torch/../../.././libtorch_hip.so: undefined symbol: _ZNK2at10TensorBase14const_data_ptrIhLi0EEEPKT_v

This seems the upstream error tracked in pytorch/pytorch#173707 . In a nutshell, it seems that llvm as C/C++ compiler does something unexpected w.r.t. to symbol visibility, that results in that error. Looking at other distros, it seesm that even if LLVM is used as hip compiler, gcc/g++ is still used as C/C++ compiler, so I guess we can do the same, and I tried to do this in 1bb0c9a .

However, for some reason switching to GCC/G++ as C/C++ compiler results in the following error:

2026-04-17T23:27:35.7063026Z [3573/7304] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/__/torch/nativert/executor/Executor.cpp.o
2026-04-17T23:27:35.7063660Z [3574/7304] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/__/torch/nativert/executor/SerialGraphExecutor.cpp.o
2026-04-17T23:27:35.7064360Z [3575/7304] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/__/torch/nativert/executor/triton/CpuTritonKernelManager.cpp.o
2026-04-17T23:27:35.7065083Z [3576/7304] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/__/torch/nativert/kernels/KernelHandlerRegistry.cpp.o
2026-04-17T23:27:35.7065722Z FAILED: [code=1] caffe2/CMakeFiles/torch_cpu.dir/__/torch/nativert/kernels/KernelHandlerRegistry.cpp.o 
2026-04-17T23:27:35.7102299Z /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/bin/ccache $BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++ -DAT_PER_OPERATOR_HEADERS -DBUILD_ONEDNN_GRAPH -DCAFFE2_BUILD_MAIN_LIB -DCPUINFO_SUPPORTED_PLATFORM=1 -DENABLE_IPC_FABRIC -DFBGEMM_STATIC -DFMT_HEADER_ONLY=1 -DFXDIV_USE_INLINE_ASSEMBLY=0 -DHAS_ROCTRACER -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_POSIX_FALLOCATE=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DKINETO_NAMESPACE=libkineto -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DNNP_CONVOLUTION_ONLY=0 -DNNP_INFERENCE_ONLY=0 -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DPROTOBUF_USE_DLLS -DROCM_VERSION=70201 -DTORCH_HIP_VERSION=702 -DUSE_C10D_GLOO -DUSE_DISTRIBUTED -DUSE_EXTERNAL_MZCRC -DUSE_LAYERNORM_FAST_RECIPROCAL -DUSE_ROCM -DUSE_RPC -DUSE_TENSORPIPE -DXNN_LOG_LEVEL=0 -D_FILE_OFFSET_BITS=64 -D__HIP_PLATFORM_AMD__ -Dtorch_cpu_EXPORTS -I$SRC_DIR/build/aten/src -I$SRC_DIR/aten/src -I$SRC_DIR/build -I$SRC_DIR -I$SRC_DIR/nlohmann -I$SRC_DIR/moodycamel -I$SRC_DIR/torch/csrc/api -I$SRC_DIR/torch/csrc/api/include -I$SRC_DIR/caffe2/aten/src/TH -I$SRC_DIR/build/caffe2/aten/src/TH -I$SRC_DIR/build/caffe2/aten/src -I$SRC_DIR/build/caffe2/../aten/src -I$SRC_DIR/torch/csrc -I$SRC_DIR/torch/headeronly -I$SRC_DIR/third_party/miniz-3.0.2 -I$SRC_DIR/third_party/kineto/libkineto/include -I$SRC_DIR/third_party/kineto/libkineto/src -I$SRC_DIR/third_party/cpp-httplib -I$SRC_DIR/aten/src/ATen/.. -I$SRC_DIR/third_party/FXdiv/include -I$SRC_DIR/c10/.. -I$SRC_DIR/third_party/pthreadpool/include -I$SRC_DIR/third_party/cpuinfo/include -I$SRC_DIR/aten/src/ATen/native/quantized/cpu/qnnpack/include -I$SRC_DIR/aten/src/ATen/native/quantized/cpu/qnnpack/src -I$SRC_DIR/aten/src/ATen/native/quantized/cpu/qnnpack/deps/clog/include -I$SRC_DIR/third_party/NNPACK/include -I$SRC_DIR/third_party/fbgemm -I$SRC_DIR/third_party/fbgemm/include -I$SRC_DIR/third_party/fbgemm/bench -I$SRC_DIR/third_party/fbgemm/external/asmjit/src -I$SRC_DIR/third_party/FP16/include -I$SRC_DIR/third_party/tensorpipe -I$SRC_DIR/build/third_party/tensorpipe -I$SRC_DIR/third_party/tensorpipe/third_party/libnop/include -I$SRC_DIR/build/third_party/ideep/mkl-dnn/include -I$SRC_DIR/third_party/ideep/mkl-dnn/src/../include -I$SRC_DIR/third_party/onnx -I$SRC_DIR/build/third_party/onnx -I$SRC_DIR/third_party/flatbuffers/include -isystem $SRC_DIR/build/third_party/gloo -isystem $SRC_DIR/cmake/../third_party/gloo -isystem $SRC_DIR/cmake/../third_party/tensorpipe/third_party/libuv/include -isystem $SRC_DIR/third_party/XNNPACK/include -isystem $SRC_DIR/cmake/../third_party/eigen -isystem $SRC_DIR/third_party/ideep/mkl-dnn/include/oneapi/dnnl -isystem $SRC_DIR/third_party/ideep/include -isystem $SRC_DIR/INTERFACE -isystem $SRC_DIR/third_party/nlohmann/include -isystem $SRC_DIR/third_party/concurrentqueue -isystem $SRC_DIR/caffe2 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/libtorch-2.10.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix  -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/include -w -Wno-deprecated-declarations -Wno-error=maybe-uninitialized -isystem $PREFIX/include/roctracer -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DLIBKINETO_NOXPUPTI=ON -DUSE_FBGEMM -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -DC10_NODEPRECATED -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=range-loop-construct -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-unknown-pragmas -Wno-unused-parameter -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=old-style-cast -faligned-new -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-dangling-reference -Wno-error=dangling-reference -Wno-stringop-overflow -DHAVE_AVX512_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION -O3 -DNDEBUG -DNDEBUG -fPIC -fdiagnostics-color=always -DTORCH_USE_LIBUV -DCAFFE2_USE_GLOO -Wall -Wextra -Wdeprecated -Wunused -Wno-unused-parameter -Wno-missing-field-initializers -Wno-array-bounds -Wno-unknown-pragmas -Wno-strict-overflow -Wno-strict-aliasing -Wredundant-move -Wno-interference-size -Wno-maybe-uninitialized -fvisibility=hidden -pthread -DASMJIT_STATIC -fopenmp -MD -MT caffe2/CMakeFiles/torch_cpu.dir/__/torch/nativert/kernels/KernelHandlerRegistry.cpp.o -MF caffe2/CMakeFiles/torch_cpu.dir/__/torch/nativert/kernels/KernelHandlerRegistry.cpp.o.d -o caffe2/CMakeFiles/torch_cpu.dir/__/torch/nativert/kernels/KernelHandlerRegistry.cpp.o -c $SRC_DIR/torch/nativert/kernels/KernelHandlerRegistry.cpp
2026-04-17T23:27:41.4037990Z In file included from $SRC_DIR/aten/src/ATen/hip/impl/HIPStreamMasqueradingAsCUDA.h:3,
2026-04-17T23:27:41.4038664Z                  from $SRC_DIR/torch/csrc/inductor/aoti_runner/model_container_runner_cuda.h:4,
2026-04-17T23:27:41.4039122Z                  from $SRC_DIR/torch/nativert/executor/AOTInductorDelegateExecutor.h:9,
2026-04-17T23:27:41.4039549Z                  from $SRC_DIR/torch/nativert/kernels/KernelHandlerRegistry.cpp:16:
2026-04-17T23:27:41.4040018Z $SRC_DIR/c10/hip/HIPStream.h:4:10: fatal error: hip/hip_runtime_api.h: No such file or directory
2026-04-17T23:27:41.4040412Z     4 | #include <hip/hip_runtime_api.h>
2026-04-17T23:27:41.4040626Z       |          ^~~~~~~~~~~~~~~~~~~~~~~
2026-04-17T23:27:41.4040837Z compilation terminated.

@traversaro

Copy link
Copy Markdown
Collaborator Author

First actual tests running, the output is:

2026-04-20T17:13:21.6828734Z LD_LIBRARY_PATH= None
2026-04-20T17:13:21.6828995Z libamdhip64 candidates= ['$PREFIX/lib/libamdhip64.so.7', '$PREFIX/lib/libamdhip64.so.7.2.53211-8fa7a90', '$PREFIX/lib/libamdhip64.so']
2026-04-20T17:13:21.6829449Z torch HIP libs in package= ['$PREFIX/lib/python3.12/site-packages/torch/lib/libc10_hip.so', '$PREFIX/lib/python3.12/site-packages/torch/lib/libtorch_hip.so']
2026-04-20T17:13:21.6829783Z ============================= test session starts ==============================
2026-04-20T17:13:21.6829979Z platform linux -- Python 3.12.13, pytest-8.4.2, pluggy-1.6.0
2026-04-20T17:13:21.6830133Z rootdir: $SRC_DIR
2026-04-20T17:13:21.6830316Z plugins: flakefinder-1.1.0, timeout-2.4.0, rerunfailures-16.1, xdist-3.8.0, hypothesis-6.152.1
2026-04-20T17:13:21.6830522Z timeout: 1200.0s
2026-04-20T17:13:21.6830623Z timeout method: signal
2026-04-20T17:13:21.6830728Z timeout func_only: False
2026-04-20T17:13:21.6830834Z created: 2/2 workers
2026-04-20T17:13:21.6830937Z 2 workers [18120 items]
2026-04-20T17:13:21.6831009Z 
2026-04-20T17:13:21.6831102Z ...........................................s........sss................. [  0%]
2026-04-20T17:13:21.6831301Z ....................ssssss....ssss....s................ss............... [  0%]
2026-04-20T17:13:21.6831525Z ...ssssssssssssssss.......FFFFF.........................F............... [  1%]
2026-04-20T17:13:21.6831747Z FFs.......................................ssssssssssssssssssssssssssssss [  1%]
2026-04-20T17:13:21.6832005Z ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [  1%]
2026-04-20T17:13:21.6832308Z ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [  2%]
2026-04-20T17:13:21.6832613Z ssssssssssssssssssssssssssssssssssssssssss.ssssssssssssssss............. [  2%]
2026-04-20T17:13:21.6832845Z ........................................................................ [  3%]
2026-04-20T17:13:21.6833037Z ...........................................ssss......................... [  3%]
2026-04-20T17:13:21.6833211Z ........................................................................ [  3%]
2026-04-20T17:13:21.6833390Z .........s......s........................s..s........................... [  4%]
2026-04-20T17:13:21.6833592Z ..............ssss........sssssssss.......FFFFFFFF..........FFFFFFFFFFFF [  4%]
2026-04-20T17:13:21.6833848Z FFF.FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [  5%]
2026-04-20T17:13:21.6834146Z FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [  5%]
2026-04-20T17:13:21.6834446Z FFFssFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [  5%]
2026-04-20T17:13:21.6834746Z FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [  6%]
2026-04-20T17:13:21.6835047Z FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [  6%]
2026-04-20T17:13:21.6835346Z FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [  7%]
2026-04-20T17:13:21.6835648Z FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [  7%]
2026-04-20T17:13:21.6835950Z FFFEEEEEFEEEEEEEEEEEEEEEEEEEEEEEEEFFEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [  7%]
2026-04-20T17:13:21.6836250Z EEEEEEEEEEEEEEEEEEEEEEFEEEEEEEEEEEEEEEEEEEEFEEEEEEEEEEEEEEEEEEEEEEEEEFEE [  8%]
2026-04-20T17:13:21.6836547Z EEEEEEEEEEEEEEEEEEFEEEEEEEEEEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [  8%]
2026-04-20T17:13:21.6836848Z FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [  9%]

and then a lot of failures and error. As noted by ChatGPT (see https://chatgpt.com/share/69e68fed-6278-8395-a132-f54368822d27) we should skip int4 tests as they are only supported in CDNA >= 2, and use 1 worker.

However, given ROCm/TheRock#2151 I think it is probably expected if the full pytorch test suite fails, so we could probably just skip the remaining failing tests and call it a day.

@traversaro

Copy link
Copy Markdown
Collaborator Author

Ok, modulo the test (that we will probably skip anyhow due to ROCm/TheRock#2151) this is close to be merged. @flferretti how do you prefer to proceed? In this branch warp and jax are disabled. Perhaps we can create a v7.0 branch with the current master (so if you want you can work on that) and then merge this as master, that will upload the 7.2 packages?

@traversaro

Copy link
Copy Markdown
Collaborator Author

Ok, the tests are probably hanging as the build is going since ~8 hours, we finally reached the behavior in ROCm/TheRock#2151 .

@traversaro

Copy link
Copy Markdown
Collaborator Author

Ok, the tests are probably hanging as the build is going since ~8 hours, we finally reached the behavior in ROCm/TheRock#2151 .

Exactly (notice the timestamps):

2026-04-20T21:49:39.5780036Z + python -c 'import torch; assert torch.version.hip is not None, f'\''torch.version.hip={torch.version.hip!r}'\'''
2026-04-20T21:49:40.3712543Z + test -f /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776718611067/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libtorch_python.so
2026-04-20T21:49:40.3714117Z + export OMP_NUM_THREADS=4
2026-04-20T21:49:40.3714461Z + OMP_NUM_THREADS=4
2026-04-20T21:49:40.3721383Z + pytest -n 1 test/test_autograd.py test/test_autograd_fallback.py test/test_custom_ops.py test/test_linalg.py test/test_mkldnn.py test/test_modules.py test/test_nn.py test/test_torch.py test/test_xnnpack_integration.py -k 'not ((TestTorch and test_print) or test_batchnorm_nhwc_cpu or test_layer_norm_backwards_eps or (TestAutograd and test_profiler_seq_nr) or (TestAutograd and test_profiler_propagation) or test_mutable_custom_op_fixed_layout or (TestAutograd and test_profiler_seq_nr) or (TestAutograd and test_profiler_propagation) or test_mutable_custom_op_fixed_layout or test_BCELoss_weights_no_reduce_cuda or test_ctc_loss_cudnn_tensor_cuda or (TestTorch and test_index_add_correctness) or test_sdpa_inference_mode_aot_compile or (TestNN and test_grid_sample) or test_cublas_config_nondeterministic_alert_cuda or test_cross_entropy_loss_2d_out_of_bounds_class or test_indirect_device_assert or test_reentrant_parent_error_on_cpu_cuda or (GPUTests and test_scatter_reduce2) or test_ck_blas_library_cpu or test_matmul_offline_tunableop_cuda_float16 or test_Conv3d_1x1x1_no_bias_cuda or test_isinf_cuda or test_donated_buffer_inplace_gpt or test_linear_dynamic_maxautotune_cuda or (test_gradgrad_nn_Transformer and _cuda_) or test_avg_pool3d_backward2 or test_gather_scatter_cpu or test_index_put2_cpu or test_base_does_not_require_grad_mode_nothing or test_base_does_not_require_grad_mode_warn or test_composite_registered_to_cpu_mode_nothing or (TestTorch and test_tensor_cycle_via_slots) or test_cpp_warnings_have_python_context_cpu or test_cpp_warnings_have_python_context_cuda or test_lite_regional_compile_flex_attention_cuda or test__int4_mm)' -m 'not hypothesis' --durations=50 --timeout=1200 --disable-warnings
2026-04-21T04:47:42.8054952Z ##[error]The operation was canceled.
2026-04-21T04:47:42.8085206Z ##[group]Run actions/cache/save@v4
2026-04-21T04:47:42.8085336Z with:
2026-04-21T04:47:42.8085432Z   path: output/linux-64

Removed step to delete outdated packages from cache.
@flferretti

Copy link
Copy Markdown
Collaborator

Ok, modulo the test (that we will probably skip anyhow due to ROCm/TheRock#2151) this is close to be merged. @flferretti how do you prefer to proceed? In this branch warp and jax are disabled. Perhaps we can create a v7.0 branch with the current master (so if you want you can work on that) and then merge this as master, that will upload the 7.2 packages?

Yes, we could keep the branches separated as clangdev does in conda-forge. Then I'll work on updating JAX and warp with rocm7.2

@traversaro

Copy link
Copy Markdown
Collaborator Author

The last failure is:

2026-04-21T07:27:58.3627741Z +CFLAGS=-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/pytorch-tests-2.10.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
2026-04-21T07:27:59.1717096Z + pip check
2026-04-21T07:27:59.3158991Z + python -c 'import torch; print(torch.__version__)'
2026-04-21T07:28:00.2206509Z + python -c 'import torch; assert torch.backends.mkldnn.m.is_available()'
2026-04-21T07:28:01.0951471Z + python -c 'import torch; torch.tensor(1).to('\''cpu'\'').numpy(); print('\''numpy support enabled!!!'\'')'
2026-04-21T07:28:01.9042601Z + python -c 'import torch; import numpy'
2026-04-21T07:28:02.7443955Z + python -c 'import numpy; import torch'
2026-04-21T07:28:03.6064708Z + python -c 'import numpy as np;import torch;x = torch.tensor([2], dtype=torch.complex128);res = torch.dot(x, x); assert res.real == 4.0, res'
2026-04-21T07:28:04.4877497Z + python -c 'import torch; assert torch.distributed.is_available()'
2026-04-21T07:28:05.3662018Z + python -c 'import torch; assert torch.version.hip is not None, f'\''torch.version.hip={torch.version.hip!r}'\'''
2026-04-21T07:28:06.2377759Z + test -f /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/libtorch_python.so
2026-04-21T07:28:06.2379567Z + export OMP_NUM_THREADS=4
2026-04-21T07:28:06.2379915Z + OMP_NUM_THREADS=4
2026-04-21T07:28:06.2380193Z + cd cmake_test
2026-04-21T07:28:06.2380462Z + mkdir build build2
2026-04-21T07:28:06.2394382Z + cd build
2026-04-21T07:28:06.2407151Z + cmake -GNinja -DCMAKE_CXX_STANDARD=17 -DWITH_TORCH_PYTHON=ON -DCMAKE_AR=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/x86_64-conda-linux-gnu-ar -DCMAKE_CXX_COMPILER_AR=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/x86_64-conda-linux-gnu-gcc-ar -DCMAKE_C_COMPILER_AR=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/x86_64-conda-linux-gnu-gcc-ar -DCMAKE_RANLIB=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/x86_64-conda-linux-gnu-ranlib -DCMAKE_CXX_COMPILER_RANLIB=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/x86_64-conda-linux-gnu-gcc-ranlib -DCMAKE_C_COMPILER_RANLIB=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/x86_64-conda-linux-gnu-gcc-ranlib -DCMAKE_LINKER=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/x86_64-conda-linux-gnu-ld -DCMAKE_STRIP=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/x86_64-conda-linux-gnu-strip -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY '-DCMAKE_FIND_ROOT_PATH=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p;/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_build_env/x86_64-conda-linux-gnu/sysroot' -DCMAKE_INSTALL_PREFIX=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p -DCMAKE_INSTALL_LIBDIR=lib '-DCMAKE_PROGRAM_PATH=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_build_env/bin;/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin' ..
2026-04-21T07:28:06.2473507Z CMake Warning (dev) at CMakeLists.txt:1 (project):
2026-04-21T07:28:06.2474153Z   cmake_minimum_required() should be called prior to this top-level project()
2026-04-21T07:28:06.2474841Z   call.  Please see the cmake-commands(7) manual for usage documentation of
2026-04-21T07:28:06.2475406Z   both commands.
2026-04-21T07:28:06.2475836Z This warning is for project developers.  Use -Wno-dev to suppress it.
2026-04-21T07:28:06.2476227Z 
2026-04-21T07:28:09.7217031Z Building PyTorch for GPU arch: gfx1151
2026-04-21T07:28:09.7220905Z CMake Warning at /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Caffe2/public/LoadHIP.cmake:67 (find_package):
2026-04-21T07:28:09.7222715Z   No "FindHIP.cmake" found in CMAKE_MODULE_PATH.
2026-04-21T07:28:09.7223134Z Call Stack (most recent call first):
2026-04-21T07:28:09.7224747Z   /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Caffe2/public/LoadHIP.cmake:90 (find_package_and_print_version)
2026-04-21T07:28:09.7226718Z   /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Caffe2/Caffe2Config.cmake:74 (include)
2026-04-21T07:28:09.7228049Z   /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Torch/TorchConfig.cmake:69 (find_package)
2026-04-21T07:28:09.7228899Z   CMakeLists.txt:4 (find_package)
2026-04-21T07:28:09.7229023Z 
2026-04-21T07:28:09.7229027Z 
2026-04-21T07:28:09.7229719Z CMake Warning (dev) at /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Caffe2/public/LoadHIP.cmake:67 (find_package):
2026-04-21T07:28:09.7230609Z   FindHIP.cmake must either be part of this project itself, in this case
2026-04-21T07:28:09.7230929Z   adjust CMAKE_MODULE_PATH so that it points to the correct location inside
2026-04-21T07:28:09.7231176Z   its source tree.
2026-04-21T07:28:09.7231261Z 
2026-04-21T07:28:09.7231384Z   Or it must be installed by a package which has already been found via
2026-04-21T07:28:09.7231685Z   find_package().  In this case make sure that package has indeed been found
2026-04-21T07:28:09.7232002Z   and adjust CMAKE_MODULE_PATH to contain the location where that package has
2026-04-21T07:28:09.7232333Z   installed FindHIP.cmake.  This must be a location provided by that package.
2026-04-21T07:28:09.7232661Z   This error in general means that the buildsystem of this project is relying
2026-04-21T07:28:09.7232975Z   on a Find-module without ensuring that it is actually available.
2026-04-21T07:28:09.7233152Z 
2026-04-21T07:28:09.7233217Z Call Stack (most recent call first):
2026-04-21T07:28:09.7234023Z   /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Caffe2/public/LoadHIP.cmake:90 (find_package_and_print_version)
2026-04-21T07:28:09.7235487Z   /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Caffe2/Caffe2Config.cmake:74 (include)
2026-04-21T07:28:09.7236804Z   /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Torch/TorchConfig.cmake:69 (find_package)
2026-04-21T07:28:09.7237612Z   CMakeLists.txt:4 (find_package)
2026-04-21T07:28:09.7237854Z This warning is for project developers.  Use -Wno-dev to suppress it.
2026-04-21T07:28:09.7238038Z 
2026-04-21T07:28:09.7238106Z Optional package HIP not found
2026-04-21T07:28:09.7336983Z CMake Warning at /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Torch/TorchConfig.cmake:22 (message):
2026-04-21T07:28:09.7338740Z   static library kineto_LIBRARY-NOTFOUND not found.
2026-04-21T07:28:09.7339127Z Call Stack (most recent call first):
2026-04-21T07:28:09.7341080Z   /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Torch/TorchConfig.cmake:126 (append_torchlib_if_found)
2026-04-21T07:28:09.7342582Z   CMakeLists.txt:4 (find_package)
2026-04-21T07:28:09.7342792Z 
2026-04-21T07:28:09.7342798Z 
2026-04-21T07:28:11.4917222Z CMake Error at /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Caffe2/Caffe2Targets.cmake:64 (set_target_properties):
2026-04-21T07:28:11.4919107Z   The link interface of target "c10_hip" contains:
2026-04-21T07:28:11.4919420Z 
2026-04-21T07:28:11.4919571Z     hip::amdhip64
2026-04-21T07:28:11.4919741Z 
2026-04-21T07:28:11.4919952Z   but the target was not found.  Possible reasons include:
2026-04-21T07:28:11.4920276Z 
2026-04-21T07:28:11.4920425Z     * There is a typo in the target name.
2026-04-21T07:28:11.4920870Z     * A find_package call is missing for an IMPORTED target.
2026-04-21T07:28:11.4921298Z     * An ALIAS target is missing.
2026-04-21T07:28:11.4921523Z 
2026-04-21T07:28:11.4921647Z Call Stack (most recent call first):
2026-04-21T07:28:11.4923189Z   /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Caffe2/Caffe2Config.cmake:121 (include)
2026-04-21T07:28:11.4925658Z   /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Torch/TorchConfig.cmake:69 (find_package)
2026-04-21T07:28:11.4926455Z   CMakeLists.txt:4 (find_package)
2026-04-21T07:28:11.4926572Z 
2026-04-21T07:28:11.4926575Z 
2026-04-21T07:28:11.4927288Z CMake Error at /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Caffe2/Caffe2Targets.cmake:110 (set_target_properties):
2026-04-21T07:28:11.4928306Z   The link interface of target "torch_hip_library" contains:
2026-04-21T07:28:11.4928470Z 
2026-04-21T07:28:11.4928525Z     hip::amdhip64
2026-04-21T07:28:11.4928611Z 
2026-04-21T07:28:11.4928711Z   but the target was not found.  Possible reasons include:
2026-04-21T07:28:11.4928865Z 
2026-04-21T07:28:11.4928933Z     * There is a typo in the target name.
2026-04-21T07:28:11.4929153Z     * A find_package call is missing for an IMPORTED target.
2026-04-21T07:28:11.4929359Z     * An ALIAS target is missing.
2026-04-21T07:28:11.4929528Z 
2026-04-21T07:28:11.4929593Z Call Stack (most recent call first):
2026-04-21T07:28:11.4930346Z   /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Caffe2/Caffe2Config.cmake:121 (include)
2026-04-21T07:28:11.4931679Z   /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/share/cmake/Torch/TorchConfig.cmake:69 (find_package)
2026-04-21T07:28:11.4932463Z   CMakeLists.txt:4 (find_package)
2026-04-21T07:28:11.4932578Z 
2026-04-21T07:28:11.4932580Z 
2026-04-21T07:28:11.4951429Z CMake Warning:
2026-04-21T07:28:11.4951865Z   Manually-specified variables were not used by the project:
2026-04-21T07:28:11.4952224Z 
2026-04-21T07:28:11.4952443Z     CMAKE_INSTALL_LIBDIR
2026-04-21T07:28:11.4952649Z 
2026-04-21T07:28:11.4952718Z 
2026-04-21T07:28:11.4952991Z CMake Generate step failed.  Build files cannot be regenerated correctly.
2026-04-21T07:28:12.0634771Z WARNING: Tests failed for pytorch-tests-2.10.0-rocm72_mkl_py313_h14aee45_303.conda - moving package to /home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/broken
2026-04-21T07:28:12.1264838Z Traceback (most recent call last):
2026-04-21T07:28:12.1269382Z +CMAKE_ARGS=-DCMAKE_AR=$PREFIX/bin/x86_64-conda-linux-gnu-ar -DCMAKE_CXX_COMPILER_AR=$PREFIX/bin/x86_64-conda-linux-gnu-gcc-ar -DCMAKE_C_COMPILER_AR=$PREFIX/bin/x86_64-conda-linux-gnu-gcc-ar -DCMAKE_RANLIB=$PREFIX/bin/x86_64-conda-linux-gnu-ranlib -DCMAKE_CXX_COMPILER_RANLIB=$PREFIX/bin/x86_64-conda-linux-gnu-gcc-ranlib -DCMAKE_C_COMPILER_RANLIB=$PREFIX/bin/x86_64-conda-linux-gnu-gcc-ranlib -DCMAKE_LINKER=$PREFIX/bin/x86_64-conda-linux-gnu-ld -DCMAKE_STRIP=$PREFIX/bin/x86_64-conda-linux-gnu-strip -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_FIND_ROOT_PATH=$PREFIX;/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_build_env/x86_64-conda-linux-gnu/sysroot -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_PROGRAM_PATH=/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/_build_env/bin;$PREFIX/bin
2026-04-21T07:28:12.1274182Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/lib/python3.12/site-packages/conda_build/build.py", line 3497, in test
2026-04-21T07:28:12.1274973Z     utils.check_call_env(
2026-04-21T07:28:12.1275746Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/lib/python3.12/site-packages/conda_build/utils.py", line 411, in check_call_env
2026-04-21T07:28:12.1276680Z     return _func_defaulting_env_to_os_environ("call", *popenargs, **kwargs)
2026-04-21T07:28:12.1277157Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-04-21T07:28:12.1278077Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/lib/python3.12/site-packages/conda_build/utils.py", line 387, in _func_defaulting_env_to_os_environ
2026-04-21T07:28:12.1279128Z     raise subprocess.CalledProcessError(proc.returncode, _args)
2026-04-21T07:28:12.1280431Z subprocess.CalledProcessError: Command '['/bin/bash', '-o', 'errexit', '/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/output/libtorch_1776754529163/test_tmp/conda_test_runner.sh']' returned non-zero exit status 1.
2026-04-21T07:28:12.1281389Z 
2026-04-21T07:28:12.1281605Z During handling of the above exception, another exception occurred:
2026-04-21T07:28:12.1281922Z 
2026-04-21T07:28:12.1282039Z Traceback (most recent call last):
2026-04-21T07:28:12.1282671Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/bin/conda-build", line 11, in <module>
2026-04-21T07:28:12.1283324Z     sys.exit(execute())
2026-04-21T07:28:12.1283551Z              ^^^^^^^^^
2026-04-21T07:28:12.1284238Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/lib/python3.12/site-packages/conda_build/cli/main_build.py", line 622, in execute
2026-04-21T07:28:12.1284990Z     api.build(
2026-04-21T07:28:12.1285588Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/lib/python3.12/site-packages/conda_build/api.py", line 211, in build
2026-04-21T07:28:12.1286265Z     return build_tree(
2026-04-21T07:28:12.1286466Z            ^^^^^^^^^^^
2026-04-21T07:28:12.1287083Z   File "/home/gene/actions-runner/_work/rock-the-conda/rock-the-conda/.pixi/envs/default/lib/python3.12/site-packages/conda_build/build.py", line 3684, in build_tree
2026-04-21T07:28:12.1287900Z +CMAKE_PREFIX_PATH=$PREFIX:$PREFIX/x86_64-conda-linux-gnu/sysroot/usr
2026-04-21T07:28:12.1288603Z +CONDA_BUILD_CROSS_COMPILATION=
2026-04-21T07:28:12.1289137Z +CONDA_BUILD_SYSROOT=$PREFIX/x86_64-conda-linux-gnu/sysroot
2026-04-21T07:28:12.1289399Z +CONDA_TOOLCHAIN_BUILD=x86_64-conda-linux-gnu
2026-04-21T07:28:12.1289610Z +CONDA_TOOLCHAIN_HOST=x86_64-conda-linux-gnu
2026-04-21T07:28:12.1289872Z +CPPFLAGS=-DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem $PREFIX/include
2026-04-21T07:28:12.1290157Z +CPP_FOR_BUILD=$PREFIX/bin/x86_64-conda-linux-gnu-cpp
2026-04-21T07:28:12.1290382Z +CPP=$PREFIX/bin/x86_64-conda-linux-gnu-cpp
2026-04-21T07:28:12.1291243Z +DEBUG_CFLAGS=-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/pytorch-tests-2.10.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
2026-04-21T07:28:12.1292133Z +DEBUG_CPPFLAGS=-D_DEBUG -D_FORTIFY_SOURCE=2 -Og -isystem $PREFIX/include
2026-04-21T07:28:12.1292415Z +GCC_AR=$PREFIX/bin/x86_64-conda-linux-gnu-gcc-ar
2026-04-21T07:28:12.1292630Z +GCC=$PREFIX/bin/x86_64-conda-linux-gnu-gcc
2026-04-21T07:28:12.1292843Z +GCC_NM=$PREFIX/bin/x86_64-conda-linux-gnu-gcc-nm
2026-04-21T07:28:12.1293079Z +GCC_RANLIB=$PREFIX/bin/x86_64-conda-linux-gnu-gcc-ranlib
2026-04-21T07:28:12.1293302Z +host_alias=x86_64-conda-linux-gnu
2026-04-21T07:28:12.1293482Z +HOST=x86_64-conda-linux-gnu
2026-04-21T07:28:12.1293960Z +LDFLAGS_LD=-O2 --sort-common --as-needed -z relro -z now --disable-new-dtags --gc-sections --allow-shlib-undefined -rpath $PREFIX/lib -rpath-link $PREFIX/lib -L$PREFIX/lib
2026-04-21T07:28:12.1294801Z +LDFLAGS=-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,$PREFIX/lib -Wl,-rpath-link,$PREFIX/lib -L$PREFIX/lib
2026-04-21T07:28:12.1295387Z +MESON_ARGS=-Dbuildtype=release --prefix=$PREFIX -Dlibdir=lib
2026-04-21T07:28:12.1295691Z INFO: activate-gxx_linux-64.sh made the following environmental changes:
2026-04-21T07:28:12.1296613Z +CXXFLAGS=-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/pytorch-tests-2.10.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
2026-04-21T07:28:12.1297467Z +CXX_FOR_BUILD=$PREFIX/bin/x86_64-conda-linux-gnu-c++
2026-04-21T07:28:12.1297687Z +CXX=$PREFIX/bin/x86_64-conda-linux-gnu-c++
2026-04-21T07:28:12.1298717Z +DEBUG_CXXFLAGS=-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/pytorch-tests-2.10.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
2026-04-21T07:28:12.1299655Z +GXX=$PREFIX/bin/x86_64-conda-linux-gnu-g++
2026-04-21T07:28:12.1299858Z import: 'torch'
2026-04-21T07:28:12.1299995Z import: 'torch._C'
2026-04-21T07:28:12.1300129Z import: 'torch'
2026-04-21T07:28:12.1300262Z import: 'torch._C'
2026-04-21T07:28:12.1300403Z No broken requirements found.
2026-04-21T07:28:12.1300559Z 2.10.0
2026-04-21T07:28:12.1300687Z numpy support enabled!!!
2026-04-21T07:28:12.1300875Z -- The C compiler identification is GNU 14.3.0
2026-04-21T07:28:12.1301086Z -- The CXX compiler identification is GNU 14.3.0
2026-04-21T07:28:12.1301308Z -- Detecting C compiler ABI info
2026-04-21T07:28:12.1301495Z -- Detecting C compiler ABI info - done
2026-04-21T07:28:12.1301763Z -- Check for working C compiler: $PREFIX/bin/x86_64-conda-linux-gnu-cc - skipped
2026-04-21T07:28:12.1302029Z -- Detecting C compile features
2026-04-21T07:28:12.1302210Z -- Detecting C compile features - done
2026-04-21T07:28:12.1302396Z -- Detecting CXX compiler ABI info
2026-04-21T07:28:12.1302580Z -- Detecting CXX compiler ABI info - done
2026-04-21T07:28:12.1302853Z -- Check for working CXX compiler: $PREFIX/bin/x86_64-conda-linux-gnu-c++ - skipped
2026-04-21T07:28:12.1303171Z -- Detecting CXX compile features
2026-04-21T07:28:12.1303353Z -- Detecting CXX compile features - done
2026-04-21T07:28:12.1303584Z -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) 

what I missed in the first patch is that the LoadHIP.cmake file patched in https://github.com/gbionics/pytorch-cpu-feedstock/blob/rocm/recipe/patches/0017-Fix-FindHIP-for-conda-cross-compilation-toolchains.patch is also installed. So we need to modify the patch (or the cmake test invocation) to set correctly the HIP variables.

@traversaro

Copy link
Copy Markdown
Collaborator Author

Ok, modulo the test (that we will probably skip anyhow due to ROCm/TheRock#2151) this is close to be merged. @flferretti how do you prefer to proceed? In this branch warp and jax are disabled. Perhaps we can create a v7.0 branch with the current master (so if you want you can work on that) and then merge this as master, that will upload the 7.2 packages?

Yes, we could keep the branches separated as clangdev does in conda-forge. Then I'll work on updating JAX and warp with rocm7.2

Ok, let me know when we can create v7.0 out of main, do you want to merge #47 ?

@flferretti

Copy link
Copy Markdown
Collaborator

Ok, modulo the test (that we will probably skip anyhow due to ROCm/TheRock#2151) this is close to be merged. @flferretti how do you prefer to proceed? In this branch warp and jax are disabled. Perhaps we can create a v7.0 branch with the current master (so if you want you can work on that) and then merge this as master, that will upload the 7.2 packages?

Yes, we could keep the branches separated as clangdev does in conda-forge. Then I'll work on updating JAX and warp with rocm7.2

Ok, let me know when we can create v7.0 out of main, do you want to merge #47 ?

Merged. Thank you

@traversaro

Copy link
Copy Markdown
Collaborator Author

Merged. Thank you

Done: https://github.com/gbionics/rock-the-conda/tree/v7.0 .

@traversaro

Copy link
Copy Markdown
Collaborator Author

This is finally green!

Removed outdated activation file cleanup step from workflow.
@traversaro

Copy link
Copy Markdown
Collaborator Author

The packages have been uploaded, let's merge!

@traversaro traversaro merged commit d23b0a8 into main Apr 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants