-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hello!
Hopefully it's just a dumb error on my part.
I cloned CLBlast, JOCLCommon and JOCLBlast inside an empty directory:
git clone https://github.com/CNugteren/CLBlast.git
git clone https://github.com/gpu/JOCLCommon.git
git clone https://github.com/gpu/JOCLBlast.git
I go to CLBlast, I create a build directory and cd to it, then I cmake .., make and finally sudo make install without any problem.
Then I go to the JOCLBlast directory and I create a nativeLibraries/apple/x86_64 directory. I copy the libclblast.dylib library from CLBlast/build/ to this directory.
Then I run these commands, which I've been using for the past builds:
cmake -DCLBlast_LIBRARY:FILEPATH=/usr/local/lib/libclblast.dylib -DCLBLAST_INSTALL_DIR:FILEPATH=/usr/local/lib/
cmake --build .
mvn clean install
And, finally, I get these errors after running cmake --build .:
[ 75%] Built target JOCLCommon
[ 87%] Building CXX object CMakeFiles/JOCLBlast_1_3_0-apple-x86_64.dir/src/main/native/JOCLBlast.cpp.o
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:150:95: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
...cl_int (CL_API_CALL *clTerminateContextKHR_fn)(cl_context /* context */) CL_EXT_SUFFIX__VER...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:73:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_1_2'
#define CL_EXT_SUFFIX__VERSION_1_2 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:197:69: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
(CL_API_CALL *clReleaseDeviceEXT_fn)( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:67:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_1_1'
#define CL_EXT_SUFFIX__VERSION_1_1 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:203:68: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
(CL_API_CALL *clRetainDeviceEXT_fn)( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:67:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_1_1'
#define CL_EXT_SUFFIX__VERSION_1_1 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:218:77: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:67:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_1_1'
#define CL_EXT_SUFFIX__VERSION_1_1 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:342:48: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
...size_t* /*param_value_size_ret*/ ) CL_EXT_SUFFIX__VERSION_2_0;
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:84:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_2_0'
#define CL_EXT_SUFFIX__VERSION_2_0 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
/Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:42:10: fatal error: 'clblast_c.h' file
not found
#include <clblast_c.h>
^~~~~~~~~~~~~
5 warnings and 1 error generated.
make[2]: *** [CMakeFiles/JOCLBlast_1_3_0-apple-x86_64.dir/src/main/native/JOCLBlast.cpp.o] Error 1
make[1]: *** [CMakeFiles/JOCLBlast_1_3_0-apple-x86_64.dir/all] Error 2
make: *** [all] Error 2
Skynet-2:JOCLBlast Amherag$ cmake --build . > error.log
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:150:95: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
...cl_int (CL_API_CALL *clTerminateContextKHR_fn)(cl_context /* context */) CL_EXT_SUFFIX__VER...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:73:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_1_2'
#define CL_EXT_SUFFIX__VERSION_1_2 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:197:69: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
(CL_API_CALL *clReleaseDeviceEXT_fn)( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:67:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_1_1'
#define CL_EXT_SUFFIX__VERSION_1_1 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:203:68: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
(CL_API_CALL *clRetainDeviceEXT_fn)( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:67:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_1_1'
#define CL_EXT_SUFFIX__VERSION_1_1 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:218:77: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:67:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_1_1'
#define CL_EXT_SUFFIX__VERSION_1_1 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:342:48: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
...size_t* /*param_value_size_ret*/ ) CL_EXT_SUFFIX__VERSION_2_0;
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:84:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_2_0'
#define CL_EXT_SUFFIX__VERSION_2_0 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
/Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:42:10: fatal error: 'clblast_c.h' file
not found
#include <clblast_c.h>
^~~~~~~~~~~~~
5 warnings and 1 error generated.
make[2]: *** [CMakeFiles/JOCLBlast_1_3_0-apple-x86_64.dir/src/main/native/JOCLBlast.cpp.o] Error 1
make[1]: *** [CMakeFiles/JOCLBlast_1_3_0-apple-x86_64.dir/all] Error 2
make: *** [all] Error 2
Skynet-2:JOCLBlast Amherag$
Skynet-2:JOCLBlast Amherag$
Skynet-2:JOCLBlast Amherag$ ls
CMakeCache.txt LICENSE error.log target
CMakeFiles Makefile nativeLibraries
CMakeLists.txt README.md pom.xml
JOCLCommon cmake_install.cmake src
Skynet-2:JOCLBlast Amherag$ cmake --build . > error.log
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:150:95: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
...cl_int (CL_API_CALL *clTerminateContextKHR_fn)(cl_context /* context */) CL_EXT_SUFFIX__VER...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:73:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_1_2'
#define CL_EXT_SUFFIX__VERSION_1_2 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:197:69: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
(CL_API_CALL *clReleaseDeviceEXT_fn)( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:67:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_1_1'
#define CL_EXT_SUFFIX__VERSION_1_1 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:203:68: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
(CL_API_CALL *clRetainDeviceEXT_fn)( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:67:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_1_1'
#define CL_EXT_SUFFIX__VERSION_1_1 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:218:77: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:67:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_1_1'
#define CL_EXT_SUFFIX__VERSION_1_1 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
In file included from /Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:37:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/native/JOCLCommon.hpp:42:
In file included from /Users/Amherag/jocl/JOCLCommon/src/main/include/CL/opencl.h:41:
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_ext.h:342:48: warning: 'weak_import'
attribute only applies to variables and functions [-Wignored-attributes]
...size_t* /*param_value_size_ret*/ ) CL_EXT_SUFFIX__VERSION_2_0;
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:84:57: note: expanded from macro
'CL_EXT_SUFFIX__VERSION_2_0'
#define CL_EXT_SUFFIX__VERSION_2_0 CL_EXTENSION_WEAK_LINK AVAILABLE_MA...
^
/Users/Amherag/jocl/JOCLCommon/src/main/include/CL/cl_platform.h:62:57: note: expanded from macro
'CL_EXTENSION_WEAK_LINK'
#define CL_EXTENSION_WEAK_LINK __attribute__((weak_import))
^
/Users/Amherag/jocl/JOCLBlast/src/main/native/JOCLBlast.cpp:42:10: fatal error: 'clblast_c.h' file
not found
#include <clblast_c.h>
^~~~~~~~~~~~~
5 warnings and 1 error generated.
make[2]: *** [CMakeFiles/JOCLBlast_1_3_0-apple-x86_64.dir/src/main/native/JOCLBlast.cpp.o] Error 1
make[1]: *** [CMakeFiles/JOCLBlast_1_3_0-apple-x86_64.dir/all] Error 2
make: *** [all] Error 2
Metadata
Metadata
Assignees
Labels
No labels