Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux OpenCL Error: clGetPlatformIDs(-1001)

I have a simple source code (sum of 2 vectors) for testing OpenCL the problem is the following: when I run th executable file I get this error:

Error: clGetPlatformIDs(-1001)

Also, if i run the command clinfo I get the following error:

terminate called after throwing an instance of 'cl::Error'
`what():  clGetPlatformIDs`
`Aborted (core dumped)`

What's the problem?

I use:

  1. Linux Ubuntu 14.04.4 LTS;

  2. I have NO NVIDIA graphic card but I have:

    *ASPEED Technology, Inc. ASPEED Graphics Family* (rev 10) (prog-if 00 [VGA controller])
    Subsystem: ASPEED Technology, Inc. ASPEED Graphics Family
    Flags: medium devsel, IRQ 23
    Memory at fe000000 (32-bit, non-prefetchable) [size=8M]
    Memory at fdfe0000 (32-bit, non-prefetchable) [size=128K]
    I/O ports at c800 [size=128]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    Kernel driver in use: ast
    
  3. AMD Processor.

like image 934
Joseph86 Avatar asked May 11 '26 03:05

Joseph86


1 Answers

Since I have not enough rep for a comment I put this as an answer.

What is the output of 'ldd clinfo'? This will tell us which libraries clinfo is using. You might have to search for the absolute path of the clinfo executable first.

Can you provide the content of the directory /etc/OpenCL/vendors/ . File names and content would be useful for a start.

like image 174
serbap Avatar answered May 12 '26 21:05

serbap



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!