Skip to content

Instantly share code, notes, and snippets.

ubuntu@peach:~/git/DeepCL/build$ ./deepcl_unittests tests=testlogicaloperators.Convolve_2layers_relu_Xor
args: ./deepcl_unittests --gtest_filter=testlogicaloperators.Convolve_2layers_relu_Xor
Note: Google Test filter = testlogicaloperators.Convolve_2layers_relu_Xor
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from testlogicaloperators
[ RUN ] testlogicaloperators.Convolve_2layers_relu_Xor
Xor, convolve
Using NVIDIA Corporation , OpenCL platform: NVIDIA CUDA
Using OpenCL device: GeForce 940M
ubuntu@peach:/norep/Downloads/opencv-3.1.0/build$ cat CMakeCache.txt | grep '=ON' | grep -v INTERNAL
BUILD_PACKAGE:BOOL=ON
BUILD_SHARED_LIBS:BOOL=ON
BUILD_WITH_DEBUG_INFO:BOOL=ON
BUILD_opencv_core:BOOL=ON
BUILD_opencv_imgcodecs:BOOL=ON
BUILD_opencv_imgproc:BOOL=ON
BUILD_opencv_ml:BOOL=ON
CMAKE_COLOR_MAKEFILE:BOOL=ON
CPACK_BINARY_STGZ:BOOL=ON
/*
On Windows 7, run as follows:
rem Download mnist from http://yann.lecun.com/exdb/mnist/index.html
rem decompress into c:\mnist
rem rename to change the '.' to be a '-', in the filenames
rem then, in a cmd:
call $DEEPCLDIR\dist\bin\activate.sh
deepcl_train datadir=c:\mnist numtrain=1280 numtest=1280
/*
On Windows 7, run as follows:
rem Download mnist from http://yann.lecun.com/exdb/mnist/index.html
rem decompress into c:\mnist
rem rename to change the '.' to be a '-', in the filenames
rem then, in a cmd:
call $DEEPCLDIR\dist\bin\activate.sh
deepcl_train datadir=c:\mnist numtrain=1280 numtest=1280
View
Function call failed
...e/ubuntu/torch-cl/install/share/lua/5.1/torch/Tester.lua:257: First argument should be a Table
stack traceback:
[C]: in function 'assert'
...e/ubuntu/torch-cl/install/share/lua/5.1/torch/Tester.lua:257: in function 'assertTableEq'
/home/ubuntu/torch-cl/install/share/lua/5.1/nn/test.lua:4335: in function </home/ubuntu/torch-cl/install/share/lua/5.1/nn/test.lua:4324>
[C]: in function 'xpcall'
...e/ubuntu/torch-cl/install/share/lua/5.1/torch/Tester.lua:477: in function '_pcall'
...e/ubuntu/torch-cl/install/share/lua/5.1/torch/Tester.lua:437: in function '_run'
#include <iostream>
#include <sstream>
#include <stdexcept>
using namespace std;
#include "CL/cl.h"
#include <boost/compute/core.hpp>
template<typename T>
#include <iostream>
#include <sstream>
#include <stdexcept>
using namespace std;
#include "CL/cl.h"
#include <boost/compute/core.hpp>
#include <boost/compute/iterator/buffer_iterator.hpp>
#include <boost/compute/algorithm/reverse.hpp>
#include <iostream>
#include <sstream>
#include <stdexcept>
using namespace std;
#include "CL/cl.h"
#include "greentea/libdnn.hpp"
template<typename T>
cmake_minimum_required(VERSION 2.8)
set(LIBDNN_INSTALL_DIR CACHE PATH "directory you installed libdnn to")
set(VIENNACL_DIR CACHE PATH "viennacl dir")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
add_executable(test1 test1.cpp)
target_link_libraries(test1 OpenCL)
target_link_libraries(test1 ${LIBDNN_INSTALL_DIR}/lib/libgreentea_libdnn.so)
Script started on Wed 07 Sep 2016 12:20:05 PM UTC
ubuntu@ip-172-30-1-85:~$ sudo apt-get update
sudo: unable to resolve host ip-172-30-1-85
0% [Working]
Ign http://ap-northeast-1.ec2.archive.ubuntu.com trusty InRelease