Firefly Open Source Community

   Login   |   Register   |

ROC-RK3399-PC - clinfo shows no devices

53

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
53
Posted at 1/4/2019 13:27:02     
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

360

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
360
Posted at 1/4/2019 15:14:59     
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

53

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
53
Posted at 1/5/2019 13:12:19     
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

360

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
360
Posted at 1/5/2019 15:47:08     
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

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

This forum Credits Rules

Quick Reply Back to top Back to list