Skip to content

Commit 18016e4

Browse files
authored
FPGA: add include path in compile command (#1423)
1 parent b8e8852 commit 18016e4

File tree

1 file changed

+5
-5
lines changed
  • DirectProgramming/C++SYCL_FPGA/Tutorials/GettingStarted/fpga_compile

1 file changed

+5
-5
lines changed

DirectProgramming/C++SYCL_FPGA/Tutorials/GettingStarted/fpga_compile/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -145,37 +145,37 @@ int main() {
145145
```
146146

147147
### Compiler Options
148-
This section includes a helpful list of commands and options to compile this design for the FPGA emulator, generate the FPGA early image optimization reports, and compile for FPGA hardware.\
148+
This section includes a helpful list of commands and options to compile this design for the FPGA emulator, generate the FPGA early image optimization reports, and compile for FPGA hardware.
149149
>**Note**: In this sample, the compiler is refered to as `icpx`. On Windows, you should use `icx-cl`.
150150
151151
FPGA Emulator
152152

153153
```bash
154154
# FPGA emulator image
155-
icpx -fsycl -fintelfpga -DFPGA_EMULATOR fpga_design.cpp -o fpga_design.fpga_emu
155+
icpx -fsycl -fintelfpga -DFPGA_EMULATOR -I../../../../include vector_add.cpp -o vector_add.fpga_emu
156156
```
157157

158158
Optimization Report
159159

160160
```bash
161161
# FPGA early image (with optimization report):
162-
icpx -fsycl -fintelfpga -DFPGA_HARDWARE fpga_design.cpp -Xshardware -fsycl-link=early -Xstarget=Agilex -o fpga_design_report.a
162+
icpx -fsycl -fintelfpga -DFPGA_HARDWARE -I../../../../include vector_add.cpp -Xshardware -fsycl-link=early -Xstarget=Agilex -o vector_add_report.a
163163
```
164164
Use the`-Xstarget` flag to target a supported board, a device family, or a specific FPGA part number.
165165

166166
Simulator
167167

168168
```bash
169169
# FPGA simulator image:
170-
icpx -fsycl -fintelfpga -DFPGA_SIMULATOR fpga_design.cpp -Xssimulation -Xstarget=Agilex -Xsghdl -o fpga_design_sim.a
170+
icpx -fsycl -fintelfpga -DFPGA_SIMULATOR -I../../../../include vector_add.cpp -Xssimulation -Xstarget=Agilex -Xsghdl -o vector_add_sim.a
171171
```
172172
Through `-Xstarget`, you can target an explicit board, a device family or a FPGA part number.
173173

174174
Hardware
175175

176176
```bash
177177
# FPGA hardware image:
178-
icpx -fsycl -fintelfpga -DFPGA_HARDWARE fpga_design.cpp -Xshardware -Xstarget=Agilex -o fpga_design.fpga
178+
icpx -fsycl -fintelfpga -DFPGA_HARDWARE -I../../../../include vector_add.cpp -Xshardware -Xstarget=Agilex -o vector_add.fpga
179179
```
180180
Through `-Xstarget`, you can target an explicit board, a device family or a FPGA part number.
181181

0 commit comments

Comments
 (0)