Files
rocm-systems/samples/2_Cookbook/18_cmake_hip_device/README.md
T
Tao Sang 818aa18d59 SWDEV-292273 - Add cmake tests
Add test on CXX and Fortran build in cmake.
Add test on hip::device interface linking in cmake.

Change-Id: I3fe6dba05a7a140a9a19df107b7885df83d28042
2021-07-08 12:51:46 -04:00

401 B

This will test linking hip::device interface in cmake

I. Build mkdir -p build; cd build rm -rf *; CXX=hipconfig -l/clang++ cmake .. make

II. Test $ ./test_cpp info: running on device Vega 20 [Radeon Pro Vega 20] 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!