Closed physpeach closed 2 years ago
Can you check following:
/etc/OpenCL/vendors/VC4CL.icd
exist and contain the correct path to the installed VC4CL.so library?nm -D <path/to/the>/libVC4CL.so | grep 'clCreateKernel'
?/etc/OpenCL/...
does not exist.$ nm -D /usr/local/lib/libVC4CL.so | grep 'clCreateKernel'
00151adc T clCreateKernel
00151fd0 T clCreateKernelsInProgram
/usr/local/include/vc4cc
and /usr/local/include/vc4cl-stdlib
Thank you for fast comment.
I've rebuilt and installed VC4CL for checking message.
Install the project...
-- Install configuration: "Debug"
-- Installing: /usr/local/lib/libVC4CL.so.0.4.9999
-- Up-to-date: /usr/local/lib/libVC4CL.so.1.2
-- Set runtime path of "/usr/local/lib/libVC4CL.so.0.4.9999" to "/usr/local/lib"
-- Up-to-date: /usr/local/lib/libVC4CL.so
-- Up-to-date: /usr/local/share/vc4cl/VC4CL-targets.cmake
-- Up-to-date: /usr/local/share/vc4cl/VC4CL-targets-debug.cmake
-- Installing: /usr/local/bin/v3d_info
-- Set runtime path of "/usr/local/bin/v3d_info" to "/usr/local/lib"
-- Installing: /usr/local/bin/v3d_profile
-- Set runtime path of "/usr/local/bin/v3d_profile" to "/usr/local/lib"
-- Installing: /usr/local/bin/vc4cl_dump_analyzer
-- Set runtime path of "/usr/local/bin/vc4cl_dump_analyzer" to "/usr/local/lib"
So it looks like the symbols in the VC4CL library mismatch with what clinfo expects. There are two different ways that should solve this:
-DBUILD_ICD=ON
and install it again. Now the /etc/OpenCL/...
file should exist and clinfo should be able to find the platform via the ICD loader. (the global way)LD_PRELOAD=<path/to/VC4CL/build/src/lib>/OpenCL.so
(or alternatively LD_LIBRARY_PATH=<path/to/VC4CL/build/src/lib>
). This is a symlink to the libVC4CL.so
you tried before, but with the library name that clinfo expects. (the local way)The problem has been solved. Many thanks
I have referenced mainly two links below for installing VC4CL on Raspi 3B+ (debian).
Build seems to be successful, and I can see
libVC4CL.so
. Butclinfo
returnsNumber of platforms 0
. Is there anything I am not aware of?Here's my process for building from plain debian.
This is the first time to submit a issue on Github.