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
[Issue]: Build failure "error: ("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__")" and "error: unknown type name 'hip_bfloat16'"
#1697
Open
tdavie opened this issue
Feb 22, 2025
· 3 comments
./install.sh -idc -a "gfx908:xnack+;gfx908:xnack-" --legacy_hipblas_direct
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
ROCk module version 6.8.5 is loaded
=====================
HSA System Attributes
=====================
Runtime Version: 1.14
Runtime Ext Version: 1.6
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: Intel(R) Xeon(R) W-2135 CPU @ 3.70GHz
Uuid: CPU-XX
Marketing Name: Intel(R) Xeon(R) W-2135 CPU @ 3.70GHz
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): 4500
BDFID: 0
Internal Node ID: 0
Compute Unit: 12
SIMDs per CU: 0
Shader Engines: 0
Shader Arrs. per Eng.: 0
WatchPts on Addr. Ranges:1
Memory Properties:
Features: None
Pool Info:
Pool 1
Segment: GLOBAL; FLAGS: FINE GRAINED
Size: 65397536(0x3e5e320) 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: 65397536(0x3e5e320) 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: 65397536(0x3e5e320) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
ISA Info:
*******
Agent 2
*******
Name: gfx908
Uuid: GPU-1ba7ce67f0270ca4
Marketing Name: AMD Instinct MI100
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: 16(0x10) KB
L2: 8192(0x2000) KB
Chip ID: 29580(0x738c)
ASIC Revision: 2(0x2)
Cacheline Size: 64(0x40)
Max Clock Freq. (MHz): 1502
BDFID: 26368
Internal Node ID: 1
Compute Unit: 120
SIMDs per CU: 4
Shader Engines: 8
Shader Arrs. per Eng.: 1
WatchPts on Addr. Ranges:4
Coherent Host Access: FALSE
Memory Properties:
Features: KERNEL_DISPATCH
Fast F16 Operation: TRUE
Wavefront Size: 64(0x40)
Workgroup Max Size: 1024(0x400)
Workgroup Max Size per Dimension:
x 1024(0x400)
y 1024(0x400)
z 1024(0x400)
Max Waves Per CU: 40(0x28)
Max Work-item Per CU: 2560(0xa00)
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:: 67
SDMA engine uCode:: 18
IOMMU Support:: None
Pool Info:
Pool 1
Segment: GLOBAL; FLAGS: COARSE GRAINED
Size: 33538048(0x1ffc000) 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: 33538048(0x1ffc000) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:2048KB
Alloc Alignment: 4KB
Accessible by all: FALSE
Pool 3
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--gfx908:sramecc+:xnack-
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
I also tried compiling on branch release/rocm-rel-6.2, to match my system ROCm version. This gave a different error.
$ ./install.sh -idc -a "gfx908:xnack+;gfx908:xnack-"
...
Building wheels for collected packages: Tensile
Building wheel for Tensile (setup.py): started
Building wheel for Tensile (setup.py): finished with status 'done'
Created wheel for Tensile: filename=Tensile-4.33.0-py3-none-any.whl size=22098125 sha256=0bc2abc38c7a2935523551143c089f8059c58b1432cd5c1a5b254a5cca7c2133
Stored in directory: /tmp/pip-ephem-wheel-cache-520lqd_y/wheels/90/2f/64/e9ed0cd3f7b329e3b35ed2f9d346e95c7287c507a28193219b
Successfully built Tensile
...
[ 6%] Built target hipblaslt-common
Creating code object for arch gfx908
Traceback (most recent call last):
File "/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Ops/./SoftmaxGenerator.py", line 34, in <module>
from Tensile.Common import detectGlobalCurrentISA, restoreDefaultGlobalParameters, \
ImportError: cannot import name 'getGfxName' from 'Tensile.Common' (/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Common/__init__.py)
Traceback (most recent call last):
File "/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Ops/./AMaxGenerator.py", line 35, in <module>
from Tensile.Common import detectGlobalCurrentISA, restoreDefaultGlobalParameters, \
ImportError: cannot import name 'getGfxName' from 'Tensile.Common' (/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Common/__init__.py)
Traceback (most recent call last):
File "/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Ops/./AMaxGenerator.py", line 35, in <module>
from Tensile.Common import detectGlobalCurrentISA, restoreDefaultGlobalParameters, \
ImportError: cannot import name 'getGfxName' from 'Tensile.Common' (/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Common/__init__.py)
Traceback (most recent call last):
File "/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Ops/./SoftmaxGenerator.py", line 34, in <module>
from Tensile.Common import detectGlobalCurrentISA, restoreDefaultGlobalParameters, \
ImportError: cannot import name 'getGfxName' from 'Tensile.Common' (/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Common/__init__.py)
Traceback (most recent call last):
File "/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Ops/./SoftmaxGenerator.py", line 34, in <module>
from Tensile.Common import detectGlobalCurrentISA, restoreDefaultGlobalParameters, \
ImportError: cannot import name 'getGfxName' from 'Tensile.Common' (/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Common/__init__.py)
Traceback (most recent call last):
File "/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Ops/./SoftmaxGenerator.py", line 34, in <module>
from Tensile.Common import detectGlobalCurrentISA, restoreDefaultGlobalParameters, \
ImportError: cannot import name 'getGfxName' from 'Tensile.Common' (/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Common/__init__.py)
Traceback (most recent call last):
File "/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Ops/./AMaxGenerator.py", line 35, in <module>
from Tensile.Common import detectGlobalCurrentISA, restoreDefaultGlobalParameters, \
ImportError: cannot import name 'getGfxName' from 'Tensile.Common' (/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Common/__init__.py)
Traceback (most recent call last):
File "/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Ops/./LayerNormGenerator.py", line 35, in <module>
from Tensile.Common import detectGlobalCurrentISA, restoreDefaultGlobalParameters, \
ImportError: cannot import name 'getGfxName' from 'Tensile.Common' (/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Common/__init__.py)
Traceback (most recent call last):
File "/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Ops/./AMaxGenerator.py", line 35, in <module>
from Tensile.Common import detectGlobalCurrentISA, restoreDefaultGlobalParameters, \
ImportError: cannot import name 'getGfxName' from 'Tensile.Common' (/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Common/__init__.py)
Traceback (most recent call last):
File "/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Ops/./LayerNormGenerator.py", line 35, in <module>
from Tensile.Common import detectGlobalCurrentISA, restoreDefaultGlobalParameters, \
ImportError: cannot import name 'getGfxName' from 'Tensile.Common' (/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Common/__init__.py)
Traceback (most recent call last):
File "/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Ops/./SoftmaxGenerator.py", line 34, in <module>
from Tensile.Common import detectGlobalCurrentISA, restoreDefaultGlobalParameters, \
ImportError: cannot import name 'getGfxName' from 'Tensile.Common' (/nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Common/__init__.py)
clang++: error: no such file or directory: '/nvme/hipBLASLt/build/release/library/build_tmp/ops/L_256_4_1_gfx908.o'
clang++: error: no such file or directory: '/nvme/hipBLASLt/build/release/library/build_tmp/ops/L_256_4_0_gfx908.o'
clang++: error: no such file or directory: '/nvme/hipBLASLt/build/release/library/build_tmp/ops/S_16_16_gfx908.o'
clang++: error: no such file or directory: '/nvme/hipBLASLt/build/release/library/build_tmp/ops/S_8_32_gfx908.o'
clang++: error: no such file or directory: '/nvme/hipBLASLt/build/release/library/build_tmp/ops/S_4_64_gfx908.o'
clang++: error: no such file or directory: '/nvme/hipBLASLt/build/release/library/build_tmp/ops/S_2_128_gfx908.o'
clang++: error: no such file or directory: '/nvme/hipBLASLt/build/release/library/build_tmp/ops/S_1_256_gfx908.o'
clang++: error: no such file or directory: '/nvme/hipBLASLt/build/release/library/build_tmp/ops/A_S_S_256_4_gfx908.o'
clang++: error: no such file or directory: '/nvme/hipBLASLt/build/release/library/build_tmp/ops/A_H_H_256_4_gfx908.o'
clang++: error: no such file or directory: '/nvme/hipBLASLt/build/release/library/build_tmp/ops/A_H_S_256_4_gfx908.o'
clang++: error: no such file or directory: '/nvme/hipBLASLt/build/release/library/build_tmp/ops/A_S_H_256_4_gfx908.o'
cd /nvme/hipBLASLt/build/release/virtualenv/lib/python3.12/site-packages/Tensile/Ops && /usr/bin/cmake -E copy /nvme/hipBLASLt/build/release/library/build_tmp/ops/hipblasltExtOpLibrary.dat /nvme/hipBLASLt/build/release/library/build_tmp/ops/extop_*.co /nvme/hipBLASLt/build/release/Tensile/library
Error copying file "/nvme/hipBLASLt/build/release/library/build_tmp/ops/extop_*.co" to "/nvme/hipBLASLt/build/release/Tensile/library".
make[2]: *** [library/CMakeFiles/build_ext_op_library.dir/build.make:77: Tensile/library/hipblasltExtOpLibrary.dat] Error 1
make[2]: *** Deleting file 'Tensile/library/hipblasltExtOpLibrary.dat'
make[2]: Leaving directory '/nvme/hipBLASLt/build/release'
make[1]: *** [CMakeFiles/Makefile2:309: library/CMakeFiles/build_ext_op_library.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
usage: TensileCreateLibrary [-h] [--cxx-compiler CXXCOMPILER] [--c-compiler CCOMPILER] [--assembler ASSEMBLER]
[--offload-bundler OFFLOADBUNDLER] [--architecture ARCHITECTURE]
[--code-object-version {default,V4,V5}] [--cmake-cxx-compiler CMAKECXXCOMPILER] [--merge-files]
[--no-merge-files] [--num-merged-files NUMMERGEDFILES] [--short-file-names] [--no-short-file-names]
[--no-enumerate] [--embed-library EMBEDLIBRARY] [--embed-library-key EMBEDLIBRARYKEY]
[--version VERSION] [--generate-manifest-and-exit] [--generate-sources-and-exit] [--verify-manifest]
[--keep-build-tmp] [--library-format {yaml,msgpack}] [--jobs CPUTHREADS] [--verbose {0,1,2,3}]
[--separate-architectures] [--lazy-library-loading] [--build-client] [--client-config]
[--ignore-asm-cap-cache] [--write-master-solution-index]
[--global-parameters GLOBALPARAMETERS [GLOBALPARAMETERS ...]]
LogicPath OutputPath {HIP,HSA}
TensileCreateLibrary: error: unrecognized arguments: --no-library-print-debug --build-id=sha1
make[2]: *** [library/CMakeFiles/TENSILE_LIBRARY_TARGET.dir/build.make:74: Tensile/library/TensileManifest.txt] Error 2
make[2]: Leaving directory '/nvme/hipBLASLt/build/release'
make[1]: *** [CMakeFiles/Makefile2:283: library/CMakeFiles/TENSILE_LIBRARY_TARGET.dir/all] Error 2
make[2]: Leaving directory '/nvme/hipBLASLt/build/release'
[ 6%] Built target hipblaslt-test-data
make[1]: Leaving directory '/nvme/hipBLASLt/build/release'
make: *** [Makefile:166: all] Error 2
Let me know if I can provide any more information to assist. Thanks!
The text was updated successfully, but these errors were encountered:
tdavie
changed the title
[Issue]: Build failure
[Issue]: Build failure "error: ("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__")" and "error: unknown type name 'hip_bfloat16'"
Feb 22, 2025
It's kind of disappointing that hardware ostensibly under official ROCm support is not supported by key ROCm libraries and thus not able to be fully used in practice. hipBLASlt is a dependency for a few libraries I'm trying to use e.g. bitsandbytes.
Problem Description
Error on attempting to build with provided script.
Operating System
Ubuntu 24.04.1 LTS (Noble Numbat)
CPU
Intel(R) Xeon(R) W-2135 CPU @ 3.70GHz
GPU
AMD Instinct MI100
Other
No response
ROCm Version
ROCm 6.2.0
ROCm Component
hipBLASLt
Steps to Reproduce
./install.sh -idc -a "gfx908:xnack+;gfx908:xnack-" --legacy_hipblas_direct
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
Additional Information
I also tried compiling on branch
release/rocm-rel-6.2
, to match my system ROCm version. This gave a different error.Let me know if I can provide any more information to assist. Thanks!
The text was updated successfully, but these errors were encountered: