mpicbg-scicomp / gearshifft

Benchmark Suite for Heterogenuous FFT Implementations
Apache License 2.0
34 stars 9 forks source link

clfft not found #117

Closed psteinb closed 6 years ago

psteinb commented 6 years ago

with 48e9da1bd1befb0d15143e815f0954818a004817 I see problems in the cmake setup to find OpenCL and/or CLFFT.

$ CXX=`which g++` CC=`which gcc` cmake -DCLFFT_ROOT=/home/steinbac/software/clfft/2.12.2/ -DBOOST_ROOT=/sw/apps/boost/1.63.0/ ../
#...
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - not found
-- Looking for CL_VERSION_1_2
-- Looking for CL_VERSION_1_2 - found
-- Could NOT find OpenCL (missing: OpenCL_LIBRARY) (found version "1.2")
#...

I checked with cmake 3.5.2, 3.7.2 and 3.9.2 and the problem prevails.

tdd11235813 commented 6 years ago

Have you tried using

export CMAKE_PREFIX_PATH=/home/steinbac/software/clfft/2.12.2/:/sw/apps/boost/1.63.0/:$CMAKE_PREFIX_PATH

CMAKE_PREFIX_PATH is the preferred way for setting up cmake environments. ax3l drew my attention to that here.

What I am confused about is that the OpenCL Version 1.2 is found, but right on the next line it complains about missing OpenCL library. Maybe you can check with ccmake, if OpenCL_Library is empty. If so, you have to provide the OpenCL path to cmake as well.

tdd11235813 commented 6 years ago

my variables look like this (copied from ccmake . in the build dir):

...
OpenCL_INCLUDE_DIR               /sw/taurus/libraries/cuda/8.0.61/include
OpenCL_LIBRARY                   /usr/lib64/libOpenCL.so
ax3l commented 6 years ago

OpenCL and clFFT are now also supported in spack builds :) https://github.com/spack/spack/pull/6441

tdd11235813 commented 6 years ago

@psteinb can we close this issue? With the cmake refactorization this become obsolete. spack will be another part, I'll update it when we release 0.4.0.

psteinb commented 6 years ago

yes. let's proceed.