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

error Linux opencl AMD GPU series and solution #28

Closed
anarkrypto opened this issue Dec 31, 2020 · 0 comments · Fixed by #29
Closed

error Linux opencl AMD GPU series and solution #28

anarkrypto opened this issue Dec 31, 2020 · 0 comments · Fixed by #29

Comments

@anarkrypto
Copy link

anarkrypto commented Dec 31, 2020

Even after installing the dependencies + the amd driver pro for my AMD GPU RX 570 + mesa-opencl-icd
I was unable to use the nano-worker-server in my Ubuntu (18.04, 18.10, 20.04 ). The error was as follows:

thread 'main' panicked at 'Failed to create GPU from string "00:00": 

###################### OPENCL PROGRAM BUILD DEBUG OUTPUT ######################

input.cl:37:18: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:45:18: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:62:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:69:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:77:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:84:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:102:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:115:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:132:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:137:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:147:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:162:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:182:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:245:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:255:2: error: implicit declaration of function 'printf' is invalid in OpenCL
input.cl:255:2: note: did you mean 'rint'?
/usr/include/clc/math/unary_decl.inc:1:39: note: 
'rint' declared here
/usr/include/clc/math/rint.h:2:24: note: expanded from macro '__CLC_FUNCTION'
input.cl:264:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:295:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
input.cl:325:1: error: OpenCL C version 1.1 does not support the 'static' storage class specifier
###############################################################################

', src/main.rs:509:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Until I finally found the solution: ROCm

Here is the tutorial for Linux:
https://rocmdocs.amd.com/en/latest/deploy/linux/quick_start.html

And Windows:
https://rocmdocs.amd.com/en/latest/deploy/windows/quick_start.html

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

Successfully merging a pull request may close this issue.

1 participant