naibaf7 / caffe

Caffe: a fast open framework for deep learning. With OpenCL and CUDA support.
http://caffe.berkeleyvision.org/
Other
85 stars 20 forks source link

OpenCl kernel compilation errors for android #51 #57

Closed DVEfremov closed 7 years ago

DVEfremov commented 7 years ago
naibaf7 commented 7 years ago

You can't edit cl_kernels.cpp like this, it is not persistent at the moment. Please edit the bash script that edits these files instead. https://github.com/naibaf7/caffe/blob/master/src/caffe/greentea/cl_kernels.sh

DVEfremov commented 7 years ago

Ok, applied couple of experiments related to modification of cl_kernels.sh I've modified ../src/caffe/greentea/cl_kernels.sh and ../src/caffe/greentea/cl_headers/header.cl

and build caffe as usual but can't see if cl_kernels.sh has been run

cl_kernels.cpp also wasn't modified ....

Could you suggest the right way to modify and make sure my changes applied ok to cl_kernels.cpp ?

naibaf7 commented 7 years ago

It will only be executed with the makefile scripts, not with the CMake system. It will also not work on OS X or Windows, development of that part has to happen on Linux. This is why the intermediate files are also in the github repository, even though they are supposed to be autogenerated. You have to execute it manually from the root folder before running CMake.

DVEfremov commented 7 years ago

@naibaf7 Thanks a lot! Now I see ... I've applied changes as you suggested. Also I've generated cl_kernels.cpp based on last changes as committed as well