x64 vs cmd prompt admin mode
First follow the https://github.com/ROCm/TheRock/tree/main?tab=readme-ov-file#setup---windows-11-vs-2022
git clone https://github.com/ROCm/TheRock.git
cd TheRock
# Init python virtual environment and install python dependencies
python -m venv .venv
.venv\Scripts\Activate.bat
pip install --upgrade pip
pip install -r requirements.txt
# Download submodules and apply patches
# Note that dvc is used for pulling large files
python ./build_tools/fetch_sources.py
Details:
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.14.18
** Copyright (c) 2025 Microsoft Corporation
**********************************************************************
C:\Program Files\Microsoft Visual Studio\2022\Community>cd C:\
C:\>git clone https://github.com/ROCm/TheRock.git
Cloning into 'TheRock'...
remote: Enumerating objects: 16430, done.
remote: Counting objects: 100% (1247/1247), done.
remote: Compressing objects: 100% (630/630), done.
remote: Total 16430 (delta 1002), reused 661 (delta 610), pack-reused 15183 (from 4)
Receiving objects: 100% (16430/16430), 6.28 MiB | 24.62 MiB/s, done.
Resolving deltas: 100% (10322/10322), done.
C:\>cd TheRock
C:\TheRock>
C:\TheRock># Init python virtual environment and install python dependencies
'#' is not recognized as an internal or external command,
operable program or batch file.
C:\TheRock>python -m venv .venv
C:\TheRock>.venv\Scripts\Activate.bat
(.venv) C:\TheRock>pip install --upgrade pip
Requirement already satisfied: pip in c:\therock\.venv\lib\site-packages (25.0.1)
Collecting pip
Using cached pip-25.2-py3-none-any.whl.metadata (4.7 kB)
Using cached pip-25.2-py3-none-any.whl (1.8 MB)
[notice] A new release of pip is available: 25.0.1 -> 25.2
[notice] To update, run: python.exe -m pip install --upgrade pip
ERROR: To modify pip, please run the following command:
C:\TheRock\.venv\Scripts\python.exe -m pip install --upgrade pip
(.venv) C:\TheRock>pip install -r requirements.txt
Ignoring python-magic: markers 'platform_system != "Windows"' don't match your environment
Ignoring tomli: markers 'python_version <= "3.10"' don't match your environment
Collecting CppHeaderParser>=2.7.4 (from -r requirements.txt (line 1))
Downloading CppHeaderParser-2.7.4.tar.gz (54 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting build>=1.2.2 (from -r requirements.txt (line 2))
Using cached build-1.3.0-py3-none-any.whl.metadata (5.6 kB)
Collecting meson>=1.7.0 (from -r requirements.txt (line 3))
Downloading meson-1.9.1-py3-none-any.whl.metadata (1.8 kB)
Collecting PyYAML==6.0.2 (from -r requirements.txt (line 5))
Downloading PyYAML-6.0.2-cp312-cp312-win_amd64.whl.metadata (2.1 kB)
Collecting setuptools>=80.9.0 (from -r requirements.txt (line 6))
Using cached setuptools-80.9.0-py3-none-any.whl.metadata (6.6 kB)
Collecting pytest-cmake==0.13.0 (from -r requirements.txt (line 8))
Downloading pytest_cmake-0.13.0.tar.gz (7.5 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting joblib>=1.4.2 (from -r requirements.txt (line 11))
Downloading joblib-1.5.2-py3-none-any.whl.metadata (5.6 kB)
Collecting msgpack>=1.1.0 (from -r requirements.txt (line 12))
Downloading msgpack-1.1.2-cp312-cp312-win_amd64.whl.metadata (8.4 kB)
Collecting redshift_connector==2.1.8 (from -r requirements.txt (line 15))
Downloading redshift_connector-2.1.8-py3-none-any.whl.metadata (69 kB)
Collecting pytest<9,>=4 (from pytest-cmake==0.13.0->-r requirements.txt (line 8))
Using cached pytest-8.4.2-py3-none-any.whl.metadata (7.7 kB)
Collecting scramp<1.5.0,>=1.2.0 (from redshift_connector==2.1.8->-r requirements.txt (line 15))
Downloading scramp-1.4.6-py3-none-any.whl.metadata (19 kB)
Collecting pytz>=2020.1 (from redshift_connector==2.1.8->-r requirements.txt (line 15))
Downloading pytz-2025.2-py2.py3-none-any.whl.metadata (22 kB)
Collecting beautifulsoup4<5.0.0,>=4.7.0 (from redshift_connector==2.1.8->-r requirements.txt (line 15))
Downloading beautifulsoup4-4.14.2-py3-none-any.whl.metadata (3.8 kB)
Collecting boto3<2.0.0,>=1.9.201 (from redshift_connector==2.1.8->-r requirements.txt (line 15))
Downloading boto3-1.40.58-py3-none-any.whl.metadata (6.6 kB)
Collecting requests<3.0.0,>=2.23.0 (from redshift_connector==2.1.8->-r requirements.txt (line 15))
Using cached requests-2.32.5-py3-none-any.whl.metadata (4.9 kB)
Collecting lxml<6.0.0,>=4.6.5 (from redshift_connector==2.1.8->-r requirements.txt (line 15))
Downloading lxml-5.4.0-cp312-cp312-win_amd64.whl.metadata (3.6 kB)
Collecting botocore<2.0.0,>=1.12.201 (from redshift_connector==2.1.8->-r requirements.txt (line 15))
Downloading botocore-1.40.58-py3-none-any.whl.metadata (5.7 kB)
Collecting packaging (from redshift_connector==2.1.8->-r requirements.txt (line 15))
Using cached packaging-25.0-py3-none-any.whl.metadata (3.3 kB)
Collecting ply (from CppHeaderParser>=2.7.4->-r requirements.txt (line 1))
Downloading ply-3.11-py2.py3-none-any.whl.metadata (844 bytes)
Collecting pyproject_hooks (from build>=1.2.2->-r requirements.txt (line 2))
Using cached pyproject_hooks-1.2.0-py3-none-any.whl.metadata (1.3 kB)
Collecting colorama (from build>=1.2.2->-r requirements.txt (line 2))
Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting soupsieve>1.2 (from beautifulsoup4<5.0.0,>=4.7.0->redshift_connector==2.1.8->-r requirements.txt (line 15))
Downloading soupsieve-2.8-py3-none-any.whl.metadata (4.6 kB)
Collecting typing-extensions>=4.0.0 (from beautifulsoup4<5.0.0,>=4.7.0->redshift_connector==2.1.8->-r requirements.txt (line 15))
Using cached typing_extensions-4.15.0-py3-none-any.whl.metadata (3.3 kB)
Collecting jmespath<2.0.0,>=0.7.1 (from boto3<2.0.0,>=1.9.201->redshift_connector==2.1.8->-r requirements.txt (line 15))
Using cached jmespath-1.0.1-py3-none-any.whl.metadata (7.6 kB)
Collecting s3transfer<0.15.0,>=0.14.0 (from boto3<2.0.0,>=1.9.201->redshift_connector==2.1.8->-r requirements.txt (line 15))
Using cached s3transfer-0.14.0-py3-none-any.whl.metadata (1.7 kB)
Collecting python-dateutil<3.0.0,>=2.1 (from botocore<2.0.0,>=1.12.201->redshift_connector==2.1.8->-r requirements.txt (line 15))
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting urllib3!=2.2.0,<3,>=1.25.4 (from botocore<2.0.0,>=1.12.201->redshift_connector==2.1.8->-r requirements.txt (line 15))
Using cached urllib3-2.5.0-py3-none-any.whl.metadata (6.5 kB)
Collecting iniconfig>=1 (from pytest<9,>=4->pytest-cmake==0.13.0->-r requirements.txt (line 8))
Using cached iniconfig-2.3.0-py3-none-any.whl.metadata (2.5 kB)
Collecting pluggy<2,>=1.5 (from pytest<9,>=4->pytest-cmake==0.13.0->-r requirements.txt (line 8))
Using cached pluggy-1.6.0-py3-none-any.whl.metadata (4.8 kB)
Collecting pygments>=2.7.2 (from pytest<9,>=4->pytest-cmake==0.13.0->-r requirements.txt (line 8))
Using cached pygments-2.19.2-py3-none-any.whl.metadata (2.5 kB)
Collecting charset_normalizer<4,>=2 (from requests<3.0.0,>=2.23.0->redshift_connector==2.1.8->-r requirements.txt (line 15))
Using cached charset_normalizer-3.4.4-cp312-cp312-win_amd64.whl.metadata (38 kB)
Collecting idna<4,>=2.5 (from requests<3.0.0,>=2.23.0->redshift_connector==2.1.8->-r requirements.txt (line 15))
Using cached idna-3.11-py3-none-any.whl.metadata (8.4 kB)
Collecting certifi>=2017.4.17 (from requests<3.0.0,>=2.23.0->redshift_connector==2.1.8->-r requirements.txt (line 15))
Using cached certifi-2025.10.5-py3-none-any.whl.metadata (2.5 kB)
Collecting asn1crypto>=1.5.1 (from scramp<1.5.0,>=1.2.0->redshift_connector==2.1.8->-r requirements.txt (line 15))
Downloading asn1crypto-1.5.1-py2.py3-none-any.whl.metadata (13 kB)
Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->botocore<2.0.0,>=1.12.201->redshift_connector==2.1.8->-r requirements.txt (line 15))
Using cached six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Downloading PyYAML-6.0.2-cp312-cp312-win_amd64.whl (156 kB)
Downloading redshift_connector-2.1.8-py3-none-any.whl (139 kB)
Using cached build-1.3.0-py3-none-any.whl (23 kB)
Downloading meson-1.9.1-py3-none-any.whl (1.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 12.4 MB/s eta 0:00:00
Using cached setuptools-80.9.0-py3-none-any.whl (1.2 MB)
Downloading joblib-1.5.2-py3-none-any.whl (308 kB)
Downloading msgpack-1.1.2-cp312-cp312-win_amd64.whl (72 kB)
Downloading beautifulsoup4-4.14.2-py3-none-any.whl (106 kB)
Downloading boto3-1.40.58-py3-none-any.whl (139 kB)
Downloading botocore-1.40.58-py3-none-any.whl (14.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.1/14.1 MB 19.3 MB/s eta 0:00:00
Downloading lxml-5.4.0-cp312-cp312-win_amd64.whl (3.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 20.8 MB/s eta 0:00:00
Using cached packaging-25.0-py3-none-any.whl (66 kB)
Using cached pytest-8.4.2-py3-none-any.whl (365 kB)
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Downloading pytz-2025.2-py2.py3-none-any.whl (509 kB)
Using cached requests-2.32.5-py3-none-any.whl (64 kB)
Downloading scramp-1.4.6-py3-none-any.whl (12 kB)
Downloading ply-3.11-py2.py3-none-any.whl (49 kB)
Using cached pyproject_hooks-1.2.0-py3-none-any.whl (10 kB)
Downloading asn1crypto-1.5.1-py2.py3-none-any.whl (105 kB)
Using cached certifi-2025.10.5-py3-none-any.whl (163 kB)
Using cached charset_normalizer-3.4.4-cp312-cp312-win_amd64.whl (107 kB)
Using cached idna-3.11-py3-none-any.whl (71 kB)
Using cached iniconfig-2.3.0-py3-none-any.whl (7.5 kB)
Using cached jmespath-1.0.1-py3-none-any.whl (20 kB)
Using cached pluggy-1.6.0-py3-none-any.whl (20 kB)
Using cached pygments-2.19.2-py3-none-any.whl (1.2 MB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached s3transfer-0.14.0-py3-none-any.whl (85 kB)
Downloading soupsieve-2.8-py3-none-any.whl (36 kB)
Using cached typing_extensions-4.15.0-py3-none-any.whl (44 kB)
Using cached urllib3-2.5.0-py3-none-any.whl (129 kB)
Using cached six-1.17.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: pytest-cmake, CppHeaderParser
Building wheel for pytest-cmake (pyproject.toml) ... done
Created wheel for pytest-cmake: filename=pytest_cmake-0.13.0-py2.py3-none-any.whl size=9063 sha256=a6efe62eeecc1a5890eee0b198d92a60b951c6269502def2b88f46b05ae89342
Stored in directory: c:\users\chiliu12\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local\pip\cache\wheels\84\19\5d\319d1d9b8632fc34702517555736e81154ad9e90a4a7ec4a67
Building wheel for CppHeaderParser (pyproject.toml) ... done
Created wheel for CppHeaderParser: filename=cppheaderparser-2.7.4-py3-none-any.whl size=45065 sha256=a2605e21b2ba3517fd3e36a266a1192901b6b29e54ca46bdc0c5e78ef9fc3ac0
Stored in directory: c:\users\chiliu12\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local\pip\cache\wheels\d5\d6\6d\062b14ff9534e48ba0595e78c3356ad5077fbdad06504c13f7
Successfully built pytest-cmake CppHeaderParser
Installing collected packages: pytz, ply, asn1crypto, urllib3, typing-extensions, soupsieve, six, setuptools, scramp, PyYAML, pyproject_hooks, pygments, pluggy, packaging, msgpack, meson, lxml, joblib, jmespath, iniconfig, idna, CppHeaderParser, colorama, charset_normalizer, certifi, requests, python-dateutil, pytest, build, beautifulsoup4, pytest-cmake, botocore, s3transfer, boto3, redshift_connector
Successfully installed CppHeaderParser-2.7.4 PyYAML-6.0.2 asn1crypto-1.5.1 beautifulsoup4-4.14.2 boto3-1.40.58 botocore-1.40.58 build-1.3.0 certifi-2025.10.5 charset_normalizer-3.4.4 colorama-0.4.6 idna-3.11 iniconfig-2.3.0 jmespath-1.0.1 joblib-1.5.2 lxml-5.4.0 meson-1.9.1 msgpack-1.1.2 packaging-25.0 pluggy-1.6.0 ply-3.11 pygments-2.19.2 pyproject_hooks-1.2.0 pytest-8.4.2 pytest-cmake-0.13.0 python-dateutil-2.9.0.post0 pytz-2025.2 redshift_connector-2.1.8 requests-2.32.5 s3transfer-0.14.0 scramp-1.4.6 setuptools-80.9.0 six-1.17.0 soupsieve-2.8 typing-extensions-4.15.0 urllib3-2.5.0
[notice] A new release of pip is available: 25.0.1 -> 25.2
[notice] To update, run: python.exe -m pip install --upgrade pip
(.venv) C:\TheRock>
(.venv) C:\TheRock># Download submodules and apply patches
'#' is not recognized as an internal or external command,
operable program or batch file.
(.venv) C:\TheRock># Note that dvc is used for pulling large files
'#' is not recognized as an internal or external command,
operable program or batch file.
(.venv) C:\TheRock>python ./build_tools/fetch_sources.py
++ Exec [C:\TheRock]$ git submodule update --init -- base/amdsmi base/half comm-libs/rccl comm-libs/rccl-tests base/rocm-cmake profiler/rocprof-trace-decoder/binaries compiler/hipify compiler/amd-llvm compiler/spirv-llvm-translator rocm-libraries rocm-systems
Submodule 'amdsmi' (https://github.com/ROCm/amdsmi.git) registered for path 'base/amdsmi'
Submodule 'half' (https://github.com/ROCm/half.git) registered for path 'base/half'
Submodule 'rocm-cmake' (https://github.com/ROCm/rocm-cmake.git) registered for path 'base/rocm-cmake'
Submodule 'rccl' (https://github.com/ROCm/rccl.git) registered for path 'comm-libs/rccl'
Submodule 'rccl-tests' (https://github.com/ROCm/rccl-tests.git) registered for path 'comm-libs/rccl-tests'
Submodule 'llvm-project' (https://github.com/ROCm/llvm-project.git) registered for path 'compiler/amd-llvm'
Submodule 'HIPIFY' (https://github.com/ROCm/HIPIFY.git) registered for path 'compiler/hipify'
Submodule 'spirv-llvm-translator' (https://github.com/ROCm/SPIRV-LLVM-Translator.git) registered for path 'compiler/spirv-llvm-translator'
Submodule 'rocprof-trace-decoder' (https://github.com/ROCm/rocprof-trace-decoder.git) registered for path 'profiler/rocprof-trace-decoder/binaries'
Submodule 'rocm-libraries' (https://github.com/ROCm/rocm-libraries) registered for path 'rocm-libraries'
Submodule 'rocm-systems' (https://github.com/ROCm/rocm-systems.git) registered for path 'rocm-systems'
Cloning into 'C:/TheRock/base/amdsmi'...
Cloning into 'C:/TheRock/base/half'...
Cloning into 'C:/TheRock/base/rocm-cmake'...
Cloning into 'C:/TheRock/comm-libs/rccl'...
Cloning into 'C:/TheRock/comm-libs/rccl-tests'...
Cloning into 'C:/TheRock/compiler/amd-llvm'...
Cloning into 'C:/TheRock/compiler/hipify'...
Cloning into 'C:/TheRock/compiler/spirv-llvm-translator'...
Cloning into 'C:/TheRock/profiler/rocprof-trace-decoder/binaries'...
Cloning into 'C:/TheRock/rocm-libraries'...
Cloning into 'C:/TheRock/rocm-systems'...
Submodule path 'base/amdsmi': checked out '8758b8f75aca44b4aea60a647df0c3868242330d'
Submodule path 'base/half': checked out '207ee58595a64b5c4a70df221f1e6e704b807811'
Submodule path 'base/rocm-cmake': checked out '10155d7272ea1bf79f6b5a9dbc339657af1aa372'
Submodule path 'comm-libs/rccl': checked out 'd23d18f423d661556a5091f0dc9f27dec2adf67f'
Submodule path 'comm-libs/rccl-tests': checked out 'e1b8a3aefcdf6482f0f5a35224e19eed2acc685d'
Submodule path 'compiler/amd-llvm': checked out 'a7d47b26ca0ec0b3e9e4da83825cace5d761f4bc'
Submodule path 'compiler/hipify': checked out 'f5d07c5006d720dedf4a0560200a856c4c192898'
Submodule path 'compiler/spirv-llvm-translator': checked out '37f7ea5856785732839305e6a92af19ff2ea4958'
Submodule path 'profiler/rocprof-trace-decoder/binaries': checked out 'e2609d6e2ce1ab6fba6f7e095fc614ccd8b772ae'
error: unable to create file projects/composablekernel/library/src/tensor_operation_instance/gpu/gemm_universal_preshuffle/device_gemm_xdl_universal_preshuffle_f8_f8_bf16/device_gemm_xdl_universal_preshuffle_f8_f8_bf16_mk_mfma16x16_nk_mn_comp_default_instance_p1.cpp: Filename too long
error: unable to create file projects/composablekernel/library/src/tensor_operation_instance/gpu/gemm_universal_preshuffle/device_gemm_xdl_universal_preshuffle_f8_f8_bf16/device_gemm_xdl_universal_preshuffle_f8_f8_bf16_mk_mfma16x16_nk_mn_comp_default_instance_p2.cpp: Filename too long
error: unable to create file projects/composablekernel/library/src/tensor_operation_instance/gpu/gemm_universal_preshuffle/device_gemm_xdl_universal_preshuffle_f8_f8_bf16/device_gemm_xdl_universal_preshuffle_f8_f8_bf16_mk_mfma16x16_nk_mn_comp_default_instance_p3.cpp: Filename too long
error: unable to create file projects/composablekernel/library/src/tensor_operation_instance/gpu/gemm_universal_preshuffle/device_gemm_xdl_universal_preshuffle_f8_f8_bf16/device_gemm_xdl_universal_preshuffle_f8_f8_bf16_mk_mfma16x16_nk_mn_comp_default_instance_p4.cpp: Filename too long
error: unable to create file projects/composablekernel/library/src/tensor_operation_instance/gpu/gemm_universal_preshuffle/device_gemm_xdl_universal_preshuffle_f8_f8_bf16/device_gemm_xdl_universal_preshuffle_f8_f8_bf16_mk_mfma16x16_nk_mn_comp_default_instance_p5.cpp: Filename too long
error: unable to create file projects/composablekernel/library/src/tensor_operation_instance/gpu/gemm_universal_preshuffle/device_gemm_xdl_universal_preshuffle_f8_f8_bf16/device_gemm_xdl_universal_preshuffle_f8_f8_bf16_mk_mfma16x16_nk_mn_comp_default_instance_p6.cpp: Filename too long
error: unable to create file projects/composablekernel/library/src/tensor_operation_instance/gpu/gemm_universal_preshuffle/device_gemm_xdl_universal_preshuffle_f8_f8_f16/device_gemm_universal_preshuffle_xdl_f8_f8_f16_mk_mfma16x16_mn_compute_default_instance_p1.cpp: Filename too long
error: unable to create file projects/composablekernel/library/src/tensor_operation_instance/gpu/gemm_universal_preshuffle/device_gemm_xdl_universal_preshuffle_f8_f8_f16/device_gemm_universal_preshuffle_xdl_f8_f8_f16_mk_mfma16x16_mn_compute_default_instance_p2.cpp: Filename too long
error: unable to create file projects/composablekernel/library/src/tensor_operation_instance/gpu/gemm_universal_preshuffle/device_gemm_xdl_universal_preshuffle_f8_f8_f16/device_gemm_universal_preshuffle_xdl_f8_f8_f16_mk_mfma16x16_mn_compute_default_instance_p3.cpp: Filename too long
error: unable to create file projects/composablekernel/library/src/tensor_operation_instance/gpu/gemm_universal_preshuffle/device_gemm_xdl_universal_preshuffle_f8_f8_f16/device_gemm_universal_preshuffle_xdl_f8_f8_f16_mk_mfma16x16_mn_compute_default_instance_p4.cpp: Filename too long
error: unable to create file projects/composablekernel/library/src/tensor_operation_instance/gpu/gemm_universal_preshuffle/device_gemm_xdl_universal_preshuffle_f8_f8_f16/device_gemm_universal_preshuffle_xdl_f8_f8_f16_mk_mfma16x16_mn_compute_default_instance_p5.cpp: Filename too long
error: unable to create file projects/composablekernel/library/src/tensor_operation_instance/gpu/gemm_universal_preshuffle/device_gemm_xdl_universal_preshuffle_f8_f8_f16/device_gemm_universal_preshuffle_xdl_f8_f8_f16_mk_mfma16x16_mn_compute_default_instance_p6.cpp: Filename too long
fatal: Unable to checkout '0269b17f9b1feb6586ea64de132630dcb031ed30' in submodule path 'rocm-libraries'
Submodule path 'rocm-systems': checked out '473025ab7dc380572a961ab01afe28ddf1fdf4a5'
Traceback (most recent call last):
File "C:\TheRock\build_tools\fetch_sources.py", line 413, in <module>
main(sys.argv[1:])
File "C:\TheRock\build_tools\fetch_sources.py", line 409, in main
run(args)
File "C:\TheRock\build_tools\fetch_sources.py", line 65, in run
exec(
File "C:\TheRock\build_tools\fetch_sources.py", line 33, in exec
subprocess.check_call(args, cwd=str(cwd), stdin=subprocess.DEVNULL)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2800.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['git', 'submodule', 'update', '--init', '--', 'base/amdsmi', 'base/half', 'comm-libs/rccl', 'comm-libs/rccl-tests', 'base/rocm-cmake', 'profiler/rocprof-trace-decoder/binaries', 'compiler/hipify', 'compiler/amd-llvm', 'compiler/spirv-llvm-translator', 'rocm-libraries', 'rocm-systems']' returned non-zero exit status 1.
(.venv) C:\TheRock>cd .\external-builds\pytorch\
(.venv) C:\TheRock\external-builds\pytorch>
(.venv) C:\TheRock\external-builds\pytorch>pip install -r requirements-test.txt
Collecting pytest==8.3.5 (from -r requirements-test.txt (line 3))
Downloading pytest-8.3.5-py3-none-any.whl.metadata (7.6 kB)
Collecting pytest-xdist>=3.5.0 (from -r requirements-test.txt (line 4))
Downloading pytest_xdist-3.8.0-py3-none-any.whl.metadata (3.0 kB)
Collecting expecttest>=0.3.0 (from -r requirements-test.txt (line 5))
Using cached expecttest-0.3.0-py3-none-any.whl.metadata (3.8 kB)
Collecting hypothesis (from -r requirements-test.txt (line 6))
Downloading hypothesis-6.142.3-py3-none-any.whl.metadata (5.6 kB)
Collecting ninja (from -r requirements-test.txt (line 7))
Using cached ninja-1.13.0-py3-none-win_amd64.whl.metadata (5.1 kB)
Collecting numpy (from -r requirements-test.txt (line 8))
Using cached numpy-2.3.4-cp312-cp312-win_amd64.whl.metadata (60 kB)
Collecting psutil (from -r requirements-test.txt (line 9))
Using cached psutil-7.1.1-cp37-abi3-win_amd64.whl.metadata (23 kB)
Requirement already satisfied: colorama in c:\therock\.venv\lib\site-packages (from pytest==8.3.5->-r requirements-test.txt (line 3)) (0.4.6)
Requirement already satisfied: iniconfig in c:\therock\.venv\lib\site-packages (from pytest==8.3.5->-r requirements-test.txt (line 3)) (2.3.0)
Requirement already satisfied: packaging in c:\therock\.venv\lib\site-packages (from pytest==8.3.5->-r requirements-test.txt (line 3)) (25.0)
Requirement already satisfied: pluggy<2,>=1.5 in c:\therock\.venv\lib\site-packages (from pytest==8.3.5->-r requirements-test.txt (line 3)) (1.6.0)
Collecting execnet>=2.1 (from pytest-xdist>=3.5.0->-r requirements-test.txt (line 4))
Downloading execnet-2.1.1-py3-none-any.whl.metadata (2.9 kB)
Collecting attrs>=22.2.0 (from hypothesis->-r requirements-test.txt (line 6))
Using cached attrs-25.4.0-py3-none-any.whl.metadata (10 kB)
Collecting sortedcontainers<3.0.0,>=2.1.0 (from hypothesis->-r requirements-test.txt (line 6))
Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl.metadata (10 kB)
Downloading pytest-8.3.5-py3-none-any.whl (343 kB)
Downloading pytest_xdist-3.8.0-py3-none-any.whl (46 kB)
Using cached expecttest-0.3.0-py3-none-any.whl (8.2 kB)
Downloading hypothesis-6.142.3-py3-none-any.whl (533 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 533.5/533.5 kB 8.8 MB/s eta 0:00:00
Using cached ninja-1.13.0-py3-none-win_amd64.whl (309 kB)
Using cached numpy-2.3.4-cp312-cp312-win_amd64.whl (12.8 MB)
Using cached psutil-7.1.1-cp37-abi3-win_amd64.whl (246 kB)
Using cached attrs-25.4.0-py3-none-any.whl (67 kB)
Downloading execnet-2.1.1-py3-none-any.whl (40 kB)
Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Installing collected packages: sortedcontainers, pytest, psutil, numpy, ninja, expecttest, execnet, attrs, pytest-xdist, hypothesis
Attempting uninstall: pytest
Found existing installation: pytest 8.4.2
Uninstalling pytest-8.4.2:
Successfully uninstalled pytest-8.4.2
Successfully installed attrs-25.4.0 execnet-2.1.1 expecttest-0.3.0 hypothesis-6.142.3 ninja-1.13.0 numpy-2.3.4 psutil-7.1.1 pytest-8.3.5 pytest-xdist-3.8.0 sortedcontainers-2.4.0
[notice] A new release of pip is available: 25.0.1 -> 25.2
[notice] To update, run: python.exe -m pip install --upgrade pip
cd .\external-builds\pytorch\
pip install -r requirements-test.txt
pip list
dir C:\b # check this dir not exist, it will be create in the following instructions
python pytorch_torch_repo.py checkout --checkout-dir C:/b/pytorch
python pytorch_audio_repo.py checkout --checkout-dir C:/b/audio
python pytorch_vision_repo.py checkout --checkout-dir C:/b/vision
python build_prod_wheels.py build ^
--install-rocm --index-url https://rocm.nightlies.amd.com/v2/gfx1150/ ^
--pytorch-dir C:/b/pytorch ^
--pytorch-audio-dir C:/b/audio ^
--pytorch-vision-dir C:/b/vision ^
--output-dir C:/tmp/pyout ^
--clean
Uh oh!
There was an error while loading. Please reload this page.