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

Issue with RTL library compilation for simulation in OpenCL

VE000
Beginner
1,628 Views

I am getting the following error message on compiling RTL library for simulation in OpenCL version 18.1-

 

aoc: First stage compilation completed successfully.

Compiling for Simulator.

Creating simulation system...

Generating simulation system...

Compiling simulation...

Error: Simulation compile FAILED.

Refer to test/test.log for details.

 

However there is no test log created.

 

How do I debug this error?

0 Kudos
11 Replies
MEIYAN_L_Intel
Employee
1,431 Views

Hi,

May I know do you have done the step according to the https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/opencl-sdk/aocl_programming_guide.pdf in chapter 10.1.8.1?

 

Also, may I know the information as below:

  1. OS used
  2. OpenCL SDK Edition

 

Thanks

0 Kudos
VE000
Beginner
1,431 Views

Hi

 

Thanks for the reply

Yes. Have followed all the steps mentioned in Chapter 10.1.8.1.

 

OS Used : Ubuntu 18.04

OpenCL SDK Edition : 18.1 Pro

0 Kudos
MEIYAN_L_Intel
Employee
1,431 Views

Hi,

 

Could you give the full error message for further investigation?

 

Also, could you try to run compilation and simulation for example 1 as in Chapter 10.1.9 by follow the instruction in README.html?

 

Soft reminder: https://fpgasoftware.intel.com/requirements/18.1/, the OpenCL SDK v18.1 is not officially supported in Ubuntu 18.04.

 

Thanks

0 Kudos
VE000
Beginner
1,431 Views

Hi

 

The error is not generated. Only these lines are present as an error message.

 

There are no instructions for simulation of the example 1 in the 'readme.html' file. I am able to successfully compile and EMULATE the example.

0 Kudos
MEIYAN_L_Intel
Employee
1,431 Views

Hi,

I had reviewed to the README.html, there is stated as below:

To use the simulation flow, the compilation command just needs to be modified slightly:

aoc -march=simulator device/example1.cl -o bin/example1.aocx -I device/lib1 -L device -l opencl_lib.aoclib -board=<board>

 

Could you try to run the simulator for this example 1?

 

Thanks

0 Kudos
VE000
Beginner
1,431 Views

Hi

 

Thanks for the reply

 

Will check that.

 

I am giving "a10gx" reference board as the name of the board. Is that OK?

0 Kudos
MEIYAN_L_Intel
Employee
1,431 Views

Hi,

 

Yes, the device name is a10gx.

 

If the example 1 can be simulate without error, could you try to used these command to run simulation to your design?

 

Thanks

0 Kudos
VE000
Beginner
1,431 Views

HI

 

Thanks for the reply

 

On running the example1 based on the instructions in readme.html and chapter 10.1.8.1

 

Am now getting this error message -

 

ERROR: No devices found

Querying platform for info:

==========================

CL_PLATFORM_NAME                        = Intel(R) FPGA SDK for OpenCL(TM)

CL_PLATFORM_VENDOR                      = Intel(R) Corporation

CL_PLATFORM_VERSION                     = OpenCL 1.0 Intel(R) FPGA SDK for OpenCL(TM), Version 18.1

 

Querying device for info:

========================

CL_DEVICE_NAME                          =

CL_DEVICE_VENDOR                        =

CL_DEVICE_VENDOR_ID                     = 32517

Segmentation fault (core dumped)

 

I have unset the Emulation environment variable - CL_CONTEXT_EMULATOR_DEVICE_INTELFPGA. However the error persists.

 

 

 

0 Kudos
MEIYAN_L_Intel
Employee
1,431 Views

Hi,

 

According https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/opencl-sdk/aocl_programming_guide.pdf in chapter 10.1.8.2, do you have set the CL_CONTEXT_COMPILER_MODE_INTELFPGA=3 for the host program to find the simulator device?

 

Thanks

0 Kudos
VE000
Beginner
1,431 Views

Hi

 

Thanks for the reply

 

Yes, I had set the CL_CONTEXT_COMPILER_MODE_INTELFPGA=3 but got that error

0 Kudos
MEIYAN_L_Intel
Employee
1,431 Views

Hi, 

 

May I know the environment variables that you had set?

 

Also, may I know the when building RTL library, do the RTL files and other files specified in XML specification file contain charaters other than lower case letters, numbers, periods, underscores and slashes?

 

Thanks

0 Kudos
Reply