Skip to content

Instantly share code, notes, and snippets.

(env3) ~/coriander/build (llvm-4.0|△2) $ rm -Rf *
(env3) ~/coriander/build (llvm-4.0|△2) $ cmake .. -DBUILD_TESTS=ON -DCLANG_HOME=/usr/local/opt/llvm-4.0 -DCOCL_SPAM=ON
-- The C compiler identification is AppleClang 8.1.0.8020042
-- The CXX compiler identification is AppleClang 8.1.0.8020042
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
~/git-local/CLBlast/build (master|✔) $ lldb ./clblast_test_xgemv
(lldb) target create "./clblast_test_xgemv"
Current executable set to './clblast_test_xgemv' (x86_64).
(lldb) run -device 1
Process 727 launched: './clblast_test_xgemv' (x86_64)
* Options given/available:
-platform 0 [=default]
-device 1 [=default]
-full_test [false]
$ clinfo
Number of platforms 1
Platform Name Apple
Platform Vendor Apple
Platform Version OpenCL 1.2 (Mar 6 2017 20:53:28)
Platform Profile FULL_PROFILE
Platform Extensions cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event
Platform Name Apple
Number of devices 3
args: ./easycl_unittests --gtest_filter=-SLOW*
Note: Google Test filter = -SLOW*
[==========] Running 63 tests from 25 test cases.
[----------] Global test environment set-up.
[----------] 1 test from testscalars
[ RUN ] testscalars.test1
found opencl library
Using Apple , OpenCL platform: Apple
Using OpenCL device: Intel(R) HD Graphics 530
-156 -155 -154 -153 -152
CLBlast: OpenCL error: clEnqueueNDRangeKernel: -54
* Options given/available:
-platform 0 [=default]
-device 1
-full_test [false]
-verbose [false]
-cblas 1 [=default]
* Running on OpenCL device 'Intel(R) HD Graphics 530'.
#include "EasyCL/EasyCL.h"
#include <iostream>
#include <stdexcept>
#include <cstddef>
#include "cocl/cocl.h"
using namespace std;
#include "EasyCL/EasyCL.h"
#include <iostream>
#include <stdexcept>
#include <cstddef>
#include "cocl/cocl.h"
using namespace std;
#include "EasyCL/EasyCL.h"
#include <iostream>
#include <stdexcept>
#include "cocl/cocl.h"
using namespace std;
string kernelSource = R"(
#include "EasyCL/EasyCL.h"
#include <iostream>
#include <stdexcept>
#include "cocl/cocl.h"
using namespace std;
string kernelSource = R"(
#include "EasyCL/EasyCL.h"
#include <iostream>
#include <stdexcept>
#include "cocl/cocl.h"
using namespace std;
string kernelSource = R"(