Intel® oneAPI Data Parallel C++
Support for Intel® oneAPI DPC++ Compiler, Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and GDB*
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

dpcpp for OneAPI examples?

Bernath__Tracey
Beginner
449 Views

Trying to build some FPGA examples from the 'BaseKit-code-samples/DPC++Compiler/FPGA* directories, and they are looking for dpcpp.

In one case, FPGAExampleDesigns/gzip says to :  'mkdir build; cd build; cmake' , but it results in an error that it cannot find 'dpcpp'.

The FPGATutorials directory says to run :

### Example: Compiling for Emulation
1. Compile the design using the following command:
```
dpcpp -fintelfpga src/compile_flow.cpp -o a.fpga_emu -DFPGA_EMULATOR
```
2. Run the following command to verify the correctness of the program:
```
./a.fpga_emu
```

Again, cannot find dpcpp.

Thanks for any ideas,

Tracey

0 Kudos
1 Reply
GouthamK_Intel
Moderator
449 Views

Hi Tracey,

Thanks for reaching out to us.

Did you try sourcing the compiler? If not, please try sourcing it.

command : " source <instalation path>/inteloneapi/setvars.sh "

Please let us know if this resolves your issue.

 

Regards

Goutham

 

Reply