Using the ubuntu image on the downloads page for the ROC-RK3399-PC
Running the command “clinfo” should show the OpenCL information about the Mali GPU, however, it shows
Number of platforms 0
How can OpenCL support be enabled?
Thanks for getting back to me.
I have done the above, but now it gives a segmentation fault.
root@firefly:~# clinfo
Platform #0
Name: ARM Platform
Version: OpenCL 1.2 v1.r14p0-01rel0-git(966ed26).f44c85cb3d2ceb87e8be88e7592755c3
Device #0
Name: Mali-T860
Type: GPU
Version: OpenCL 1.2 v1.r14p0-01rel0-git(966ed26).f44c85cb3d2ceb87e8be88e7592755c3
Global memory size: 3 GB 772 MB 664 kB
Local memory size: 32 kB
Max work group size: 256
Max work item sizes: (256, 256, 256)
Segmentation fault (core dumped)
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.
I’m very inspired by this article, thank you for the share! The C_HRHFC_2411 reliable test cost questions are crucial for your promotion and salary raise—now available for free!
Your article is truly awe-inspiring, thank you for sharing! Boost your IT abilities with free Reliable C-THR87-2505 exam bootcamp materials. Best wishes for success!
Fast2test versprechen, dass wir keine Mühe scheuen, um Ihnen zu helfen, die CIPS L4M2 Zertifizierungsprüfung zu bestehen. Jetzt können Sie kostenlos einen Teil der Fragen und Antworten von CIPS L4M2 Zertifizierungsprüfung (Defining Business Needs)auf Fast2test downloaden. Wenn Sie Fast2test wählen, können Sie nicht nur die CIPS L4M2 Zertifizierungsprüfung bestehen, sondern auch über einen einjährigen kostenlosen Update-Service verfügen. Fast2test versprechen, wenn Sie die Prüfung nicht bestehen, zahlen wir Ihnen die gesammte Summe zurück.