0 Replies Latest reply on Aug 17, 2011 3:48 PM by hjwu

    can't compile OpenCL program with GPUPerfAPICL

    hjwu

      Hi,

      I'm having trouble compiling the OpenCL program together with GPUPerfAPI

      I meet some error while linking the libraries

      the gcc gives me the error messages below

      can anybody tell me how to fix this?

       

      thanks

      the gcc version string is  (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2

       

       

      gcc -O0 -I./include/ -L./lib/Linx64/ -lOpenCL -lGPUPerfAPICL gpu-perf.c -o gpu-perf ./lib/Linx64//libGPUPerfAPICL.so: undefined reference to `clWaitForEvents@OPENCL_1.0' ./lib/Linx64//libGPUPerfAPICL.so: undefined reference to `clGetExtensionFunctionAddress@OPENCL_1.0' ./lib/Linx64//libGPUPerfAPICL.so: undefined reference to `clGetCommandQueueInfo@OPENCL_1.0' ./lib/Linx64//libGPUPerfAPICL.so: undefined reference to `clGetDeviceInfo@OPENCL_1.0' collect2: ld returned 1 exit status make: *** [gpu-perf] Error