Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 Discussions

First OpenCL Compilation

Altera_Forum
Honored Contributor II
1,839 Views

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?
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
1,129 Views

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)
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

You resolved your issue? I have a similar problem

0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

@herman.hoffman1 Does the compiler have read and write permissions?

0 Kudos
Reply