libopencl-stub
libopencl-stub copied to clipboard
A stub opecl library that dynamically dlopen/dlsyms opencl implementations at runtime based on environment variables. Will be useful when opencl implementations are installed in non-standard pahs
Faced with problem `Missing variable is: CMAKE_C_COMPILE_OBJECT` when tried to compile this project with another Android C++ application. Found on stackoverflow: https://stackoverflow.com/a/58756668 That the easiest solution is to call `project()`...
1. we should check so_handle instead of path 2. dlsym a null handle cause unwanted result, so check so_handle again
For samsung s22 not work ?
` cl_int clGetPlatformIDs(cl_uint num_entries, cl_platform_id * platforms, cl_uint * num_platforms) { f_clGetPlatformIDs func; if(!so_handle) open_libopencl_so(); func = (f_clGetPlatformIDs) dlsym(so_handle, "clGetPlatformIDs"); if(func) { return func(num_entries, platforms, num_platforms); } else { return...