Skip to content

ROCm/ROCm-OpenCL-Driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OVERVIEW

ROCm OpenCL Driver is a thin wrapper over Clang Driver API. It provides C++ interface to compilation services.

DEPRECATION NOTICE

AMD is deprecating ROCm-OpenCL-Driver. We will no longer develop any new feature in ROCm-OpenCL-Driver and we will stop maintaining it after its final release, which is planned for December 2019. If your application was developed with the ROCm-OpenCL-Driver, we would encourage you to transition it to ROCm-CompilerSupport, which provides similar functionality.

BUILDING

This project requires reasonably recent LLVM/Clang build (April 2016 trunk).

Use out-of-source CMake build and create separate directory to run CMake.

The following build steps are performed:

mkdir -p build
cd build
export LLVM_DIR=... (path to LLVM dist)
cmake -DLLVM_DIR=$LLVM_DIR ..
make
make test

This assumes that LLVM_DIR points to dist directory, so we recommend to make sure LLVM is configured with -DCMAKE_INSTALL_PREFIX=dist and 'make install' is run.