Hello all! I'm using MacBook Air on M1 and try to run darknet on OpenCL.
I've installed OpenCL (version 1.2) and clBLAS using brew install.
This is what I get after cmake:
CMake Warning at CMakeLists.txt:9 (find_package):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.
Could not find a package configuration file provided by "OpenCV" with any
of the following names:
OpenCVConfig.cmake
opencv-config.cmake
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
"OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
provides a separate development package or SDK, be sure it has been
installed.
Despite it, the building goes successfully, but the compilation is not.
[100%] Linking CXX executable darknet
ld: warning: ignoring file ../darknet_cl/clBLAS/libclBLAS.so, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 )
Undefined symbols for architecture x86_64:
"_clblasSetup", referenced from:
CLWarpper::CLWarpper(int) in cl_warpper.cpp.o
CLWarpper::CLWarpper(int) in cl_warpper.cpp.o
CLWarpper::CLWarpper() in cl_warpper.cpp.o
CLWarpper::CLWarpper() in cl_warpper.cpp.o
CLWarpper::CLWarpper(_cl_platform_id, _cl_device_id) in cl_warpper.cpp.o
CLWarpper::CLWarpper(_cl_platform_id, _cl_device_id) in cl_warpper.cpp.o
CLWarpper::createForIndexedGpu(int) in cl_warpper.cpp.o
...
"_clblasSgemm", referenced from:
gemm_gpu(int, int, int, int, int, float, CLArray, int, CLArray, int, float, CLArray, int) in gemm.cpp.o
"_clblasTeardown", referenced from:
CLWarpper::~CLWarpper() in cl_warpper.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: [darknet] Error 1
make[1]: [CMakeFiles/darknet.dir/all] Error 2
make: *** [all] Error 2
Hello all! I'm using MacBook Air on M1 and try to run darknet on OpenCL. I've installed OpenCL (version 1.2) and clBLAS using brew install.
This is what I get after
cmake
:CMake Warning at CMakeLists.txt:9 (find_package): By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OpenCV", but CMake did not find one.
Could not find a package configuration file provided by "OpenCV" with any of the following names:
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set "OpenCV_DIR" to a directory containing one of the above files. If "OpenCV" provides a separate development package or SDK, be sure it has been installed.
Despite it, the building goes successfully, but the compilation is not. [100%] Linking CXX executable darknet ld: warning: ignoring file ../darknet_cl/clBLAS/libclBLAS.so, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ) Undefined symbols for architecture x86_64: "_clblasSetup", referenced from: CLWarpper::CLWarpper(int) in cl_warpper.cpp.o CLWarpper::CLWarpper(int) in cl_warpper.cpp.o CLWarpper::CLWarpper() in cl_warpper.cpp.o CLWarpper::CLWarpper() in cl_warpper.cpp.o CLWarpper::CLWarpper(_cl_platform_id, _cl_device_id) in cl_warpper.cpp.o CLWarpper::CLWarpper(_cl_platform_id, _cl_device_id) in cl_warpper.cpp.o CLWarpper::createForIndexedGpu(int) in cl_warpper.cpp.o ... "_clblasSgemm", referenced from: gemm_gpu(int, int, int, int, int, float, CLArray, int, CLArray, int, float, CLArray, int) in gemm.cpp.o "_clblasTeardown", referenced from: CLWarpper::~CLWarpper() in cl_warpper.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [darknet] Error 1 make[1]: [CMakeFiles/darknet.dir/all] Error 2 make: *** [all] Error 2
Could you please help me to solve this issue?