Forum Discussion
Altera_Forum
Honored Contributor
9 years agofindPlatform() Call Changes Directories
I have a Cyclone V Development Kit. I have compiled my host code to a shared library (.so) and I am using this to make opencl calls from python using ctypes.cdll. Let's say I am running my pro...
Altera_Forum
Honored Contributor
9 years agoI'm not sure if this is your issue, but if you're looking at the Altera OpenCL examples in their host code. Within the init_opencl() there is
if(!setCwdToExeDir()) { return false; } statement which changes your working directory during runtime. I'm not entirely sure of its purpose but if you comment that out, it should work fine I'd imagine.