Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined reference to `clReleaseDevice' #12

Open
dendisuhubdy opened this issue Nov 21, 2016 · 1 comment
Open

undefined reference to `clReleaseDevice' #12

dendisuhubdy opened this issue Nov 21, 2016 · 1 comment

Comments

@dendisuhubdy
Copy link

suhubdyd@venise:~/Documents/code/clRNG/src$ cmake CMakeLists.txt 
-- UNICODE feature disabled on linux                                                                                                                                                                                                                                           
-- 64bit build - FIND_LIBRARY_USE_LIB64_PATHS TRUE                                                                                                                                                                                                                             
-- Could NOT find GTest (missing:  GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)                                                                                                                                                                                         
-- Detected GNU fortran compiler.                                                                                                                                                                                                                                              
-- CMAKE_CXX_COMPILER flags: -m64 -pthread                                                                                                                                                                                                                                     
-- CMAKE_CXX_COMPILER debug flags: -g
-- CMAKE_CXX_COMPILER release flags: -O3 -DNDEBUG
-- CMAKE_CXX_COMPILER relwithdebinfo flags: -O2 -g -DNDEBUG
-- CMAKE_EXE_LINKER link flags:  
-- Configuring done
-- Generating done
-- Build files have been written to: /u/suhubdyd/Documents/code/clRNG/src
suhubdyd@venise:~/Documents/code/clRNG/src$ make
[ 16%] Built target clRNG
Linking C executable ../staging/HostOnly
CMakeFiles/HostOnly.dir/common.c.o: In function `call_with_opencl':
common.c:(.text+0x809): undefined reference to `clReleaseDevice'
collect2: error: ld returned 1 exit status
client/CMakeFiles/HostOnly.dir/build.make:112: recipe for target 'staging/HostOnly-1.0.0' failed
make[2]: *** [staging/HostOnly-1.0.0] Error 1
CMakeFiles/Makefile2:133: recipe for target 'client/CMakeFiles/HostOnly.dir/all' failed
make[1]: *** [client/CMakeFiles/HostOnly.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
@pavanky
Copy link

pavanky commented Nov 21, 2016

Do you have libOpenCL.so that supports OpenCL 1.2 ? This function is not supported in earlier versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants