Risab Biswas
Jalpaiguri, West Bengal
Kolkata, WB
The vector-multiplication is a simple program that multiplies Three large vectors of integers and verifies the results. This program is implemented using C++ and Data Parallel C++ (DPC++) languages for Intel(R) CPU and accelerators. In this example, you can learn how to use the most basic code in C ...learn more
Project status: Published/In Market
The vector-multiplication
is a simple program that multiplies Three large vectors of integers and verifies the results. This program is implemented using C and Data Parallel C (DPC++) languages for Intel(R) CPU and accelerators.
In this example, you can learn how to use the most basic code in C language that offloads computations to a GPU or an FPGA using the DPC language.
Key Implementation DetailsThe basic DPC++ implementation explained in the code includes device selector, buffer, accessor, kernel, and command groups.
**vector-multiplication**
Program for CPU and GPU
On a Linux* System
Perform the following steps:
vector-add
program using:make all
make run
make clean
nmake
commands:nmake -f Makefile.win clean nmake -f Makefile.win nmake -f Makefile.win run
Perform the following steps:
vector-add
folder.vector-add.sln
file.**vector-add**
Program for Intel(R) FPGA
On a Linux* System
Perform the following steps:
Clean the vector-add
program using:
make clean -f Makefile.fpga
Based on your requirements, you can perform the following:
Build and run for FPGA emulation using the following commands:
make fpga\_emu -f Makefile.fpga make run\_emu -f Makefile.fpga
Build and run for FPGA hardware.
NOTE: The hardware compilation takes a long time to complete.
make hw -f Makefile.fpga make run\_hw -f Makefile.fpga
Generate static optimization reports for design analysis. Path to the reports is vector-add\_report.prj/reports/report.html
make report -f Makefile.fpga
Perform the following steps:
NOTE: On a Windows* system, you can only compile and run on the FPGA emulator. Generating an HTML optimization report and compiling and running on the FPGA hardware are not currently supported.
nmake
commands:nmake -f Makefile.win.fpga clean nmake -f Makefile.win.fpga nmake -f Makefile.win.fpga run
Perform the following steps:
vector-add
folder.vector-add.sln
file.DPC++,Intel ONE API
https://github.com/AbhiLegend/DPC-