Altera_Forum
Honored Contributor
9 years agoW864 MSVS 2012E ERROR: Unable to find Altera OpenCL platform.
Hello, in a previous thread I had troubles with compiling the OpenCL hello world. I have since compiled it correctly but i was unable to edit it since it somehow deleted itself (i must have deleted it by accident? sorry...) if a mod is reading this, i think i deleted it somehow? if you could restore it i could give a step-by-step on what i did to fix it, as a lot of people might have the same problems as me.
I have a new problem that might stem from not fully understanding how to operate my device de0-nano-soc kit I get the following error: "ERROR: Unable to find Altera OpenCL platform." inside the init() function of the hello world example. --- Quote Start --- bool init() { cl_int status; if(!setCwdToExeDir()) { return false; } // Get the OpenCL platform. platform = findPlatform("Altera"); if(platform == NULL) { printf("ERROR: Unable to find Altera OpenCL platform.\n"); return false; } --- Quote End --- I have the device powered on with the AC plug in. I also have the USB device it came with: type a to mini-b usb cable x1possible reasons:
1: I dont have the "USB-BLASTER II" device (that I was previous unaware I would need such a thing). 2: Incorrect drivers installed. If this is number 1 related then my next question is: how can i communicate with my device? i want to run opencl code from a c++ program.