0835f2e75a
* rocrtst: Updated CMakeFiles to find_package instead of hardcoded This is to support TheROCK build environment * rocrtst: Fix CMake to use find_package() instead of hardcoded ENV paths Fixed CMake style issues from previos first commit's code review * rocrtst: Fix rocrtst NUMA dependency detection to use find_package Also added handling of missing headers * rocrtst: Fix NUMA and hwloc detection for cross-platform builds --------- Co-authored-by: Shweta Khatri <shweta.khatri@amd.com>
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