ARM上的Opencl-无法检索平台id

ARM上的Opencl-无法检索平台id,arm,opencl,gpu,gpgpu,mali,Arm,Opencl,Gpu,Gpgpu,Mali,我正在一台linux机器上远程运行OpenCL,该机器带有ARM处理器和Mali GPU。但它在clGetPlatformIDs()上给出了类似“未知错误:无法检索平台id”的错误 我两个都试过了 cl_uint numPlatforms; //the NO. of platforms cl_platform_id platform = NULL; //the chosen platform cl_int status = clGetPlatformIDs(0, NULL, &nu

我正在一台linux机器上远程运行OpenCL,该机器带有ARM处理器和Mali GPU。但它在clGetPlatformIDs()上给出了类似“未知错误:无法检索平台id”的错误

我两个都试过了

cl_uint numPlatforms;   //the NO. of platforms
cl_platform_id platform = NULL; //the chosen platform
cl_int  status = clGetPlatformIDs(0, NULL, &numPlatforms);

但对于两者,我得到了相同的错误。同样的代码也适用于我使用AMD图形的个人windows笔记本电脑


此错误的原因可能是什么?

原因可能很简单-OpenCL驱动程序工作不正常。这就是为什么不能加载平台列表。你以前用OpenCL代码测试过ARM机器吗?

你说的ARM linux机器是指ARM chromebook?所以在您的机器中只有一个存根驱动程序。实际的平台实现在/etc/OpenCL/vendors中列出。如果没有icd支持,也可以使用libOpenCL.so,只公开1个平台


在任何情况下,如果其三星arm chromebook,arm都有详细的马里opencl和opengl es设置指南

否。我是第一次尝试。但是很明显,这台机器以前被其他人用来运行opencl。通常,这个错误意味着opencl驱动程序没有运行,因为收集平台列表是第一步。您使用哪种远程连接?这只是SSH会话还是VNC/RDP?我正在使用putty从我的windows机器连接到linux机器目标机器上的/etc/OpenCL/vendors中有什么?是的。它是三星arm的chromebook。我在计算机中找不到/etc/OpenCL文件夹。谢谢你的链接
cl_int  status = clGetPlatformIDs(1, &platform, &numPlatforms);