Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Bernath__Tracey
Beginner
187 Views

dpcpp for OneAPI examples?

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

Tags (1)
0 Kudos
1 Reply
GouthamK_Intel
Moderator
187 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