Files
rocm-systems/samples/2_Cookbook/22_cmake_hip_lang
Rahul Manocha 76dd8ea569 SWDEV-436821 Update hip samples Readme files
Change-Id: I6bf3a72eac4a4242cb2dbf4e6eee73e0e1bef2ef
2023-12-21 14:20:44 -05:00
..
2023-12-12 17:34:07 +00:00

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!