Files
rocm-systems/opencl
Vladislav Sytchenko ed812e304a Disable oclruntime.OCLDynamic test
This test is causing a PSDB timeout. Not all systems can support
device enqueue on rocm.

Change-Id: I55a209877288e6cc96b2426bf960fa9a431ac7c3
2020-12-14 12:30:10 -05:00
..
2020-09-23 13:04:05 -04:00
2020-03-06 14:01:21 -05:00
2020-07-22 16:07:05 -07:00
2020-04-17 14:28:24 -04:00

OpenCL™ Compatible Runtime

  • OpenCL 2.0 compatible language runtime
  • Supports offline and in-process/in-memory compilation

Getting the source code

Download the git projects using the following commands:

git clone -b master-next https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime.git

Repository branches

The repository maintains several branches. The branches that are of importance are:

  • master-next: This is the default branch.

Setup OpenCL

Copy the amdocl64.icd file to /etc/OpenCL/vendors

sudo cp api/opencl/config/amdocl64.icd /etc/OpenCL/vendors/

Building

Follow these steps:

  • Build ROCclr first. Follow the steps in the following link to build ROCclr ROCclr Readme In this step, $OPENCL_DIR and $ROCclr_DIR are defined.

  • Building OpenCL Run these commands:

cd "$OPENCL_DIR"
mkdir -p build; cd build
cmake -DUSE_COMGR_LIBRARY=ON -DCMAKE_PREFIX_PATH="$ROCclr_DIR/build;/opt/rocm/" ..
make -j$(nproc)

Note: For release build, add "-DCMAKE_BUILD_TYPE=Release" to the cmake command line.


OpenCL™ is registered Trademark of Apple