You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am struggling to find any examples or documentation on how to use the RAJA suite if its externally installed. All the examples I find either use BLT or build RAJA while building the application.
Here is a simple CMake file.
cmake_minimum_required(VERSION 3.21)
project(saxpy VERSION 1.0 LANGUAGES CXX CUDA)
set(CMAKE_CXX_STANDARD 17)
find_package(RAJA REQUIRED)
find_package(Chai REQUIRED)
find_package(Umpire REQUIRED)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -std=c++17 -forward-unknown-to-host-compiler -arch=sm_70 -extended-lambda -restrict -keep ${CUDA_EXTRA_FLAGS}")
add_executable(saxpy saxpy.cpp)
target_link_libraries(saxpy RAJA chai umpire)
set_source_files_properties(saxpy.cpp PROPERTIES
LANGUAGE CUDA)
set_target_properties(saxpy PROPERTIES
CUDA_SEPERABLE_COMPILATION ON
CUDA_STANDARD 17
CUDA_STANDARD_REQUIRED ON)
However, I am getting the following error /usr/bin/ld: cannot find -lcuda_runtime
These are the package specs I installed with Spack on Summit with CUDA 11.7
Closing. Upon investigating the issue seems to be related to CHAI not RAJA or Umpire.
I am going to assume this is fixed for newer versions of CHAI, but if you are on older versions the following issue seems to fix the -lcuda_runtime issue.
I am struggling to find any examples or documentation on how to use the RAJA suite if its externally installed. All the examples I find either use BLT or build RAJA while building the application.
Here is a simple CMake file.
However, I am getting the following error
/usr/bin/ld: cannot find -lcuda_runtime
These are the package specs I installed with Spack on Summit with CUDA 11.7
Would greatly appreciate if I could get some help in the form of a minimal example CMake file for the CUDA/HIP backends.
The text was updated successfully, but these errors were encountered: