ROCm / ROCm-CompilerSupport

The compiler support repository provides various Lightning Compiler related services.
47 stars 31 forks source link

comgr_lookup_code_object_test failed: HIP is not supported on gfx701 with wavefront size 64 #60

Closed littlewu2508 closed 4 months ago

littlewu2508 commented 11 months ago

Testing comgr version rocm-5.6.0 failed one test:

26/32 Testing: comgr_lookup_code_object_test
26/32 Test: comgr_lookup_code_object_test
Command: "/ext4-disk/build/portage/dev-libs/rocm-comgr-5.6.0/work/ROCm-CompilerSupport-rocm-5.6.0/lib/comgr_build/test/lookup_code_object_test"
Directory: /ext4-disk/build/portage/dev-libs/rocm-comgr-5.6.0/work/ROCm-CompilerSupport-rocm-5.6.0/lib/comgr_build/test
"comgr_lookup_code_object_test" start time: Jul 29 10:42 CST
Output:
----------------------------------------------------------
In file included from /ext4-disk/build/portage/dev-libs/rocm-comgr-5.6.0/temp/comgr-881a28/input/source1.hip:35:
/opt/gentoo/usr/include/hip/hip_runtime.h:41:2: error: HIP is not supported on the specified GPU ARCH with wavefront size 64
#error HIP is not supported on the specified GPU ARCH with wavefront size 64
 ^
1 error generated when compiling for gfx701.
FAILED: amd_comgr_do_action
 REASON: ERROR
<end of output>

Removing the gfx701 and gfx702 offload arch compile option in https://github.com/RadeonOpenCompute/ROCm-CompilerSupport/blob/1fe43c716e7d6f381795148841a7b0f681f0c8b8/lib/comgr/test/lookup_code_object_test.c#L67 can avoid the error

lamb-j commented 4 months ago

Looks like you're running with HIP_COMPILER/optional hip tests enabled (source1.hip).

For now, I'd recommend testing with these tests disabled; we're planning on relocating and restructuring them soon, with the aim of removing HIP dependencies from the Comgr tests to avoid issues like this one.