Skip to content

Instantly share code, notes, and snippets.

@skn123
skn123 / HelloWorld.cpp
Created July 18, 2018 05:45
Workaround for AMD-SI cards
//
// Book: OpenCL(R) Programming Guide
// Authors: Aaftab Munshi, Benedict Gaster, Timothy Mattson, James Fung, Dan Ginsburg
// ISBN-10: 0-321-74964-2
// ISBN-13: 978-0-321-74964-2
// Publisher: Addison-Wesley Professional
// URLs: http://safari.informit.com/9780132488006/
// http://www.openclprogrammingguide.com
//
naths@naths-System-Product-Name:~/build/caffe_virgin$ make -j16
[ 0%] Generating macros source (python -> C++).
[ 0%] Generating test macros source (python -> C++).
[ 1%] Running C++/Python protocol buffer compiler on /home/naths/sandbox/caffe/src/caffe/proto/caffe.proto
[ 1%] Generating layer creator source (python -> C++).
[ 1%] Generating blob creator source (python -> C++).
[ 1%] Generating quantizer creator source (python -> C++).
Scanning dependencies of target pre_build
[ 2%] Linking CXX static library ../../lib/libpre_build.a
[ 2%] Built target pre_build
/home/naths/sandbox/caffe_copy/src/caffe/layers/conv_layer_fft.cpp:402:15: error:
no member named 'backward_cpu_bias' in
'caffe::ConvolutionLayerFFT<caffe::half_fp, caffe::half_fp,
caffe::half_fp>'
this->backward_cpu_bias(bias_diff, top_diff + n * this->top_dim_);
~~~~ ^
/home/naths/sandbox/caffe_copy/src/caffe/layers/conv_layer_fft.cpp:446:30: note:
in instantiation of member function
'caffe::ConvolutionLayerFFT<caffe::half_fp, caffe::half_fp,
caffe::half_fp>::Backward_cpu' requested here
@skn123
skn123 / gist:139d7eac5aa4264278054462056c450e
Created June 14, 2018 04:14
caffe opencl build error
[ 0%] Running C++/Python protocol buffer compiler on /home/naths/sandbox/caffe/src/caffe/proto/caffe.proto
[ 0%] Generating test macros source (python -> C++).
[ 0%] Generating macros source (python -> C++).
[ 1%] Generating blob creator source (python -> C++).
[ 1%] Generating layer creator source (python -> C++).
[ 1%] Generating quantizer creator source (python -> C++).
Scanning dependencies of target pre_build
[ 2%] Linking CXX static library ../../lib/libpre_build.a
Scanning dependencies of target caffeproto
[ 2%] Built target pre_build
Scanning dependencies of target deepcl_gtest
Scanning dependencies of target easycl_delete_stamp
[ 0%] Built target easycl_delete_stamp
[ 1%] Building CXX object CMakeFiles/deepcl_gtest.dir/thirdparty/gtest/gtest-all.cc.o
Scanning dependencies of target EasyCL-external
[ 1%] Creating directories for 'EasyCL-external'
[ 1%] No download step for 'EasyCL-external'
[ 2%] No patch step for 'EasyCL-external'
[ 2%] No update step for 'EasyCL-external'
[ 3%] Performing configure step for 'EasyCL-external'
naths@naths-System-Product-Name:~/build/tinydnn$ make
Scanning dependencies of target example_deconv_train
[ 6%] Building CXX object examples/CMakeFiles/example_deconv_train.dir/deconv/train.cpp.o
In file included from /home/naths/srcs/tiny-dnn/tiny_dnn/util/util.h:45:0,
from /home/naths/srcs/tiny-dnn/tiny_dnn/lossfunctions/loss_function.h:9,
from /home/naths/srcs/tiny-dnn/tiny_dnn/network.h:24,
from /home/naths/srcs/tiny-dnn/tiny_dnn/tiny_dnn.h:11,
from /home/naths/srcs/tiny-dnn/examples/deconv/train.cpp:9:
/home/naths/srcs/tiny-dnn/third_party/CLCudaAPI/clpp11.h: In constructor ‘CLCudaAPI::Queue::Queue(const CLCudaAPI::Context&, const CLCudaAPI::Device&)’:
/home/naths/srcs/tiny-dnn/third_party/CLCudaAPI/clpp11.h:430:19: warning: ‘_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)’ is deprecated [-Wdeprecated-declarations]
admin@spin:~/srcs/tf-coriander$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: tensorflow/contrib/cmake/CMakeLists.txt
modified: tensorflow/contrib/cmake/external/eigen.cmake
modified: tensorflow/workspace.bzl