Files
rocm-systems/projects/hip-tests/samples/2_Cookbook/23_cmake_hiprtc
Rahul Manocha b821fdbfba [SWDEV-431345][SWDEV-432633] toplevel cmake for hip samples
Change-Id: If22e7e96604f184458cc6ab6bb9945152f9359e0


[ROCm/hip-tests commit: 7481de706f]
2023-12-05 11:36:15 -05:00
..

This will test linking hiprtc::hiprtc interface in cmake

I. Build

mkdir -p build; cd build
rm -rf *;
CXX="$(hipconfig -l)"/amdclang++ cmake -DCMAKE_PREFIX_PATH=/opt/rocm ..
make

II. Test

$ ./test
SAXPY test completed