Files
rocm-systems/rocrtst/samples
Ashutosh Mishra 4827d1d4d4 Adapting HSA Changes
Following Cmake changes are in accordance to the changes in HSA / THUNK , VDI etc
These have made the code compilable now both for satic as well as dynamic libs

Change-Id: I4d8d3e2b84d6e1ea00531594522111ccbce8a87b
2020-07-21 12:06:51 -04:00
..
2018-06-08 17:58:37 -04:00
2017-05-31 09:46:06 -04:00
2020-07-21 12:06:51 -04:00
2017-05-11 14:45:45 -04:00


To build the sample, first export the following environment variables:

export ROCR_DIR=<root of RocR install; for RocR includes and libraries>
export OPENCL_DIR=<root of OpenCL install; for required clang and bitcode libs>
export OPENCL_VER=<OpenCL version; e.g., "2.0">
export TARGET_DEVICE=<GPU type; e.g., "gfx803" or "gfx900">

Next, do the following:
mkdir build
cd build
cmake ..

Finally, do the following to build the application and respective kernels:

make
make sample_kernels