Error -1001 in clGetPlatformIDs Call !

前端 未结 10 1842
粉色の甜心
粉色の甜心 2020-12-20 11:41

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

相关标签:
10条回答
  • 2020-12-20 12:06

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

    0 讨论(0)
  • 2020-12-20 12:07

    Run your program as root. In case of success: you have trouble with cl_khr_icd- extension to load the vendor driver. If you not running X11, you have to create device files manually or by (boot-)script: ERROR: clGetPlatformIDs -1001 when running OpenCL code (Linux)

    0 讨论(0)
  • 2020-12-20 12:07

    You should get number of platforms, allocate the memory for platforms, again get this platforms and then create context from this platform. There is good example: http://developer.amd.com/support/KnowledgeBase/Lists/KnowledgeBase/DispForm.aspx?ID=71

    0 讨论(0)
  • 2020-12-20 12:08

    This is a result of not installing the ICD portion of Nvidia's openCL runtime. The ICD profile will instruct your application of the different openCL implementations installed on the system as multiple implementations from different vendors can coexist. Whe your application does not find the ICD information it gives the Error -1001.

    0 讨论(0)
提交回复
热议问题