Skip to content

BUILD clFFT on ROCM stack

tingxingdong edited this page Apr 11, 2018 · 3 revisions

You can build and run clFFT on ROCM software stack.

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.

environment variable is recommended export OPENCL_ROOT=/opt/rocm/opencl

On the cmake-gui or ccmake, point "OPENCL_INCLUDE_DIRS" to "/opt/rocm/opencl" & "OPENCL_LIBRARIES" to "/opt/rocm/opencl/lib/x86_64/libOpenCL.so"

  • 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