Error -1001 in clGetPlatformIDs Call !

2020-02-13 07:14发布

I am trying to start working with OpenCL. I have two NVidia graphics card, I installed "developer driver" as well as SDK from NVidia website. I compiled the demos but when I run

./oclDeviceQuery

I see:

OpenCL SW Info:

Error -1001 in clGetPlatformIDs Call !!!

How can I fix it? Does it mean my nvidia cards cannot be detected? I am running Ubuntu 10.10 and X server works properly with nvidia driver.

I am pretty sure the problem is not related to file permissions as it doesn't work with sudo either.

标签: opencl nvidia
10条回答
Animai°情兽
2楼-- · 2020-02-13 07:50

This might be due to querying clGetPlatformIDs by multiple threads at the same time

查看更多
乱世女痞
3楼-- · 2020-02-13 07:55

Dont know if you ever solved this problem, but I had the same issue and solved it in this post: ERROR: clGetPlatformIDs -1001 when running OpenCL code (Linux)

Hope it helps!

查看更多
孤傲高冷的网名
4楼-- · 2020-02-13 07:57

Same problem for me on a Linux system. Solution is to add the user to the video group:

# sudo usermod -aG video your-user-name
查看更多
时光不老,我们不散
5楼-- · 2020-02-13 07:58

I have solved it in Ubuntu 13.10 saucy for intel opencl by created link:

sudo ln -s /opt/intel/opencl-1.2-3.2.1.16712/etc/intel64.icd /etc/OpenCL/vendors/nvidia.icd
查看更多
登录 后发表回答