求助!Nvidia显卡如何安装配置OPENCL?
我的笔记本显卡是Nividia GTX765m,请问如何配置OPENCL?
之前装了个AMD SDK 2.9是不是不能供Nividia显卡的使用?
我没学过Opencl编程。之前从网上稀里糊涂的弄了些代码,目前显示可运行的平台是0,请教!!
#include <iostream>
using namespace std;
#if defined(__APPLE__) || defined(__MACOSX)
#include <OpenCL/cl.hpp>
#else
#include <CL/cl.h>
#endif
void main()
{
cl_int errNum;
cl_uint numPlatforms;
cl_platform_id *platformIds;
cl_context context = NULL;
errNum = clGetPlatformIDs(0, NULL, &numPlatforms);
platformIds = (cl_platform_id *)alloca(sizeof (cl_platform_id) *numPlatforms);
cout<<errNum<<endl;
system("pause");
}