You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@w7900:/DATA/tMIGraphX/torch_migraphx/py# export TORCH_CMAKE_PATH=$(python -c "import torch; print(torch.utils.cmake_prefix_path)")
root@w7900:/DATA/tMIGraphX/torch_migraphx/py#
root@w7900:/DATA/tMIGraphX/torch_migraphx/py# echo $TORCH_CMAKE_PATH
/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/share/cmake
root@w7900:/DATA/tMIGraphX/torch_migraphx/py# pip install .
Processing /DATA/tMIGraphX/torch_migraphx/py
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: torch>=1.11.0 in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch_migraphx==0.0.3) (2.3.0a0+gitae01701)
Requirement already satisfied: numpy>=1.20.0 in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch_migraphx==0.0.3) (1.20.3)
Collecting pybind11-global (from torch_migraphx==0.0.3)
Using cached pybind11_global-2.12.0-py3-none-any.whl.metadata (9.4 kB)
Requirement already satisfied: packaging in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch_migraphx==0.0.3) (24.0)
Collecting tabulate (from torch_migraphx==0.0.3)
Using cached tabulate-0.9.0-py3-none-any.whl.metadata (34 kB)
Requirement already satisfied: filelock in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch>=1.11.0->torch_migraphx==0.0.3) (3.13.1)
Requirement already satisfied: typing-extensions>=4.8.0 in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch>=1.11.0->torch_migraphx==0.0.3) (4.11.0)
Requirement already satisfied: sympy in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch>=1.11.0->torch_migraphx==0.0.3) (1.12)
Requirement already satisfied: networkx in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch>=1.11.0->torch_migraphx==0.0.3) (2.8.8)
Requirement already satisfied: jinja2 in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch>=1.11.0->torch_migraphx==0.0.3) (3.1.2)
Requirement already satisfied: fsspec in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch>=1.11.0->torch_migraphx==0.0.3) (2024.2.0)
Requirement already satisfied: MarkupSafe>=2.0 in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from jinja2->torch>=1.11.0->torch_migraphx==0.0.3) (2.1.5)
Requirement already satisfied: mpmath>=0.19 in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from sympy->torch>=1.11.0->torch_migraphx==0.0.3) (1.3.0)
Using cached pybind11_global-2.12.0-py3-none-any.whl (425 kB)
Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Building wheels for collected packages: torch_migraphx
Building wheel for torch_migraphx (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for torch_migraphx (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [198 lines of output]
/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/dist.py:476: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
********************************************************************************
Usage of dash-separated 'description-file' will not be supported in future
versions. Please use the underscore name 'description_file' instead.
By 2024-Sep-26, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
opt = self.warn_dash_deprecation(opt, section)
running bdist_wheel
running build
running build_py
copying torch_migraphx/__init__.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx
copying torch_migraphx/_C.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx
copying torch_migraphx/dynamo/__init__.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo
copying torch_migraphx/dynamo/backends.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo
copying torch_migraphx/dynamo/utils.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo
copying torch_migraphx/dynamo/lower_dynamo.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo
copying torch_migraphx/fx/__init__.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx
copying torch_migraphx/fx/fx2mgx.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx
copying torch_migraphx/fx/lower_setting.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx
copying torch_migraphx/fx/mgx_module.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx
copying torch_migraphx/fx/utils.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx
copying torch_migraphx/fx/converter_registry.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx
copying torch_migraphx/fx/observer.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx
copying torch_migraphx/fx/lower.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx
copying torch_migraphx/dynamo/quantization/migraphx_quantizer.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo/quantization
copying torch_migraphx/dynamo/quantization/__init__.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo/quantization
copying torch_migraphx/dynamo/quantization/migraphx_quantizer_utils.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo/quantization
copying torch_migraphx/dynamo/passes/const_fold.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo/passes
copying torch_migraphx/dynamo/passes/remove_ops.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo/passes
copying torch_migraphx/dynamo/passes/__init__.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo/passes
copying torch_migraphx/dynamo/passes/pass_manager.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo/passes
copying torch_migraphx/dynamo/passes/promote_types.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo/passes
copying torch_migraphx/dynamo/passes/partition.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo/passes
copying torch_migraphx/dynamo/passes/contiguous_outputs.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo/passes
copying torch_migraphx/dynamo/passes/remove_empty_slice.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo/passes
copying torch_migraphx/dynamo/passes/export/__init__.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo/passes/export
copying torch_migraphx/dynamo/passes/export/input_aliasing.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/dynamo/passes/export
copying torch_migraphx/fx/tools/mgx_onnx.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tools
copying torch_migraphx/fx/tools/mgx_benchmark.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tools
copying torch_migraphx/fx/tools/__init__.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tools
copying torch_migraphx/fx/tools/timing_cache_utils.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tools
copying torch_migraphx/fx/tools/mgx_minimizer.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tools
copying torch_migraphx/fx/tools/mgx_splitter.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tools
copying torch_migraphx/fx/converters/builtin_converters.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/converters
copying torch_migraphx/fx/converters/__init__.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/converters
copying torch_migraphx/fx/converters/aten_ops_converters.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/converters
copying torch_migraphx/fx/converters/module_converters.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/converters
copying torch_migraphx/fx/converters/quant_ops_converters.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/converters
copying torch_migraphx/fx/converters/acc_ops_converters.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/converters
copying torch_migraphx/fx/converters/utils.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/converters
copying torch_migraphx/fx/quantization/mgx_backend_config.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/quantization
copying torch_migraphx/fx/quantization/__init__.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/quantization
copying torch_migraphx/fx/quantization/mgx_qconfig.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/quantization
copying torch_migraphx/fx/passes/lower_basic_pass_aten.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/passes
copying torch_migraphx/fx/passes/__init__.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/passes
copying torch_migraphx/fx/passes/pass_utils.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/passes
copying torch_migraphx/fx/passes/remove_duplicate_output_args.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/passes
copying torch_migraphx/fx/passes/lower_pass_manager_builder.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/passes
copying torch_migraphx/fx/passes/lower_basic_pass.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/passes
copying torch_migraphx/fx/passes/graph_opts.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/passes
copying torch_migraphx/fx/tracer/__init__.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tracer
copying torch_migraphx/fx/tracer/aten_tracer/__init__.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tracer/aten_tracer
copying torch_migraphx/fx/tracer/aten_tracer/aten_tracer.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tracer/aten_tracer
copying torch_migraphx/fx/tracer/acc_tracer/acc_ops.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tracer/acc_tracer
copying torch_migraphx/fx/tracer/acc_tracer/__init__.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tracer/acc_tracer
copying torch_migraphx/fx/tracer/acc_tracer/acc_shape_prop.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tracer/acc_tracer
copying torch_migraphx/fx/tracer/acc_tracer/acc_utils.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tracer/acc_tracer
copying torch_migraphx/fx/tracer/acc_tracer/acc_op_properties.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tracer/acc_tracer
copying torch_migraphx/fx/tracer/acc_tracer/acc_tracer.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tracer/acc_tracer
copying torch_migraphx/fx/tracer/acc_tracer/acc_normalizer.py -> build/lib.linux-x86_64-cpython-39/torch_migraphx/fx/tracer/acc_tracer
running egg_info
writing torch_migraphx.egg-info/PKG-INFO
writing dependency_links to torch_migraphx.egg-info/dependency_links.txt
writing requirements to torch_migraphx.egg-info/requires.txt
writing top-level names to torch_migraphx.egg-info/top_level.txt
reading manifest file 'torch_migraphx.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'torch_migraphx.egg-info/SOURCES.txt'
/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'torch_migraphx.csrc' is absent from the `packages` configuration.
!!
********************************************************************************
############################
# Package would be ignored #
############################
Python recognizes 'torch_migraphx.csrc' as an importable package[^1],
but it is absent from setuptools' `packages` configuration.
This leads to an ambiguous overall configuration. If you want to distribute this
package, please make sure that 'torch_migraphx.csrc' is explicitly added
to the `packages` configuration field.
Alternatively, you can also rely on setuptools' discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
If you don't want 'torch_migraphx.csrc' to be distributed and are
already explicitly excluding 'torch_migraphx.csrc' via
`find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
you can try to use `exclude_package_data`, or `include-package-data=False` in
combination with a more fine grained `package-data` configuration.
You can read more about "package data files" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[^1]: For Python, any directory (with suitable naming) can be imported,
even if it does not contain any `.py` files.
On the other hand, currently there is no concept of package data
directory, all directories are treated like packages.
********************************************************************************
!!
check.warn(importable)
copying torch_migraphx/csrc/mgx_util.cpp -> build/lib.linux-x86_64-cpython-39/torch_migraphx/csrc
copying torch_migraphx/csrc/mgx_util.h -> build/lib.linux-x86_64-cpython-39/torch_migraphx/csrc
copying torch_migraphx/csrc/par_for.h -> build/lib.linux-x86_64-cpython-39/torch_migraphx/csrc
copying torch_migraphx/csrc/torch_migraphx_py.cpp -> build/lib.linux-x86_64-cpython-39/torch_migraphx/csrc
running build_ext
CMake Error at CMakeLists.txt:6 (find_package):
By not providing "Findmigraphx.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "migraphx",
but CMake did not find one.
Could not find a package configuration file provided by "migraphx" with any
of the following names:
migraphxConfig.cmake
migraphx-config.cmake
Add the installation prefix of "migraphx" to CMAKE_PREFIX_PATH or set
"migraphx_DIR" to a directory containing one of the above files. If
"migraphx" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 410, in build_wheel
return self._build_with_temp_dir(
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 395, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 114, in <module>
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 184, in setup
return run_commands(dist)
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 968, in run_command
super().run_command(command)
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 368, in run
self.run_command("build")
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 968, in run_command
super().run_command(command)
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 132, in run
self.run_command(cmd_name)
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 968, in run_command
super().run_command(command)
File "/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "<string>", line 71, in run
File "<string>", line 103, in build_extension
File "/opt/conda/envs/py_3.9/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/DATA/tMIGraphX/torch_migraphx/py', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/DATA/tMIGraphX/torch_migraphx/py/build/lib.linux-x86_64-cpython-39', '-DPYTHON_EXECUTABLE=/opt/conda/envs/py_3.9/bin/python', '-DCMAKE_PREFIX_PATH=/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/share/cmake', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for torch_migraphx
Failed to build torch_migraphx
ERROR: Could not build wheels for torch_migraphx, which is required to install pyproject.toml-based projects
root@w7900:/DATA/tMIGraphX/torch_migraphx/py#
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
y# rocminfo --support
ROCk module version 6.7.0 is loaded
HSA System Attributes
Runtime Version: 1.13
Runtime Ext Version: 1.4
System Timestamp Freq.: 1000.000000MHz
Sig. Max Wait Duration: 18446744073709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
Machine Model: LARGE
System Endianness: LITTLE
Mwaitx: DISABLED
DMAbuf Support: YES
==========
HSA Agents
Agent 1
Name: AMD Ryzen 9 7900X 12-Core Processor
Uuid: CPU-XX
Marketing Name: AMD Ryzen 9 7900X 12-Core Processor
Vendor Name: CPU
Feature: None specified
Profile: FULL_PROFILE
Float Round Mode: NEAR
Max Queue Number: 0(0x0)
Queue Min Size: 0(0x0)
Queue Max Size: 0(0x0)
Queue Type: MULTI
Node: 0
Device Type: CPU
Cache Info:
L1: 32768(0x8000) KB
Chip ID: 0(0x0)
ASIC Revision: 0(0x0)
Cacheline Size: 64(0x40)
Max Clock Freq. (MHz): 5733
BDFID: 0
Internal Node ID: 0
Compute Unit: 24
SIMDs per CU: 0
Shader Engines: 0
Shader Arrs. per Eng.: 0
WatchPts on Addr. Ranges:1
Features: None
Pool Info:
Pool 1
Segment: GLOBAL; FLAGS: FINE GRAINED
Size: 64945080(0x3defbb8) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
Pool 2
Segment: GLOBAL; FLAGS: KERNARG, FINE GRAINED
Size: 64945080(0x3defbb8) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
Pool 3
Segment: GLOBAL; FLAGS: COARSE GRAINED
Size: 64945080(0x3defbb8) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
ISA Info:
Agent 2
Name: gfx1100
Uuid: GPU-675d22966a79993c
Marketing Name: AMD Radeon PRO W7900
Vendor Name: AMD
Feature: KERNEL_DISPATCH
Profile: BASE_PROFILE
Float Round Mode: NEAR
Max Queue Number: 128(0x80)
Queue Min Size: 64(0x40)
Queue Max Size: 131072(0x20000)
Queue Type: MULTI
Node: 1
Device Type: GPU
Cache Info:
L1: 32(0x20) KB
L2: 6144(0x1800) KB
L3: 98304(0x18000) KB
Chip ID: 29768(0x7448)
ASIC Revision: 0(0x0)
Cacheline Size: 64(0x40)
Max Clock Freq. (MHz): 1760
BDFID: 768
Internal Node ID: 1
Compute Unit: 96
SIMDs per CU: 2
Shader Engines: 6
Shader Arrs. per Eng.: 2
WatchPts on Addr. Ranges:4
Coherent Host Access: FALSE
Features: KERNEL_DISPATCH
Fast F16 Operation: TRUE
Wavefront Size: 32(0x20)
Workgroup Max Size: 1024(0x400)
Workgroup Max Size per Dimension:
x 1024(0x400)
y 1024(0x400)
z 1024(0x400)
Max Waves Per CU: 32(0x20)
Max Work-item Per CU: 1024(0x400)
Grid Max Size: 4294967295(0xffffffff)
Grid Max Size per Dimension:
x 4294967295(0xffffffff)
y 4294967295(0xffffffff)
z 4294967295(0xffffffff)
Max fbarriers/Workgrp: 32
Packet Processor uCode:: 202
SDMA engine uCode:: 20
IOMMU Support:: None
Pool Info:
Pool 1
Segment: GLOBAL; FLAGS: COARSE GRAINED
Size: 47169536(0x2cfc000) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:2048KB
Alloc Alignment: 4KB
Accessible by all: FALSE
Pool 2
Segment: GLOBAL; FLAGS: EXTENDED FINE GRAINED
Size: 47169536(0x2cfc000) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:2048KB
Alloc Alignment: 4KB
Accessible by all: FALSE
Pool 3
Segment: GLOBAL; FLAGS: FINE GRAINED
Size: 47169536(0x2cfc000) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:2048KB
Alloc Alignment: 4KB
Accessible by all: FALSE
Pool 4
Segment: GROUP
Size: 64(0x40) KB
Allocatable: FALSE
Alloc Granule: 0KB
Alloc Recommended Granule:0KB
Alloc Alignment: 0KB
Accessible by all: FALSE
ISA Info:
ISA 1
Name: amdgcn-amd-amdhsa--gfx1100
Machine Models: HSA_MACHINE_MODEL_LARGE
Profiles: HSA_PROFILE_BASE
Default Rounding Mode: NEAR
Default Rounding Mode: NEAR
Fast f16: TRUE
Workgroup Max Size: 1024(0x400)
Workgroup Max Size per Dimension:
x 1024(0x400)
y 1024(0x400)
z 1024(0x400)
Grid Max Size: 4294967295(0xffffffff)
Grid Max Size per Dimension:
x 4294967295(0xffffffff)
y 4294967295(0xffffffff)
z 4294967295(0xffffffff)
FBarrier Max Size: 32
*** Done ***
Additional Information
No response
The text was updated successfully, but these errors were encountered:
AlexHe99
changed the title
[Issue]:
[Issue]: Build torch_migraphx from source got failed.
Jun 18, 2024
Problem Description
Build torch_migraphx from source got failed.
build_torch_migraphx_failed.log.txt
Operating System
NAME="Ubuntu" VERSION="20.04.6 LTS (Focal Fossa)"
CPU
AMD Ryzen 9 7900X 12-Core Processor
GPU
AMD Radeon Pro W7900
ROCm Version
ROCm 6.1.0, ROCm 6.0.0
ROCm Component
AMDMIGraphX
Steps to Reproduce
Use the docker image "rocm/pytorch:lates"
Check the torch env and query the AMD GPU (gfx1100, Radeon Pro W7900) in the docker by,
cat /DATA/query_gpu.py
import torch
print(torch.version)
if torch.cuda.is_available():
device = torch.device("cuda") # a CUDA device object
print('Using GPU:', torch.cuda.get_device_name(0))
print('GPU details:', torch.cuda.get_device_properties(0))
else:
device = torch.device("cpu")
print('Using CPU')
root@w7900:/DATA/tMIGraphX/torch_migraphx/py# python /DATA/query_gpu.py
2.3.0a0+gitae01701
Using GPU: AMD Radeon PRO W7900
GPU details: _CudaDeviceProperties(name='AMD Radeon PRO W7900', major=11, minor=0, gcnArchName='gfx1100', total_memory=46064MB, multi_processor_count=48)
root@w7900:/DATA/tMIGraphX/torch_migraphx/py# export TORCH_CMAKE_PATH=$(python -c "import torch; print(torch.utils.cmake_prefix_path)")
root@w7900:/DATA/tMIGraphX/torch_migraphx/py#
root@w7900:/DATA/tMIGraphX/torch_migraphx/py# echo $TORCH_CMAKE_PATH
/opt/conda/envs/py_3.9/lib/python3.9/site-packages/torch/share/cmake
root@w7900:/DATA/tMIGraphX/torch_migraphx/py# pip install .
Processing /DATA/tMIGraphX/torch_migraphx/py
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: torch>=1.11.0 in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch_migraphx==0.0.3) (2.3.0a0+gitae01701)
Requirement already satisfied: numpy>=1.20.0 in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch_migraphx==0.0.3) (1.20.3)
Collecting pybind11-global (from torch_migraphx==0.0.3)
Using cached pybind11_global-2.12.0-py3-none-any.whl.metadata (9.4 kB)
Requirement already satisfied: packaging in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch_migraphx==0.0.3) (24.0)
Collecting tabulate (from torch_migraphx==0.0.3)
Using cached tabulate-0.9.0-py3-none-any.whl.metadata (34 kB)
Requirement already satisfied: filelock in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch>=1.11.0->torch_migraphx==0.0.3) (3.13.1)
Requirement already satisfied: typing-extensions>=4.8.0 in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch>=1.11.0->torch_migraphx==0.0.3) (4.11.0)
Requirement already satisfied: sympy in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch>=1.11.0->torch_migraphx==0.0.3) (1.12)
Requirement already satisfied: networkx in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch>=1.11.0->torch_migraphx==0.0.3) (2.8.8)
Requirement already satisfied: jinja2 in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch>=1.11.0->torch_migraphx==0.0.3) (3.1.2)
Requirement already satisfied: fsspec in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from torch>=1.11.0->torch_migraphx==0.0.3) (2024.2.0)
Requirement already satisfied: MarkupSafe>=2.0 in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from jinja2->torch>=1.11.0->torch_migraphx==0.0.3) (2.1.5)
Requirement already satisfied: mpmath>=0.19 in /opt/conda/envs/py_3.9/lib/python3.9/site-packages (from sympy->torch>=1.11.0->torch_migraphx==0.0.3) (1.3.0)
Using cached pybind11_global-2.12.0-py3-none-any.whl (425 kB)
Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Building wheels for collected packages: torch_migraphx
Building wheel for torch_migraphx (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for torch_migraphx (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [198 lines of output]
/tmp/pip-build-env-0o71h0fw/overlay/lib/python3.9/site-packages/setuptools/dist.py:476: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for torch_migraphx
Failed to build torch_migraphx
ERROR: Could not build wheels for torch_migraphx, which is required to install pyproject.toml-based projects
root@w7900:/DATA/tMIGraphX/torch_migraphx/py#
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
y# rocminfo --support
ROCk module version 6.7.0 is loaded
HSA System Attributes
Runtime Version: 1.13
Runtime Ext Version: 1.4
System Timestamp Freq.: 1000.000000MHz
Sig. Max Wait Duration: 18446744073709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
Machine Model: LARGE
System Endianness: LITTLE
Mwaitx: DISABLED
DMAbuf Support: YES
==========
HSA Agents
Agent 1
Name: AMD Ryzen 9 7900X 12-Core Processor
Uuid: CPU-XX
Marketing Name: AMD Ryzen 9 7900X 12-Core Processor
Vendor Name: CPU
Feature: None specified
Profile: FULL_PROFILE
Float Round Mode: NEAR
Max Queue Number: 0(0x0)
Queue Min Size: 0(0x0)
Queue Max Size: 0(0x0)
Queue Type: MULTI
Node: 0
Device Type: CPU
Cache Info:
L1: 32768(0x8000) KB
Chip ID: 0(0x0)
ASIC Revision: 0(0x0)
Cacheline Size: 64(0x40)
Max Clock Freq. (MHz): 5733
BDFID: 0
Internal Node ID: 0
Compute Unit: 24
SIMDs per CU: 0
Shader Engines: 0
Shader Arrs. per Eng.: 0
WatchPts on Addr. Ranges:1
Features: None
Pool Info:
Pool 1
Segment: GLOBAL; FLAGS: FINE GRAINED
Size: 64945080(0x3defbb8) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
Pool 2
Segment: GLOBAL; FLAGS: KERNARG, FINE GRAINED
Size: 64945080(0x3defbb8) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
Pool 3
Segment: GLOBAL; FLAGS: COARSE GRAINED
Size: 64945080(0x3defbb8) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
ISA Info:
Agent 2
Name: gfx1100
Uuid: GPU-675d22966a79993c
Marketing Name: AMD Radeon PRO W7900
Vendor Name: AMD
Feature: KERNEL_DISPATCH
Profile: BASE_PROFILE
Float Round Mode: NEAR
Max Queue Number: 128(0x80)
Queue Min Size: 64(0x40)
Queue Max Size: 131072(0x20000)
Queue Type: MULTI
Node: 1
Device Type: GPU
Cache Info:
L1: 32(0x20) KB
L2: 6144(0x1800) KB
L3: 98304(0x18000) KB
Chip ID: 29768(0x7448)
ASIC Revision: 0(0x0)
Cacheline Size: 64(0x40)
Max Clock Freq. (MHz): 1760
BDFID: 768
Internal Node ID: 1
Compute Unit: 96
SIMDs per CU: 2
Shader Engines: 6
Shader Arrs. per Eng.: 2
WatchPts on Addr. Ranges:4
Coherent Host Access: FALSE
Features: KERNEL_DISPATCH
Fast F16 Operation: TRUE
Wavefront Size: 32(0x20)
Workgroup Max Size: 1024(0x400)
Workgroup Max Size per Dimension:
x 1024(0x400)
y 1024(0x400)
z 1024(0x400)
Max Waves Per CU: 32(0x20)
Max Work-item Per CU: 1024(0x400)
Grid Max Size: 4294967295(0xffffffff)
Grid Max Size per Dimension:
x 4294967295(0xffffffff)
y 4294967295(0xffffffff)
z 4294967295(0xffffffff)
Max fbarriers/Workgrp: 32
Packet Processor uCode:: 202
SDMA engine uCode:: 20
IOMMU Support:: None
Pool Info:
Pool 1
Segment: GLOBAL; FLAGS: COARSE GRAINED
Size: 47169536(0x2cfc000) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:2048KB
Alloc Alignment: 4KB
Accessible by all: FALSE
Pool 2
Segment: GLOBAL; FLAGS: EXTENDED FINE GRAINED
Size: 47169536(0x2cfc000) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:2048KB
Alloc Alignment: 4KB
Accessible by all: FALSE
Pool 3
Segment: GLOBAL; FLAGS: FINE GRAINED
Size: 47169536(0x2cfc000) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:2048KB
Alloc Alignment: 4KB
Accessible by all: FALSE
Pool 4
Segment: GROUP
Size: 64(0x40) KB
Allocatable: FALSE
Alloc Granule: 0KB
Alloc Recommended Granule:0KB
Alloc Alignment: 0KB
Accessible by all: FALSE
ISA Info:
ISA 1
Name: amdgcn-amd-amdhsa--gfx1100
Machine Models: HSA_MACHINE_MODEL_LARGE
Profiles: HSA_PROFILE_BASE
Default Rounding Mode: NEAR
Default Rounding Mode: NEAR
Fast f16: TRUE
Workgroup Max Size: 1024(0x400)
Workgroup Max Size per Dimension:
x 1024(0x400)
y 1024(0x400)
z 1024(0x400)
Grid Max Size: 4294967295(0xffffffff)
Grid Max Size per Dimension:
x 4294967295(0xffffffff)
y 4294967295(0xffffffff)
z 4294967295(0xffffffff)
FBarrier Max Size: 32
*** Done ***
Additional Information
No response
The text was updated successfully, but these errors were encountered: