Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1628 Discussions

For the same task, why is the execution time of GPU much longer than that of FPGA

HYB
Beginner
1,740 Views

For the same task, if the device is changed from FPGA to GPU, the task execution time increases from 3 to 73.The code is in the attachment. Please help me analyze the reason.

 

0 Kudos
6 Replies
AlekhyaV_Intel
Moderator
1,722 Views

Hi,


Thank you for posting in Intel Communities. Unfortunately, we couldn't find any code attached. Could you please re-attach it and share all the steps you've done?


Regards,

Alekhya


0 Kudos
HYB
Beginner
1,709 Views

build.sh 

dpcpp -DFPGA_EMULATOR gpu.cpp \-c -o gpu.o
dpcpp -DFPGA_EMULATOR gpu.o -o test

 

run.sh

./test

 

qsub -l nodes=1:gpu:ppn=2 -d . build.sh
qsub -l nodes=1:gpu:ppn=2 -d . run.sh

cat run.sh.o.xxxxxxx

0 Kudos
GRN2
Employee
1,685 Views

FPGA emulator is not real FPGA. Actually it's CPU binary.

0 Kudos
AlekhyaV_Intel
Moderator
1,557 Views

Hi,

 

We reproduced your issue from our end and we could observe that you've used -DFPGA_EMULATOR flag while compiling the code. By doing this, FPGA emulator executes the dpc++ device code on the CPU. The FPGA emulator device supports FPGA extensions such as FPGA pipes and fpga_reg but doesn't compile your code on FPGA hardware. The FPGA emulator's timing behavior is not correlated to that of the physical FPGA hardware. For example, an optimization that yields a 100x performance improvement on the FPGA may show no impact on the emulator performance. The emulator might show an unrelated increase or decrease. For more information on types of DPC++ FPGA compilation, please refer: https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/programming-interface/fpga-flow/types-of-dpc-fpga-compilation.html

If the above information resolves your issue, make sure to accept this as a solution. This would help others with similar issue. Thank you!

 

Regards,

Alekhya

 

0 Kudos
AlekhyaV_Intel
Moderator
1,476 Views

Hi,


Has the solution provided helped? Could you please give us an update regarding this issue?


Regards,

Alekhya


0 Kudos
AlekhyaV_Intel
Moderator
1,403 Views

Hi,


We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Regards,

Alekhya


0 Kudos
Reply