c++ - OpenCL could not found Intel HD 4000 -


i'll warn in advance written english not good, please have patience because i'll lot of errors. need expose graphic card in order benchmark parallel algorithms on finite element analysis. downloaded intel sdk @ link https://software.intel.com/en-us/intel-opencl . using ubuntu 16.10, followed instruction explained in post https://streamcomputing.eu/blog/2011-06-24/install-opencl-on-debianubuntu-orderly/ . when run simple algorithm wich checks device, recognizes cpu, failing find graphic card. same program works on mac (because opencl in stack of course).

// includes...  int main(int argc, const char * argv[]) { // see standard opencl sees std::vector<cl::platform> platforms;  // platform cl::platform::get(&platforms);  // temp std::string s;  // gpu lies cl::device gpudevice;  // found gpu bool gpufound = false;  std::cout << "**** opencl ****" << std::endl;  // see if have gpu (auto p : platforms) {             std::vector<cl::device> devices;      p.getdevices(cl_device_type_all, &devices);      (auto d : devices)     {         std::size_t = 4;         d.getinfo(cl_device_type, &i);          std::cout << "> device type     " <<                     (i & cl_device_type_cpu ? "cpu" : "") <<                     (i & cl_device_type_gpu ? "gpu" : "") <<                     (i & cl_device_type_accelerator ? "accelerator" : "");          if (i & cl_device_type_gpu)         {             gpudevice = d;             gpufound  = true;         }          std::cout << " version  " << s << std::endl;      } }  if (!gpufound) {     std::cout << "no gpu found. aborting." << std::endl;     return 1; } // other things... 

the output is:

/home/andrea/dropbox/fem/sindy/clfem/cmake-build-debug/vector_sycl **** opencl **** > device type     cpu version   no gpu found. aborting.  process finished exit code 1 

i tried add current user in video group, tried install intel media server studio following instructions coming package not build kernel because of compile errors. updated drivers automatic software update of ubuntu, still gc not found.

maybe want try beignet, opencl implementation ivybridge+ igpus. there packages of beignet ubuntu 16.10. more precise, think looking packages beignet-dev , beignet-opencl-icd. test since have no ubuntu installation available. (however, beignet works pretty on intel hd graphics 520 , antergos/arch linux)


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -