Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCl kernel compilation errors for android #51

Closed
DVEfremov opened this issue Feb 2, 2017 · 4 comments
Closed

OpenCl kernel compilation errors for android #51

DVEfremov opened this issue Feb 2, 2017 · 4 comments

Comments

@DVEfremov
Copy link

At PR
#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
Copy link
Author

DVEfremov commented Feb 2, 2017

PR #52

@naibaf7
Copy link
Owner

naibaf7 commented Feb 2, 2017

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

@naibaf7 naibaf7 closed this as completed Feb 2, 2017
@DVEfremov
Copy link
Author

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

@DVEfremov
Copy link
Author

I've provided another PR with better solution
#57

naibaf7 pushed a commit that referenced this issue Feb 7, 2017
- add ability to disable DOUBLE SUPPORT with compilation flag
  DISABLE_DOUBLE_SUPPORT
  (hardcoded DOUBLE_SUPPORT_AVAILABLE atleast doesn't work for Mali GPU at caffe time runtime)
naibaf7 pushed a commit that referenced this issue Feb 7, 2017
- add ability to disable DOUBLE SUPPORT with compilation to cl_kernels.sh and header.cl (fix review comment)
- add generated cl_kernels.cpp (as mentioned before for MacOS and Windows users where code generation does not work at this moment)
naibaf7 added a commit that referenced this issue Feb 7, 2017
OpenCl kernel compilation errors for android #51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants