Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
args: ./deepcl_unittests --gtest_filter=-DATA*:SLOW*
Note: Google Test filter = -DATA*:SLOW*
[==========] Running 158 tests from 29 test cases.
[----------] Global test environment set-up.
[----------] 7 tests from testClBlas
[ RUN ] testClBlas.basic
DEBUG TANGUY: 18200632Couldnt find OpenCL-enabled GPU: No OpenCL-enabled GPUs found
Trying for OpenCL-enabled CPU
Using Vivante Corporation , OpenCL platform: Vivante OpenCL Platform
Using OpenCL device: Vivante OpenCL Device
>>>>>>>> ./clinfo Starting...
Available platforms: 1
Platform ID: 0
CL_PLATFORM_NAME: Vivante OpenCL Platform
CL_PLATFORM_PROFILE: EMBEDDED_PROFILE
CL_PLATFORM_VERSION: OpenCL 1.1
CL_PLATFORM_VENDOR: Vivante Corporation
@Mezzano
Mezzano / bash
Created August 1, 2016 10:09
Trying simple opencl code
imx6demo:~/opencl/simple_opencl # g++ -o simple simple.cpp -lOpenCL
simple.cpp: In function ‘int main(int, char**)’:
simple.cpp:90:19: error: ‘exit’ was not declared in this scope
exit(-1);
^
imx6demo:~/opencl/simple_opencl # ls
simple.cpp
imx6demo:~/opencl/simple_opencl # vi simple.cpp
imx6demo:~/opencl/simple_opencl # g++ -o simple simple.cpp -lOpenCL
/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8/../../../libOpenCL.so: undefined reference to `gcKERNEL_FUNCTION_GetName'
#include <stdio.h>
#include <stdlib.h>
#include <CL/cl.h>
//
// OpenCL source code
const char* OpenCLSource[] = {
"__kernel void VectorAdd(__global int* c, __global int* a,__global int* b)",
"{",
" // Index of the elements to add \n",
" unsigned int n = get_global_id(0);",
`I0811 17:23:27.085489 11147 layer_factory.hpp:78] Creating layer mnist
I0811 17:23:27.088057 11147 net.cpp:101] Creating Layer mnist
I0811 17:23:27.088192 11147 net.cpp:431] mnist -> data
I0811 17:23:27.088428 11147 net.cpp:431] mnist -> label
I0811 17:23:27.088680 11154 db_lmdb.cpp:35] Opened lmdb examples/mnist/mnist_train_lmdb
I0811 17:23:27.089092 11147 data_layer.cpp:41] output data size: 64,1,28,28
F0811 17:23:27.091882 11147 syncedmem.cpp:263] Check failed: mapped_ptr == cpu_ptr_ (0x65f06000 vs. 0x10b2000) Device claims it support zero copy but failed to create correct user ptr buffer
*** Check failure stack trace: ***
@ 0x76b5bc24 (unknown)
Setting to use device 0
Build Status = -2 ( Err = -11 )
Log: (1387:0) : error : atomic function "atomic_cmpxchg" not supported
Sources: #ifndef __OPENCL_VERSION__
#define __kernel
#define __global
#define __constant
#define __local
#define get_global_id(x) 0
@Mezzano
Mezzano / gist:bb7384cb00f40c6272e24a0af7099bba
Last active August 29, 2016 16:03
caffe make runtest -j4
iCar-G3-446:/dev/disk/mounted/sda1/opencl/caffe # make runtest -j4
CXX/LD -o .build_release/test/test_all.testbin src/caffe/test/test_caffe_main.cpp
In file included from ../caffe_requirements/ViennaCL-1.7.1/viennacl/scheduler/preset.hpp:21:0,
from ../caffe_requirements/ViennaCL-1.7.1/viennacl/linalg/opencl/kernels/vector.hpp:25,
from ../caffe_requirements/ViennaCL-1.7.1/viennacl/linalg/opencl/vector_operations.hpp:35,
from ../caffe_requirements/ViennaCL-1.7.1/viennacl/linalg/vector_operations.hpp:39,
from ../caffe_requirements/ViennaCL-1.7.1/viennacl/vector.hpp:33,
from ./include/caffe/greentea/greentea.hpp:40,
from ./include/caffe/common.hpp:25,
from ./include/caffe/blob.hpp:8,
[ 212.600191] [galcore]: AXI BUS ERROR
[ 212.600199] GPU[0](ChipModel=0x2000 ChipRevision=0x5108):
[ 212.601277] **************************
[ 212.601283] *** GPU STATE DUMP ***
[ 212.601286] **************************
[ 212.601291] axi = 0x0000034F
[ 212.601295] idle = 0x7FFFFFF6
[ 212.601299] FE not idle
[ 212.601304] SH not idle
[ 212.601308] DMA appears to be stuck at this address:
iCar-G3-446:/dev/disk/mounted/sda1/opencl/caffe_requirements/CLBlast/build # ctest
Test project /dev/disk/mounted/sda1/opencl/caffe_requirements/CLBlast/build
Start 1: clblast_test_xswap
1/41 Test #1: clblast_test_xswap ............... Passed 11.79 sec
Start 2: clblast_test_xscal
2/41 Test #2: clblast_test_xscal ............... Passed 10.25 sec
Start 3: clblast_test_xcopy
3/41 Test #3: clblast_test_xcopy ............... Passed 11.15 sec
Start 4: clblast_test_xaxpy
4/41 Test #4: clblast_test_xaxpy ...............***Failed 11.47 sec
iCar-G3-446:/dev/disk/mounted/sda1/opencl/caffe_requirements/CLBlast/build # ./clblast_test_xgemm
* Options given/available:
-platform 0 [=default]
-device 0 [=default]
-full_test [false]
-verbose [false]
-cblas 1 [=default]
* Running on OpenCL device 'Vivante OpenCL Device'.