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

Closed DVEfremov closed 7 years ago

DVEfremov commented 7 years ago

At PR https://github.com/naibaf7/caffe/pull/50 I've got fix for compilation openclversion for android but at runtime rurrent opencl version fails with error:

     I0202 14:31:57.308796 23556 caffe.cpp:405] Use GPU with device ID 0
      Build Status = -2 ( Err = -11 )
      Log: error: built-in function 'native_powr' called with unsupported argument type
      error: built-in function 'native_powr' called with unsupported argument type
      error: built-in function 'native_powr' called with unsupported argument type
      error: built-in function 'native_powr' called with unsupported argument type
      error: built-in function 'native_powr' called with unsupported argument type
      error: built-in function 'native_powr' called with unsupported argument type
      error: Compiler frontend failed (error code 58)

...

      I0202 14:30:23.564226 23024 common.cpp:483] OpenCL platform: ARM: OpenCL 1.1  does not work correctly.
...
      I0202 14:30:24.277523 23024 caffe.cpp:420] Performing Forward
      ViennaCL: FATAL ERROR: Could not find kernel 'im2col_float' from program ''
      Number of kernels in program: 0
      terminate called after throwing an instance of 'viennacl::ocl::kernel_not_found'
        what():  Kernel not found
      Aborted 
...
DVEfremov commented 7 years ago

PR #52

naibaf7 commented 7 years ago

Ok, merged, but this needs to be improved in the future.

DVEfremov commented 7 years ago

Need better solution (closed by my mistake - wrong reference at commit message)

DVEfremov commented 7 years ago

I've provided another PR with better solution https://github.com/naibaf7/caffe/pull/57