Altera_Forum
Honored Contributor
9 years agoTrouble running OpenCL HelloWorld example on emulated s5_ref
I'm struggling to get the Hello World example running on emulated s5_ref. I have successfully compiled the kernel with no errors, and have also compiled the host applications (using Visual Studio 2013 - I gave up trying on Visual Studio 2015 although I think it can be done with a bit more effort). When I run the host application in debug mode it fails on the following line:
platform = findPlatform("Altera"); The code runs OK, but it always returns a null pointer and the program exits with the "ERROR: Unable to find Altera OpenCL platform." message. I have tried moving the compiled aocx file into the same folder as the source code but this does not help. Any ideas?