Skip to content

Building pSZ with HIP #86

@JieyangChen7

Description

@JieyangChen7

I have been trying to build pSZ with HIP backend using CMAKE, but I have run into some issues. It seems some files are missing, or the wrong directories are used by the build system. Is there a workable build script or branch I can use? Thanks!

Currenty, I'm using the following CMake commands:

cmake \
      -DCMAKE_INSTALL_PREFIX=install \
      -DCMAKE_BUILD_TYPE=Release \
      -DPSZ_BACKEND=HIP \
      -DCMAKE_HIP_ARCHITECTURES="gfx90a" \
      -DBUILD_TESTING=OFF\
      -B build -S .
cmake --build build -j $1
cmake --install build
[psz::info] HIP-ROCm backend has been selected.
[psz::info] rocthrust FOUND
[psz::info] ${rocthrust_INCLUDE_DIRS}: /opt/rocm-6.3.1/include
[psz::info] ${rocthrust_LIBRARIES}: roc::rocthrust
[psz::info] rocprim FOUND
[psz::info] ${rocprim_INCLUDE_DIRS}: /opt/rocm-6.3.1/include
[psz::info] ${rocprim_LIBRARIES}: roc::rocprimroc::rocprim_hip
[psz::info] hiprand FOUND
[psz::info] ${hiprand_INCLUDE_DIRS}: /opt/rocm-6.3.1/include
[psz::info] ${hiprand_LIBRARIES}: hip::hiprand
[psz::info] rocrand FOUND
[psz::info] ${rocrand_INCLUDE_DIRS}: /opt/rocm-6.3.1/include
[psz::info] ${rocrand_LIBRARIES}: roc::rocrand
CMake Error: File /ccs/home/jieyang/dev/cuSZ/src/cusz_version.h.in does not exist.
CMake Error at cmake/hip.cmake:41 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:40 (include)


CMake Error: File /ccs/home/jieyang/dev/cuSZ/CUSZConfig.cmake.in does not exist.
CMake Error at /autofs/nccs-svm1_sw/frontier/spack-envs/core-24.07/opt/gcc-7.5.0/cmake-3.27.9-pyxnvhiskwepbw5itqyipzyhhfw3yitk/share/cmake-3.27/Modules/CMakePackageConfigHelpers.cmake:344 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  cmake/hip.cmake:136 (configure_package_config_file)
  CMakeLists.txt:40 (include)


[psz::info] ${CMAKE_VERSION}: 3.27.9
[psz::info] ${CMAKE_C_STANDARD}$: 
[psz::info] ${CMAKE_C_COMPILER}$: /opt/rocm-6.3.1/bin/amdclang
[psz::info] ${CMAKE_C_COMPILER_ID}$: Clang
[psz::info] ${CMAKE_C_COMPILER_VERSION}$: 18.0.0
[psz::info] ${CMAKE_CXX_STANDARD}$: 
[psz::info] ${CMAKE_CXX_COMPILER}$: /opt/rocm-6.3.1/bin/amdclang++
[psz::info] ${CMAKE_CXX_COMPILER_ID}$: Clang
[psz::info] ${CMAKE_CXX_COMPILER_VERSION}$: 18.0.0
[psz::info] ${CMAKE_HIP_STANDARD}: 
[psz::info] ${CMAKE_HIP_COMPILER}: /opt/rocm-6.3.1/lib/llvm/bin/clang++
[psz::info] ${CMAKE_HIP_COMPILER_ID}: Clang
[psz::info] ${CMAKE_HIP_COMPILER_VERSION}: 18.0.0
[psz::info] ${CMAKE_HIP_ARCHITECTURES}: gfx90a
-- Configuring incomplete, errors occurred!
gmake: Makefile: No such file or directory
gmake: *** No rule to make target 'Makefile'.  Stop.
CMake Error: Error processing file: /ccs/home/jieyang/dev/cuSZ/build/cmake_install.cmake

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions