Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

dpcpp for OneAPI examples?

Bernath__Tracey
Beginner
1,650 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
1,650 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

 

0 Kudos
Reply