armnn icon indicating copy to clipboard operation
armnn copied to clipboard

File to add OpenCL lib

Open phamyphen opened this issue 8 years ago • 3 comments

Could anyone know how to solve below issues?

/usr/local/lib/libOpenCL.so: error adding symbols: File in wrong format clang60++: error: linker command failed with exit code 1 (use -v to see invocation)

phamyphen avatar Jul 05 '18 22:07 phamyphen

Hi @phamyphen some people have reported that issue before, we don't have a good fix for it yet but there is a workaround, I'll dig it out...

MatthewARM avatar Jul 06 '18 09:07 MatthewARM

@phamyphen please try removing line 271 of cmake/GlobalConfig.cmake, which should say: find_library(OPENCL_LIBRARIES OpenCL)

Then delete your build directory and re-run cmake.

This will stop it from ever finding the host system OpenCL library.

MatthewARM avatar Jul 06 '18 09:07 MatthewARM

Thanks MatthewARM. The problem is solved based on your solution.

phamyphen avatar Jul 06 '18 17:07 phamyphen