ROCmValidationSuite icon indicating copy to clipboard operation
ROCmValidationSuite copied to clipboard

[Issue]: Unable to configure version 7.0.1

Open RandUser123sa opened this issue 3 months ago • 4 comments

Problem Description

Hello,

I'm trying to build the project and receive an error, I download release version 7.0.1 and git as well but result is the same.

I configure with:

cmake
-D CMAKE_BUILD_TYPE=Release
-D CMAKE_CXX_COMPILER=/opt/rocm/llvm/bin/amdclang++
-D CMAKE_C_COMPILER=/opt/rocm/llvm/bin/amdclang
-D CMAKE_INSTALL_PREFIX=/opt/rocm
-D AMDGPU_TARGETS="gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a;gfx942;gfx950;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102;gfx1151;gfx1200;gfx1201"
-D GPU_TARGETS="gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a;gfx942;gfx950;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102;gfx1151;gfx1200;gfx1201"
-D RVS_BUILD_TESTS=OFF
-D RVS_ROCBLAS=1
-D RVS_ROCMSMI=1
-D CMAKE_POLICY_VERSION_MINIMUM=3.5
..

and I receive error:

-- The C compiler identification is Clang 20.0.0 -- The CXX compiler identification is Clang 20.0.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /opt/rocm/llvm/bin/amdclang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /opt/rocm/llvm/bin/amdclang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS -- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS - Success -- rocblas found -- rocblas Version: 5.0.0 -- rocblas: Version string 5000000 For Version Check -- ROCBLAS REORG VERSION: 5000000 -- hipblaslt found -- hsa-runtime64 found -- amd_smi found -- hiprand found -- rocrand found -- hipblas-common found -- RVS_OS_TYPE: slackware -- RVS_OS_TYPE_NUM: 0 fatal: not a git repository (or any parent up to mount point /mnt) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). -- CMAKE_BUILD_TYPE = Release -- RVS_COVERAGE = FALSE -- RVS_BUILD_TESTS = OFF -- CMAKE_BINARY_DIR = /mnt/arch/rocm/rocm-build/build/ROCmValidationSuite -- CMAKE_CURRENT_SOURCE_DIR = /mnt/arch/rocm/release/ROCmValidationSuite-rocm-7.0.1 -- RVS_DO_TRACE defined -- CPACK_GENERATOR DEB;RPM yaml-cpp found CMake Error at CMakeLists.txt:26 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier.

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

-- Configuring incomplete, errors occurred! CMake Error at CMakeLists.txt:396 (message): CMake step for mxDataGenerator failed: 1

-- Configuring incomplete, errors occurred!

Any one could help ?

Thanks

Operating System

Slackware 15.0

CPU

AMD Ryzen 7 3800X 8-Core Processor

GPU

AMD Radeon RX 7900 XTX

ROCm Version

ROCm 7.0.1

ROCm Component

ROCmValidationSuite

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

ROCk module is loaded

HSA System Attributes

Runtime Version: 1.18 Runtime Ext Version: 1.11 System Timestamp Freq.: 1000.000000MHz Sig. Max Wait Duration: 18446744073709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count) Machine Model: LARGE
System Endianness: LITTLE
Mwaitx: DISABLED XNACK enabled: NO DMAbuf Support: YES VMM Support: YES

==========
HSA Agents


Agent 1


Name: AMD Ryzen 7 3800X 8-Core Processor Uuid: CPU-XX
Marketing Name: AMD Ryzen 7 3800X 8-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): 4560
BDFID: 0
Internal Node ID: 0
Compute Unit: 16
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: 32785560(0x1f44498) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
Pool 2
Segment: GLOBAL; FLAGS: EXTENDED FINE GRAINED Size: 32785560(0x1f44498) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
Pool 3
Segment: GLOBAL; FLAGS: KERNARG, FINE GRAINED Size: 32785560(0x1f44498) KB
Allocatable: TRUE
Alloc Granule: 4KB
Alloc Recommended Granule:4KB
Alloc Alignment: 4KB
Accessible by all: TRUE
Pool 4
Segment: GLOBAL; FLAGS: COARSE GRAINED
Size: 32785560(0x1f44498) 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-6e99eccb20090e4e
Marketing Name: AMD Radeon RX 7900 XTX
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: 29772(0x744c)
ASIC Revision: 0(0x0)
Cacheline Size: 128(0x80)
Max Clock Freq. (MHz): 2482
BDFID: 3072
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
Memory Properties:
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 2147483647(0x7fffffff)
y 65535(0xffff)
z 65535(0xffff)
Max fbarriers/Workgrp: 32
Packet Processor uCode:: 602
SDMA engine uCode:: 26
IOMMU Support:: None
Pool Info:
Pool 1
Segment: GLOBAL; FLAGS: COARSE GRAINED
Size: 25149440(0x17fc000) 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: 25149440(0x17fc000) 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--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 2147483647(0x7fffffff)
y 65535(0xffff)
z 65535(0xffff)
FBarrier Max Size: 32
ISA 2
Name: amdgcn-amd-amdhsa--gfx11-generic
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 2147483647(0x7fffffff)
y 65535(0xffff)
z 65535(0xffff)
FBarrier Max Size: 32
*** Done ***

Additional Information

No response

RandUser123sa avatar Sep 19 '25 07:09 RandUser123sa

Hi @RandUser123sa. Internal ticket has been created to investigate this issue. Thanks!

ppanchad-amd avatar Sep 19 '25 14:09 ppanchad-amd

Hello, I made a little investigation and I was able to compile the project. It's seems the build script should be changed some how. I download release version and after script fail, I enter manual to build directory/mxDataGenerator-download and did:

cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 && cmake --build .

the mxDataGenerator was compiled with no errors and I return to ROCmValidationSuite build directory and restart cmake with command:

cmake
-D CMAKE_BUILD_TYPE=Release
-D CMAKE_CXX_COMPILER=/opt/rocm/llvm/bin/amdclang++
-D CMAKE_C_COMPILER=/opt/rocm/llvm/bin/amdclang
-D CMAKE_INSTALL_PREFIX=/opt/rocm
-D AMDGPU_TARGETS="gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a;gfx942;gfx950;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102;gfx1151;gfx1200;gfx1201"
-D GPU_TARGETS="gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a;gfx942;gfx950;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102;gfx1151;gfx1200;gfx1201"
-D RVS_BUILD_TESTS=OFF
-D RVS_ROCBLAS=0
-D RVS_ROCMSMI=0
-D CMAKE_POLICY_VERSION_MINIMUM=3.5
-D OpenMP_C_FLAGS="-fopenmp -Wno-unused-command-line-argument"
-D OpenMP_C_LIB_NAMES="libomp;libgomp;libiomp5"
-D OpenMP_CXX_FLAGS="-fopenmp -Wno-unused-command-line-argument"
-D OpenMP_CXX_LIB_NAMES="libomp;libgomp;libiomp5"
-D OpenMP_libomp_LIBRARY="/opt/rocm/lib/libomp.so"
-D OpenMP_libgomp_LIBRARY="/opt/rocm/lib/libgomp.so"
-D OpenMP_libiomp5_LIBRARY="/opt/rocm/lib/libiomp5.so"
..

then I was able to compile the project with no errors.

RandUser123sa avatar Sep 20 '25 07:09 RandUser123sa

Hi @RandUser123sa,

I tried with ROCm 7.0.1 and corresponding RVS 7.0.1 branch, with the following:

~/ROCmValidationSuite$ git branch
* release/rocm-rel-7.0
$ cmake --version
cmake version 3.31.4

and your configure command in your original post, just disabling the following:

-D RVS_ROCBLAS=0
-D RVS_ROCMSMI=0

which looked like this:

cmake \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_COMPILER=/opt/rocm/llvm/bin/amdclang++ \
-D CMAKE_C_COMPILER=/opt/rocm/llvm/bin/amdclang \
-D CMAKE_INSTALL_PREFIX=/opt/rocm \
-D AMDGPU_TARGETS="gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a;gfx942;gfx950;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102;gfx1151;gfx1200;gfx1201" \
-D GPU_TARGETS="gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a;gfx942;gfx950;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102;gfx1151;gfx1200;gfx1201" \
-D RVS_BUILD_TESTS=OFF \
-D RVS_ROCBLAS=0 \
-D RVS_ROCMSMI=0 \
-D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
..

and I did not reproduce the errors you described (the configure step and subsequent build(s) succeeded), including for mxDataGenerator.

What is your cmake version, and what branch of ROCmValidationSuite are you on?

lucbruni-amd avatar Sep 26 '25 21:09 lucbruni-amd

I'm using the release version from here https://github.com/ROCm/ROCmValidationSuite/releases/tag/rocm-7.0.1, not github version.

and cmake version: 4.1.1

and if I activate

-D RVS_ROCBLAS=1 -D RVS_ROCMSMI=1

The build script trying to download the rocBLAS package from GitHub, but the ROCmValidationSuite found my rocBLAS installation

` //The directory containing a CMake configuration file for amd_comgr. amd_comgr_DIR:PATH=/opt/rocm/lib64/cmake/amd_comgr

//The directory containing a CMake configuration file for amd_smi. amd_smi_DIR:PATH=/opt/rocm/lib64/cmake/amd_smi

//The directory containing a CMake configuration file for hip. hip_DIR:PATH=/opt/rocm/lib64/cmake/hip

//The directory containing a CMake configuration file for hipblas-common. hipblas-common_DIR:PATH=/opt/rocm/lib64/cmake/hipblas-common

//The directory containing a CMake configuration file for hipblaslt. hipblaslt_DIR:PATH=/opt/rocm/lib64/cmake/hipblaslt

//The directory containing a CMake configuration file for hiprand. hiprand_DIR:PATH=/opt/rocm/lib64/cmake/hiprand

//The directory containing a CMake configuration file for hsa-runtime64. hsa-runtime64_DIR:PATH=/opt/rocm/lib64/cmake/hsa-runtime64

//The directory containing a CMake configuration file for rocblas. rocblas_DIR:PATH=/opt/rocm/lib64/cmake/rocblas

`

RandUser123sa avatar Sep 28 '25 05:09 RandUser123sa