Giter Club home page Giter Club logo

Comments (4)

psychocoderHPC avatar psychocoderHPC commented on June 3, 2024

You should not set -DALPAKA_HIP_VERSION=4.2.
Why do you set this variable?

If HIP is not found please set the environment variable CMAKE_MODULE_PATH to /opt/rocm/hip

from cupla.

jyoung3131 avatar jyoung3131 commented on June 3, 2024

Hi @psychocoderHPC - I was running without that flag for the version, but the CMakeLists file seems to complain about this not exactly matching the expected 3.5 version.

echo $CMAKE_MODULE_PATH
/opt/rocm-4.2.0/hip

cmake $CUPLA_ROOT/example/CUDASamples/matrixMul -DALPAKA_ACC_GPU_HIP_ENABLE=ON
-- Cray Programming Environment 2.7.8 C
-- Cray Programming Environment 2.7.8 CXX
CMake Warning at /ccs/home/jyoung/caar_spock/build/cupla/alpaka/cmake/alpakaCommon.cmake:30 (message):
  The HIP back-end is currently experimental.alpaka HIP backend compiled with
  clang does not support callback functions.
Call Stack (most recent call first):
  /ccs/home/jyoung/caar_spock/build/cupla/alpaka/CMakeLists.txt:85 (include)


CMake Warning at /ccs/home/jyoung/caar_spock/build/cupla/alpaka/cmake/alpakaCommon.cmake:552 (find_package):
  Could not find a configuration file for package "HIP" that is compatible
  with requested version "3.5".

  The following configuration files were considered but not accepted:

    /opt/rocm-4.2.0/hip/lib/cmake/hip/hip-config.cmake, version: 4.2.21155
    /opt/rocm-4.2.0/lib/cmake/hip/hip-config.cmake, version: 4.2.21155

from cupla.

psychocoderHPC avatar psychocoderHPC commented on June 3, 2024

It is important to set the environment variable CMAKE_MODULE_PATH to allow using the HIP CMake find scripts.

export CMAKE_MODULE_PATH=$HIP_PATH/cmake:$CMAKE_MODULE_PATH

This is only mentioned in the documentation of alpaka but will also change with the next cupla version 0.4.0.
AMD ROCm/HIP changed their scripts heavily which required to change the workflows multiple times :-(

from cupla.

jyoung3131 avatar jyoung3131 commented on June 3, 2024

Thanks! I think to follow on, this was what I ended up needing to add to run with ROCm 4.2. Otherwise, CMake was not finding the right FindHip.cmake, and I somehow ended up pulling in a different Alpaka version of this file.

export HIP_PATH=/opt/rocm-4.2.0/hip
export CMAKE_MODULE_PATH=$HIP_PATH/cmake:$CMAKE_MODULE_PATH

#Now this works as expected
cupla/buildCuplaExample> cmake $CUPLA_ROOT/example/CUDASamples/matrixMul -DALPAKA_ACC_GPU_HIP_ENABLE=ON
...
-- Found HIP: /opt/rocm-4.2.0/hip (found suitable version "4.2.21155-37cb3a34", minimum required is "3.5")
-- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS
-- Performing Test HIP_CLANG_SUPPORTS_PARALLEL_JOBS - Failed
-- ALPAKA_ACC_GPU_HIP_ENABLED
...
-- Generating done

from cupla.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.