|
Posted at 1/30/2019 02:00:03
Only Author
5#
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.
|
|