-
Notifications
You must be signed in to change notification settings - Fork 192
BUILD clFFT on ROCM stack
tingxingdong edited this page Apr 11, 2018
·
3 revisions
You can build and run clFFT on ROCM software stack.
sudo apt-get install rocm opencl-rocm-dev
You will get a folder /opt/rocm/opencl
.
setting 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
"
Add your build clFFT.so into environment variable. On my machine it is like:
export LD_LIBRARY_PATH=~/FFT/clFFT_BUILD/library/:${LD_LIBRARY_PATH}
- the other settings are exactly the same as posted in other sections
- 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.