Forum Discussion

VE000's avatar
VE000
Icon for New Contributor rankNew Contributor
6 years ago

Issue with RTL library compilation for simulation in OpenCL

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?

11 Replies

    • VE000's avatar
      VE000
      Icon for New Contributor rankNew Contributor

      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

  • MEIYAN_L_Intel's avatar
    MEIYAN_L_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    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

    • VE000's avatar
      VE000
      Icon for New Contributor rankNew Contributor

      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.

  • MEIYAN_L_Intel's avatar
    MEIYAN_L_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    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

    • VE000's avatar
      VE000
      Icon for New Contributor rankNew Contributor

      Hi

      Thanks for the reply

      Will check that.

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

  • MEIYAN_L_Intel's avatar
    MEIYAN_L_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    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

    • VE000's avatar
      VE000
      Icon for New Contributor rankNew Contributor

      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.

    • VE000's avatar
      VE000
      Icon for New Contributor rankNew Contributor

      Hi

      Thanks for the reply

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

  • MEIYAN_L_Intel's avatar
    MEIYAN_L_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    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