我一直在努力學習的OpenCL但每次我把這個命令我的代碼休息時間, 下面是一個簡單的代碼,我已經分離的錯誤: clGetPlatformIDs職高休耕錯誤:OPENCL不能使用clGetPlatformIDs
OpenCl-OpenGl.exe中0x778d15ee處未處理的異常:0xC0000005:訪問衝突。
然後程序給出的選項「破發」或「繼續」
#pragma comment(lib, "OpenCL.lib")
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <CL/cl.h>
int main() {
cl_platform_id platform;
cl_int err;
err = clGetPlatformIDs(1, &platform, NULL);
return 0;
}
它被確認爲能夠OpenCL的其他任何系統上運行? –