Files
rocm-systems/samples/2_Cookbook/22_cmake_hip_lang/README.md
T
ROCm CI Service Account 90de01adb9 SWDEV-393746 - Fix HIP sample failures-21, 22, 23 (#331)
Change-Id: Id839cf24ba5f16897428b19c0299ea781a5a6d09
2023-06-28 21:59:03 +05:30

392 B

This will test HIP language support in upstream CMake

I. Build

mkdir -p build; cd build
rm -rf *;
cmake -DCMAKE_PREFIX_PATH=/opt/rocm ..
make

II. Test

$ ./square
info: running on device
info: allocate host mem (  7.63 MB)
info: allocate device mem (  7.63 MB)
info: copy Host2Device
info: launch 'vector_square' kernel
info: copy Device2Host
info: check result
PASSED!