Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

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

75

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
75

【Linux】 ROC-RK3399-PC - clinfo shows no devices

Posted at 1/4/2019 13:27:02      View:7090 | Replies:8        Print      Only Author   [Copy Link] 1#
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?
Reply

Use props Report

1429

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1429
Posted at 1/4/2019 15:14:59        Only Author  2#
1. git clone https://github.com/simleb/clinfo.git
2. apt install opencl-headers
3. cd clinfo;make;make install
4. cd /usr/lib/aarch64-linux-gnu/ ; ln -sf libOpenCL.so  libMali.so.7.0
5. ./clinfo
Reply

Use props Report

75

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
75
Posted at 1/5/2019 13:12:19        Only Author  3#
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)
Reply

Use props Report

1429

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1429
Posted at 1/5/2019 15:47:08        Only Author  4#
Just a print bug
-               buffer_size += (dims[i] > 0 ? lrint(log10(dims[i])) + 1 : 1) + 2;
+               buffer_size += (dims[i] > 0 ? lrint(log10(dims[i])) + 2 : 1) * ndims + 2;
Reply

Use props Report

94

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
94
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.



Reply

Use props Report

125

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
125
Posted at 1/9/2026 23:02:37        Only Author  6#
Itexamdump에서 출시한 Salesforce 인증 AI-201시험덤프는Itexamdump의 엘리트한 IT전문가들이 IT인증실제시험문제를 연구하여 제작한 최신버전 덤프입니다. 덤프는 실제시험의 모든 범위를 커버하고 있어 시험통과율이 거의 100%에 달합니다. 제일 빠른 시간내에 덤프에 있는 문제만 잘 이해하고 기억하신다면 시험패스는 문제없습니다.
Reply

Use props Report

135

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
135
Posted at 1/10/2026 06:33:31        Only Author  7#
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!
Reply

Use props Report

132

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
132
Posted at 7 day before        Only Author  8#
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!
Reply

Use props Report

135

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
135
Posted at yesterday 11:15        Only Author  9#
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.
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