GithubHelp home page GithubHelp logo

rocclr's Introduction

ROCclr - Radeon Open Compute Common Language Runtime

ROCclr is a virtual device interface that compute runtimes interact with to different backends such as ROCr or PAL This abstraction allows runtimes to work on Windows as well as on Linux without much effort.

To build:

Prerequisites

Install mesa-common-dev

Either build or install comgr & clang

git clone https://github.com/ROCm-Developer-Tools/ROCclr.git

export VDI_DIR="$(readlink -f ROCclr)"

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

export OPENCL_DIR="$(readlink -f ROCm-OpenCL-Runtime)"

cd ../ROCclr

mkdir -p build; cd build

cmake -DOPENCL_DIR="$OPENCL_DIR" -DCMAKE_INSTALL_PREFIX=/opt/rocm/vdi ..

make

For release build, add "-DCMAKE_BUILD_TYPE=Release" to the cmake command line. This make 10% difference in some benchmark test.

(Optional) Build the HIP runtime

git clone -b master-next https://github.com/ROCm-Developer-Tools/HIP.git

export HIP_DIR="$(readlink -f hip)"

cd "$HIP_DIR"

mkdir -p build; cd build

cmake -DHIP_COMPILER=clang -DHIP_PLATFORM=vdi -DVDI_DIR="$VDI_DIR" -DLIBVDI_STATIC_DIR="$VDI_DIR/build" ..

make

rocclr's People

Contributors

chaunceyhui avatar chrispaquot avatar gandryey avatar jujiang-del avatar kjayapra-amd avatar lmoriche avatar pghafari avatar saleelk avatar slinder1 avatar ssahasra avatar vsytch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.