Skip to content

BUILD clFFT on ROCM stack

tingxingdong edited this page Feb 7, 2017 · 3 revisions

You can build and run clFFT on [ROCM] (https://github.com/RadeonOpenCompute/ROCm) software stack starting from v1.4.

To install the development kit for OpenCL, which includes the OpenCL header files, you need

  • sudo apt-get install rocm opencl-rocm-dev

You will get a folder "/opt/rocm/opencl".

You need to set up environment variable

  • export OPENCL_ROOT=/opt/rocm/opencl

On the cmake-gui, point "OPENCL_INCLUDE_DIRS" and "OPENCL_LIBRARIES" to the corresponding ones in "/opt/rocm/opencl" instead of the default ones.

  • the other settings are exactly the same as posted in other sections

Know Issue:

  • libStatTimer.so: cannot open shared object file: No such file or directory Could not find the external timing library; timings disabled

Solution: this library is build by clFFT, too. Copy from ${MY_CLFFT_BUILD_DIR}/StatTimer/ and paste it into this same directory as your executable.

Clone this wiki locally