Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 33 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,42 @@
# ROCm OpenCL™ Runtime
# OpenCL™ Compatible Runtime

Please build/install ROCclr first.
- OpenCL 2.0 compatible language runtime
- Supports offline and in-process/in-memory compilation

Please view build steps here:
https://github.com/ROCm-Developer-Tools/ROCclr
## Getting the source code
Download the git projects using the following commands:

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

cd $OPENCL_DIR
## Repository branches
The repository maintains several branches. The branches that are of importance are:

mkdir -p build; cd build
- master-next: This is the default branch.

cmake -DVDI_DIR="$VDI_DIR" -DLIBVDI_STATIC_DIR="$VDI_DIR/build" ..
## Setup OpenCL
Copy the amdocl64.icd file to /etc/OpenCL/vendors

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

## Building
This is the previous commands to build OpenCL runtime.

```bash
cd $OPENCL_DIR
mkdir -p build; cd build
cmake -DVDI_DIR="$ROCclr_DIR" -DLIBVDI_STATIC_DIR="$ROCclr_DIR/build" ..
make -j$(nproc)
```

Previously, environment variable VDI_DIR was defined in [ROCclr ](https://github.com/ROCm-Developer-Tools/ROCclr). We did not use environment variable ROCclr_DIR. The cmake comand was:

```bash
cmake -DVDI_DIR="$VDI_DIR" -DLIBVDI_STATIC_DIR="$VDI_DIR/build" ..
```

---
OpenCL™ is registered Trademark of Apple