Skip to content

OpenCL Backend

Kiriti Gowda edited this page Jan 23, 2024 · 1 revision

rocAL OpenCL Backend

Instructions for building rocAL with OPENCL GPU backend:

  • clone rocAL git repository

    git clone https://github.com/ROCm/rocAL.git
    
  • run the setup script to install all the dependencies required by the OPENCL GPU backend:

    cd rocAL
    python rocAL-setup.py --backend OCL
    
  • run the below commands to build rocAL with the OPENCL GPU backend:

    mkdir build-ocl
    cd build-ocl
    cmake -DBACKEND=OPENCL ../
    make -j8
    sudo make install
    

Note:

  • rocAL cannot be installed for both GPU backends in the same default folder (i.e., /opt/rocm/) if an app interested in installing rocAL with both GPU backends, then add -DCMAKE_INSTALL_PREFIX in the cmake commands to install rocAL with OPENCL and HIP backends into two separate custom folders.
  • PyPackageInstall used for rocal_pybind installation - supported only with HIP Backend
Clone this wiki locally