Forum Discussion
Altera_Forum
Honored Contributor
10 years agoFirst OpenCL Compilation
I'm attempting to compile the Hello World.cl included in the Altera SDK for OpenCL kit.
Following the instructions in the "read me" file, I entered this on the command line: aoc ..\examples\hello_world_x64\hello_world\device\hello_world.cl –o bin\hello_world.aocx –board de1soc_sharedonly I receive this error :”Error: qsys-script executable not found! Add quartus bin directory to the front of the PATH to solve this problem” I added the absolute path to the qsys-script executable file to the PATH user environment variable but it has not fixed the problem. Also, can I specify a different file location for the .aocx file to end up or must it be in the bin directory as shown above?4 Replies
- Altera_Forum
Honored Contributor
I don't know for sure, but the aocx can be placed elsewhere, but the host program will need to be able to find it.
So the bin folder, where the exe will end up is easiest. As for the qsys script, Instill struggle with the environment variables and it took me quite a lot of time to get them right. I will take a look at my path variable and come back to you on that. (Unless someone else already answeredthat question by that time) - Altera_Forum
Honored Contributor
Trying to compile my first OpenCL program, hello world.cl using the command prompt. The hello_world.aocx file is generated, but I received the following compilation errors below:
C:\altera\15_1\hld\bin>aoc ..\examples\hello_world_x64\hello_world\device\hello_ world.cl -o bin\hello_world.aocx -board de1soc_sharedonly error: error reading 'ûo' error: error reading 'bin\hello_world.aocx' error: error reading 'ûboard' error: error reading 'de1soc_sharedonly' 4 errors generated. Error: OpenCL parser FAILED. Refer to hello_world/hello_world.log for details. - Altera_Forum
Honored Contributor
You resolved your issue? I have a similar problem
- Altera_Forum
Honored Contributor
@herman.hoffman1 Does the compiler have read and write permissions?