Hello, my name is Omer and i Using C++ and OPENCL.(try to run on the 1060GTX GPU)
Ive installed CUDA and my graphics card driver and its up to date.
In the manage3D i set high preference.
run this code:
#define __CL_ENABLE_EXCEPTIONS
#include <CL/cl.hpp>
#include <iostream>
int main(int arg, char* args[])
{
std::vector<cl::Platform> platforms;
cl::Platform::get(&platforms);
if (platforms.size() == 0)
{
std::cout << "No OpenCL platforms found" << std::endl;
exit(1);
}
std::vector<cl::Device> devices;
platforms[0].getDevices(CL_DEVICE_TYPE_ALL, &devices);
cl::Device device = devices[0];
std::cout << "Devices detected:" << std::endl;
for (unsigned int i = 0; i < devices.size(); i++)
{
cl::Device device_to_show = devices[i];
std::cout << "Device number "<< i <<" : " << device_to_show.getInfo<CL_DEVICE_NAME>() << std::endl;
}
return 0;
}
with MinGW -32bit- and with the libraries from the CUDA folder.
result:
Devices detected:
Device number 0 : Intel(R) UHD Graphics 630
Device number 1 : Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
can someone help me to find him?