Files
rocm-systems/opencl
Vladislav Sytchenko 1c16690617 SWDEV-273235 - Initial support for Windows CMake
This change is tied to the ROCclr cmake rework. ROCclr will now be built
as part of OpenCL itself.

All the dependencies on comgr and rocr have been moved into ROCclr
itself. This allows OpenCL to pull in all the required compiler/runtime
dependencies by simply linking against ROCclr. Note that ROCclr needs to
be configured from OpenCL cmake command line. If not, we will default to
LC + ROCr support.

Change-Id: I5271302d073aef8cfa617828d218c856711bf9ba
2021-05-27 13:08:12 -04:00
..
2020-03-06 14:01:21 -05:00
2020-04-17 14:28:24 -04:00
2021-02-02 13:22:37 -05:00

OpenCL™ Compatible Runtime

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

DISCLAIMER

The information contained herein is for informational purposes only, and is subject to change without notice. In addition, any stated support is planned and is also subject to change. While every precaution has been taken in the preparation of this document, it may contain technical inaccuracies, omissions and typographical errors, and AMD is under no obligation to update or otherwise correct this information. Advanced Micro Devices, Inc. makes no representations or warranties with respect to the accuracy or completeness of the contents of this document, and assumes no liability of any kind, including the implied warranties of noninfringement, merchantability or fitness for particular purposes, with respect to the operation or use of AMD hardware, software or other products described herein. No license, including implied or arising by estoppel, to any intellectual property rights is granted by this document. Terms and limitations applicable to the purchase or use of AMDs products are as set forth in a signed agreement between the parties or in AMD's Standard Terms and Conditions of Sale.

© 2020 Advanced Micro Devices, Inc. All Rights Reserved.

Getting the source code

Download the git projects using the following commands:

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

Repository branches

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

  • Main branch: This is the stable branch. It is up to date with the latest release branch, for example, if the latest ROCM release is rocm-4.1, main branch will be the repository based on this release.
  • Release branches: These are branches corresponding to each ROCM release, listed with release tags, such as rocm-4.0, rocm-4.1, etc.

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