我有一个用于测试 OpenCL 的简单源代码(2 个向量的总和),问题如下:当我运行可执行文件时,出现此错误:
Error: clGetPlatformIDs(-1001)
另外,如果我运行命令,clinfo
我会收到以下错误:
terminate called after throwing an instance of 'cl::Error'
`what(): clGetPlatformIDs`
`Aborted (core dumped)`
有什么问题?
我用:
Linux Ubuntu 14.04.4 LTS;
我没有 NVIDIA 显卡,但我有:
*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
AMD 处理器。