d23b26f760
Rather than manually linking to the device libraries, the compiler can now handle linking with them. Allow the build to continue using old layout if the build system still uses it. Therefore maintain compatibility with ROCm 3.7 and earlier. Change-Id: Ida81775da3d0f7c2c67386a71cb057ede31a1545
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