Files
rocm-systems/samples/2_Cookbook/18_cmake_hip_device
Tao Sang 586165ebc2 SWDEV-294588 - Enable NV printf DTests
Enable NV printf DTests as many as possible.
Fix the bugs due to behavour difference between
Hip-Rocclr and Cuda.
Add hipLimitPrintfFifoSize.

Change-Id: I3fe6dbc35a7a140a9919df197b7885df83d28049
2021-07-20 21:22:11 -04:00
..
2021-07-08 12:51:46 -04:00
2021-07-08 12:51:46 -04:00

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!