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

编译生成只是cl头文件和一些.cmake,没有生成libopencl.so的库 #272

Open
Gooddz1 opened this issue Jan 20, 2025 · 0 comments

Comments

@Gooddz1
Copy link

Gooddz1 commented Jan 20, 2025

编译生成只是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'

那么应该怎么处理

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

1 participant