Fichiers
rocm-systems/projects/hip-tests/samples/2_Cookbook/22_cmake_hip_lang
Jaydeep Patel 370b76407d SWDEV-481860 - Match malloc/hipMalloc calls with free/hipFree calls in all samples.
Change-Id: Ib44551b3f60cd90fa7158e4ed016ef5549a34ef7


[ROCm/hip-tests commit: b89a7c6201]
2024-09-04 10:32:58 -04: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!