Skip to content

[Feature]: gfx803 to test suite + requires modified cmake #902

@chboishabba

Description

@chboishabba

Suggestion Description

Hi, thanks for rolling in my other issue :) 🌟
I have been engaging with @lamikr
https://github.com/lamikr/rocm_sdk_builder
To attempt to bring rocm support to gfx803 (among other older cards)

However I am still having trouble building the test suite while using the sdk eg.

echo $LD_LIBRARY_PATH
/opt/rocm_sdk_612/lib64:/opt/rocm_sdk_612/lib:/opt/rocm_sdk_612/x86_64/lib:/opt/rocm_sdk_612/lib64:/opt/rocm_sdk_612/lib:/opt/rocm_sdk_612/x86_64/lib:/opt/rocm_sdk_612/lib64:/opt/rocm_sdk_612/lib:/opt/rocm_sdk_612/x86_64/lib:/opt/rocm_sdk_612/lib64:/opt/rocm_sdk_612/lib:/opt/rocm_sdk_612/x86_64/lib:/opt/rocm_sdk_612/lib64:/opt/rocm_sdk_612/lib:/opt/rocm_sdk_612/x86_64/lib:/opt/rocm_sdk_612/lib64:/opt/rocm_sdk_612/lib:/opt/rocm_sdk_612/x86_64/lib:/opt/rocm_sdk_612/lib64:/opt/rocm_sdk_612/lib:/opt/rocm_sdk_612/x86_64/lib:/opt/rocm_sdk_612/lib64:/opt/rocm_sdk_612/lib:/opt/rocm_sdk_612/x86_64/lib:/opt/rocm_sdk_612/lib64:/opt/rocm_sdk_612/lib:/opt/rocm_sdk_612/x86_64/lib::/opt/rocm_sdk_612/apps/aie/xrt/lib:/opt/rocm_sdk_612/apps/aie/lib:/opt/rocm_sdk_612/apps/aie/xrt/lib:/opt/rocm_sdk_612/apps/aie/lib:/opt/rocm_sdk_612/apps/aie/xrt/lib:/opt/rocm_sdk_612/apps/aie/lib:/opt/rocm_sdk_612/apps/aie/xrt/lib:/opt/rocm_sdk_612/apps/aie/lib:/opt/rocm_sdk_612/apps/aie/xrt/lib:/opt/rocm_sdk_612/apps/aie/lib:/opt/rocm_sdk_612/apps/aie/xrt/lib:/opt/rocm_sdk_612/apps/aie/lib:/opt/rocm_sdk_612/apps/aie/xrt/lib:/opt/rocm_sdk_612/apps/aie/lib:/opt/rocm_sdk_612/apps/aie/xrt/lib:/opt/rocm_sdk_612/apps/aie/lib:/opt/rocm_sdk_612/apps/aie/xrt/lib:/opt/rocm_sdk_612/apps/aie/lib
cmake --fresh -B ./build \
    -DCMAKE_MODULE_PATH="./cmake_modules;/opt/rocm_sdk_612/lib64/cmake/rocm_smi" \
    -DCMAKE_PREFIX_PATH=/opt/rocm_sdk_612 \
    -DAMDDeviceLibs_DIR=/opt/rocm_sdk_612/lib64/cmake/AMDDeviceLibs/ \
    -Damd_comgr_DIR=/opt/rocm_sdk_612/lib64/cmake/amd_comgr/ \
    -Dhsa-runtime64_DIR=/opt/rocm_sdk_612/lib64/cmake/hsa-runtime64/ \
    -DROCM_PATH=/opt/rocm_sdk_612 \
    -DCMAKE_INSTALL_PREFIX=/opt/rocm_sdk_612 \
    -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rocm_sdk_612 \
    -Drocblas_DIR=/opt/rocm_sdk_612/lib64/cmake/rocblas \
    -Dhiprand_DIR=/opt/rocm_sdk_612/lib64/cmake/hiprand \
    -Drocrand_DIR=/opt/rocm_sdk_612/lib64/cmake/rocrand \
    -Drocm_smi_DIR=/opt/rocm_sdk_612/lib64/cmake/rocm_smi \
    -Dhipblas_DIR=/opt/rocm_sdk_612/lib64/cmake/hipblas \
    -Dhipblas-common_DIR=/opt/rocm_sdk_612/lib64/cmake/hipblas

Still doesn't build

The user has provided the output of cat CMakeLists.txt | grep 'rocblas' from the gst.so directory. This output shows a few lines related to rocblas in the CMakeLists.txt file.

Based on the output, the relevant lines are:
CMake

set(ROCBLAS_LIB "rocblas")
if(NOT EXISTS ${ROCBLAS_INC_DIR}/${ROCBLAS_MODULE_NM_PREFIX}rocblas.h)

These lines suggest that the CMakeLists.txt file is trying to find rocBLAS, but it seems to be doing so in a custom way, rather than using the standard find_package(rocblas REQUIRED) command.  It's checking for the existence of the header file rocblas.h in a directory defined by ROCBLAS_INC_DIR.

cmake --fresh -B ./build \
    -DCMAKE_PREFIX_PATH=/opt/rocm_sdk_612 \
    -DAMDDeviceLibs_DIR=/opt/rocm_sdk_612/lib64/cmake/AMDDeviceLibs/ \
    -Damd_comgr_DIR=/opt/rocm_sdk_612/lib64/cmake/amd_comgr/ \
    -Dhsa-runtime64_DIR=/opt/rocm_sdk_612/lib64/cmake/hsa-runtime64/ \
    -DROCM_PATH=/opt/rocm_sdk_612 \
    -DCMAKE_INSTALL_PREFIX=/opt/rocm_sdk_612 \
    -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rocm_sdk_612 \
    -Drocblas_DIR=/opt/rocm_sdk_612/lib64/cmake/rocblas \
    -Dhiprand_DIR=/opt/rocm_sdk_612/lib64/cmake/hiprand \
    -Drocrand_DIR=/opt/rocm_sdk_612/lib64/cmake/rocrand \
    -Drocm_smi_DIR=/opt/rocm_sdk_612/lib64/cmake/rocm_smi \
    -Dhipblas_DIR=/opt/rocm_sdk_612/lib64/cmake/hipblas \
    -Dhipblas-common_DIR=/opt/rocm_sdk_612/lib64/cmake/hipblas \
    -DROCBLAS_ROOT=/opt/rocm_sdk_612 \
    -DROCR_ROOT=/opt/rocm_sdk_612 \
    -DROCBLAS_LIB_DIR=/opt/rocm_sdk_612/lib64 \
    -DROCR_LIB_DIR=/opt/rocm_sdk_612/lib64
CMake Deprecation Warning at CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - 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: /usr/bin/c++ - 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
-- rocblas found
-- rocblas Version: 4.1.2
-- rocblas: Version string 4001002 For Version Check
-- ROCBLAS REORG VERSION: 4001002
-- hipblaslt found
-- hsa-runtime64 found
-- rocm_smi found
-- hiprand found
-- rocrand found
-- hipblas found
-- RVS_OS_TYPE: arch
-- RVS_OS_TYPE_NUM: 0
-- CMAKE_CURRENT_SOURCE_DIR is: /home/c/ROCmValidationSuite
-- CMAKE_BUILD_TYPE = 
-- RVS_COVERAGE = FALSE
-- RVS_BUILD_TESTS = TRUE
-- CMAKE_BINARY_DIR = /home/c/ROCmValidationSuite/build
-- CMAKE_CURRENT_SOURCE_DIR = /home/c/ROCmValidationSuite
-- RVS_DO_TRACE defined
-- CPACK_GENERATOR DEB;RPM
yaml-cpp found
CMake Deprecation Warning at CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/c/ROCmValidationSuite/build/googletest-download
[ 11%] Performing update step for 'googletest'
-- Already at requested tag: release-1.11.0
[ 22%] No patch step for 'googletest'
[ 33%] No configure step for 'googletest'
[ 44%] No build step for 'googletest'
[ 55%] No install step for 'googletest'
[ 66%] No test step for 'googletest'
[ 77%] Completed 'googletest'
[100%] Built target googletest
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


CMake Deprecation Warning at googlemock/CMakeLists.txt:45 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


CMake Deprecation Warning at googletest/CMakeLists.txt:56 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/c/ROCmValidationSuite/build/googletest-build
UT_INC /home/c/ROCmValidationSuite/build/googletest-src/googletest/include
UT_LIB /home/c/ROCmValidationSuite/build/googletest-build/lib
CMake Deprecation Warning at rvslib/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: rvslib
CMake Deprecation Warning at rvs/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: rvs
unit test: unit.rvs.1
unit test: unit.rvs.cli
unit test: unit.rvs.gpu_util
unit test: unit.rvs.lognode
unit test: unit.rvs.lognodeint
unit test: unit.rvs.lognoderec
unit test: unit.rvs.lognodestring
unit test: unit.rvs.pcie_caps
unit test: unit.rvs.thread
unit test: unit.rvs.timer
CMake Deprecation Warning at gm.so/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: gm
unit test: unit.gm.1
-- tcd.unit.gm.1 defined
-- value: UT_TCD_1
conf test: ttp.conf.log.gm.single
CMake Deprecation Warning at gpup.so/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: gpup
unit test: unit.gpup.nonameaction
conf test: ttp.conf.log.gpup.single
CMake Deprecation Warning at gst.so/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: gst
ERROR: rocBLAS library can't be found under specified path. Please set ROCBLAS_LIB_DIR path. Current value is : /opt/rocm_sdk_612/lib
CMake Deprecation Warning at iet.so/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: iet
ERROR: rocBLAS library can't be found under specified path. Please set ROCBLAS_LIB_DIR path. Current value is : /opt/rocm_sdk_612/lib
CMake Deprecation Warning at pebb.so/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: pebb
ERROR: ROC Runtime libraries can't be found under specified path. Please set ROCR_LIB_DIR path. Current value is : /opt/rocm_sdk_612/lib
CMake Deprecation Warning at peqt.so/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: peqt
conf test: ttp.conf.log.peqt.single
CMake Deprecation Warning at pesm.so/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: pesm
unit test: unit.pesm.actionbase
unit test: unit.pesm.sanity
conf test: ttp.conf.log.pesm.1
CMake Deprecation Warning at pbqt.so/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: pbqt
ERROR: ROC Runtime libraries can't be found under specified path. Please set ROCR_LIB_DIR path. Current value is : /opt/rocm_sdk_612/lib
CMake Deprecation Warning at rcqt.so/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: rcqt
CMake Deprecation Warning at smqt.so/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: smqt
unit test: unit.smqt.1
conf test: ttp.conf.log.smqt.single
CMake Deprecation Warning at mem.so/CMakeLists.txt:25 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: mem
ERROR: rocBLAS library can't be found under specified path. Please set ROCBLAS_LIB_DIR path. Current value is : /opt/rocm_sdk_612/lib
CMake Deprecation Warning at babel.so/CMakeLists.txt:25 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: babel
ERROR: rocBLAS library can't be found under specified path. Please set ROCBLAS_LIB_DIR path. Current value is : /opt/rocm_sdk_612/lib
CMake Deprecation Warning at perf.so/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: perf
ERROR: rocBLAS library can't be found under specified path. Please set ROCBLAS_LIB_DIR path. Current value is : /opt/rocm_sdk_612/lib
CMake Deprecation Warning at tst.so/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: tst
ERROR: rocBLAS library can't be found under specified path. Please set ROCBLAS_LIB_DIR path. Current value is : /opt/rocm_sdk_612/lib
CMake Deprecation Warning at testif.so/CMakeLists.txt:26 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

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


-- MODULE: testif
-- Found Doxygen: /usr/bin/doxygen (found version "1.13.2") found components: doxygen dot
-- Doxygen: /usr/bin/doxygen
-- Configuring done (1.4s)
-- Generating done (0.1s)
CMake Warning:
  Manually-specified variables were not used by the project:

    ROCBLAS_ROOT
    ROCR_ROOT
    hipblas-common_DIR


-- Build files have been written to: /home/c/ROCmValidationSuite/build


Operating System

6.13.4-arch1-1

GPU

RX 580 (gfx803)

ROCm Component

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions