Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] ROC-RK3399-PC - clinfo shows no devices

94

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
94
Posted at 1/30/2019 02:00:03      1#
Last edited by gjames@smu.ca In 1/30/2019 02:07 Editor

Tried it but got make error

cc -Wall -O3 -std=c99 -o clinfo clinfo.c  -lOpenCL -lm
clinfo.c: In function ‘printStringValue’:
clinfo.c:642:11: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘void *’ [-Wformat=]
  printf("%s\n", value);
          ~^
          %p
clinfo.c: In function ‘printUlong’:
clinfo.c:696:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘cl_ulong {aka const long unsigned int}’ [-Wformat=]
  sprintf(buffer, "%llu", num);
                   ~~~^
                   %lu

If I run clinfo iget
clinfo: Cannot get the number of OpenCL platforms available.



Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list