Application Acceleration With FPGAs
Programmable Acceleration Cards (PACs), DCP, DLA, Software Stack, and Reference Designs

empty report issue

beiwang2003
Beginner
667 Views

We installed Intel Quartus 19.2 and Intel FPGA SDK for OpenCL version 19.4 for the D5005 acceleration card.  When we tried to compile the example vectorAdd openCL kernel code with aoc -rtl vector_add.cl -report (or aoc -o vector_add.aocx vector_add.cl -report), we alway get empty report at vector_add/reports/report.html. Could you please advise?

Here is my running env

export QUARTUS_HOME="/opt/intelFPGA_pro/quartus_19.2.0b57/quartus"

export OPAE_PLATFORM_ROOT="/opt/intel/fpga-d5005/inteldevstack/d5005_ias_2_0_1_b237"

export AOCL_BOARD_PACKAGE_ROOT="/opt/intel/fpga-d5005/inteldevstack/d5005_ias_2_0_1_b237/opencl/opencl_bsp"

if ls /dev/intel-fpga-* 1> /dev/null 2>&1; then

if [ `id -u` = 0 ]; then

source $AOCL_BOARD_PACKAGE_ROOT/linux64/libexec/setup_permissions.sh >> /dev/null

fi

fi

OPAE_PLATFORM_BIN="/opt/intel/fpga-d5005/inteldevstack/d5005_ias_2_0_1_b237/bin"

if [[ ":${PATH}:" = *":${OPAE_PLATFORM_BIN}:"* ]] ;then

    echo "\$OPAE_PLATFORM_ROOT/bin is in PATH already"

else

    echo "Adding \$OPAE_PLATFORM_ROOT/bin to PATH"

    export PATH="${PATH}":"${OPAE_PLATFORM_BIN}"

fi

export INTELFPGAOCLSDKROOT="/opt/intelFPGA_pro/19.4/hld"

export ALTERAOCLSDKROOT=$INTELFPGAOCLSDKROOT

export PAC_DMA_WORK_THREAD=yes

QUARTUS_BIN="/opt/intelFPGA_pro/quartus_19.2.0b57/quartus/bin"

if [[ ":${PATH}:" = *":${QUARTUS_BIN}:"* ]] ;then

    echo "\$QUARTUS_HOME/bin is in PATH already"

else

    echo "Adding \$QUARTUS_HOME/bin to PATH"

    export PATH="${QUARTUS_BIN}":"${PATH}"

fi

source $INTELFPGAOCLSDKROOT/init_opencl.sh >> /dev/null

export QUARTUS_ROOTDIR_OVERRIDE="/opt/intelFPGA_pro/quartus_19.2.0b57/quartus"

 

0 Kudos
5 Replies
EBERLAZARE_I_Intel
625 Views

Hi,

 

Were you able to compile the kernel? Did you encounter any errors during compilation?

If yes, could you share them.

beiwang2003
Beginner
616 Views

The compiling went through well, no compiling error. Thanks

EBERLAZARE_I_Intel
571 Views

Hi,

Can you check if you have gotten your main sources renamed, which may have caused the issue?

 

There is a related discussion that might related to this issue:

https://community.intel.com/t5/Software-Archive/Empty-Optimization-Report/m-p/1148246

beiwang2003
Beginner
562 Views

No name changes. The vector_add.cl example only contains the following:

__kernel void vector_add(__global const float *x,

                         __global const float *y,

                         __global float *restrict z)

{

    // get index of the work item

    int index = get_global_id(0);

    // add the vector elements

    z[index] = x[index] + y[index];

}

beiwang2003
Beginner
557 Views

The problem is fixed. I only copied the report.html file to my local computer to review with a browser. I will also need to copy the ./lib directory within ./reports to review the complete report. Thanks! 

Reply