We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
编译生成只是cl头文件和一些.cmake,没有生成libopencl.so的库。在调用这个的时候,报了
/usr/bin/ld: main.cpp:(.text+0x350): undefined reference to `clGetDeviceIDs' /usr/bin/ld: main.cpp:(.text+0x378): undefined reference to `clCreateContext' /usr/bin/ld: main.cpp:(.text+0x398): undefined reference to `clCreateCommandQueue' /usr/bin/ld: main.cpp:(.text+0x3bc): undefined reference to `clCreateProgramWithSource' /usr/bin/ld: main.cpp:(.text+0x3fc): undefined reference to `clBuildProgram' /usr/bin/ld: main.cpp:(.text+0x430): undefined reference to `clGetProgramBuildInfo' /usr/bin/ld: main.cpp:(.text+0x460): undefined reference to `clGetProgramBuildInfo' /usr/bin/ld: main.cpp:(.text+0x498): undefined reference to `clCreateKernel' /usr/bin/ld: main.cpp:(.text+0x4c0): undefined reference to `clCreateBuffer' /usr/bin/ld: main.cpp:(.text+0x4e8): undefined reference to `clCreateBuffer'
那么应该怎么处理
The text was updated successfully, but these errors were encountered:
No branches or pull requests
编译生成只是cl头文件和一些.cmake,没有生成libopencl.so的库。在调用这个的时候,报了
那么应该怎么处理
The text was updated successfully, but these errors were encountered: