AnsweredAssumed Answered

Linking clFFT

Question asked by dns.on.gpu on Feb 27, 2015
Latest reply on Feb 27, 2015 by dns.on.gpu

Hello,

 

I am new to ocl. I am running an HD 7950 and trying out various tests to see if

I can speed up my fluid flow simulations which are in fp64.

 

Basic ocl  tests are ok, but I got stuck with the clFFTs. With the LD_LIBRARY_PATH

pointing to where libclFFT.so and its variants are found, I get the following:

 

~/ocl >gcc -I /home/aa/Downloads/ocl_ftt/src/clFFT-2.2/src/include -I /opt/AMDAPPSDK-3.0-0-Beta/include FFT.c -lOpenCL

FFT.c: In function ‘main’:

FFT.c:31:5: warning: ‘clCreateCommandQueue’ is deprecated (declared at /opt/AMDAPPSDK-3.0-0-Beta/include/CL/cl.h:1359) [-Wdeprecated-declarations]

     queue = clCreateCommandQueue( ctx, device, 0, &err );

     ^

/tmp/ccHPMxN1.o: In function `main':

FFT.c:(.text+0x171): undefined reference to `clfftSetup'

FFT.c:(.text+0x227): undefined reference to `clfftCreateDefaultPlan'

FFT.c:(.text+0x23e): undefined reference to `clfftSetPlanPrecision'

FFT.c:(.text+0x25a): undefined reference to `clfftSetLayout'

FFT.c:(.text+0x271): undefined reference to `clfftSetResultLocation'

FFT.c:(.text+0x297): undefined reference to `clfftBakePlan'

FFT.c:(.text+0x2e9): undefined reference to `clfftEnqueueTransform'

FFT.c:(.text+0x374): undefined reference to `clfftDestroyPlan'

FFT.c:(.text+0x384): undefined reference to `clfftTeardown'

collect2: error: ld returned 1 exit status

~/ocl >

 

 

FFT.c is the example from   github.com/clMathLibraries/clFFT.

 

Can anyone suggest what I am missing?

 

Thank you.

--

Outcomes