Comments (4)
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.
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.
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.
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)
- Lots of warnings with 0.4.0. HOT 1
- examples missing HOT 2
- manager::Memory not thread safe HOT 4
- Problems with cuda_fp16 and Eigen Library HOT 13
- Test minimal required CMake version HOT 1
- Some atomic operations not defined HOT 4
- cudaGetLastError() results in infinite loop HOT 5
- threads vs elements when using the OpenMP 4.0 backend HOT 12
- build cupla as a standalone library HOT 7
- GitLab CI: test different GCC, Clang, Boost ... versions
- GitLab CI: add Clang-CUDA test
- problem with asynchronous peer to peer copy. HOT 3
- Problem with multi-Gpu single CPU kernel with CUPLA HOT 6
- cupla does not build with GCC 10 and CUDA 11 n C++17 mode HOT 5
- Using cupla alongside mallocMC HOT 2
- FAIL in matrixMul example HOT 5
- libCupla should be not forced to build as static library
- cupla examples can not be build without installing cupla HOT 1
- Math function wrappers are not sufficiently generic
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cupla.