Skip to content

Commit 1a3d02b

Browse files
incorporate PR oneapi-src#1307
1 parent 319ec1d commit 1a3d02b

File tree

2 files changed

+17
-40
lines changed

2 files changed

+17
-40
lines changed

DirectProgramming/C++SYCL_FPGA/Tutorials/Features/experimental/invocation_interfaces/README.md

Lines changed: 13 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This FPGA tutorial demonstrates how to specify the kernel invocation interfaces
66
| Optimized for | Description
77
--- |---
88
| OS | Linux* Ubuntu* 18.04/20.04 <br> RHEL*/CentOS* 8 <br> SUSE* 15 <br> Windows* 10
9+
| Hardware | Intel® Agilex™, Arria® 10, and Stratix® 10 FPGAs
910
| Software | Intel® oneAPI DPC++/C++ Compiler
1011
| What you will learn | Basics of specifying kernel invocation interfaces and kernel argument interfaces
1112
| Time to complete | 30 minutes
@@ -18,6 +19,8 @@ This FPGA tutorial demonstrates how to specify the kernel invocation interfaces
1819
> - ModelSim® SE
1920
>
2021
> When using the hardware compile flow, Intel® Quartus® Prime Pro Edition must be installed and accessible through your PATH.
22+
>
23+
> :warning: Make sure you add the device files associated with the FPGA that you are targeting to your Intel® Quartus® Prime installation.
2124
2225
## Prerequisites
2326

@@ -217,26 +220,14 @@ void TestLambdaStreamingKernel(sycl::queue &q, ValueT *in, ValueT *out, size_t c
217220
mkdir build
218221
cd build
219222
```
220-
To compile for the Intel® Arria10® FPGA family, run `cmake` using the following command:
223+
To compile for the default target (the Agilex™ device family), run `cmake` using the following command:
221224
```
222225
cmake ..
223226
```
224-
You can also compile for a custom FPGA platform. Run `cmake` using the following command:
225-
```
226-
cmake .. -DFPGA_DEVICE=<device-family-name>
227-
```
228-
or
229-
```
230-
cmake .. -DFPGA_DEVICE=<device-part-number>
231-
```
232-
For example, to target the default Intel® Stratix10® device:
233-
```
234-
cmake .. -DFPGA_DEVICE=Stratix10
235-
```
236-
To target a specific Intel® Arria10® device:
237-
```
238-
cmake .. -DFPGA_DEVICE=10ax115s2f45i2sges
239-
```
227+
> **Note**: You can change the default target by using the command:
228+
> ```
229+
> cmake .. -DFPGA_DEVICE=<FPGA device family or FPGA part number>
230+
> ```
240231
241232
2. Compile the design through the generated `Makefile`. The following build targets are provided, matching the recommended development flow:
242233
@@ -265,28 +256,14 @@ void TestLambdaStreamingKernel(sycl::queue &q, ValueT *in, ValueT *out, size_t c
265256
mkdir build
266257
cd build
267258
```
268-
To compile for the Intel® Arria10® FPGA family, run `cmake` using the following command:
269-
259+
To compile for the default target (the Agilex™ device family), run `cmake` using the command:
270260
```
271261
cmake -G "NMake Makefiles" ..
272262
```
273-
You can also compile for a custom FPGA platform. Run `cmake` using the following command:
274-
275-
```
276-
cmake -G "NMake Makefiles" .. -DFPGA_DEVICE=<device-family-name>
277-
```
278-
or
279-
```
280-
cmake -G "NMake Makefiles" .. -DFPGA_DEVICE=<device-part-number>
281-
```
282-
For example, to target the default Intel® Stratix10® device:
283-
```
284-
cmake -G "NMake Makefiles" .. -DFPGA_DEVICE=Stratix10
285-
```
286-
To target a specific Intel® Arria10® device:
287-
```
288-
cmake -G "NMake Makefiles" .. -DFPGA_DEVICE=10ax115s2f45i2sges
289-
```
263+
> **Note**: You can change the default target by using the command:
264+
> ```
265+
> cmake -G "NMake Makefiles" .. -DFPGA_DEVICE=<FPGA device family or FPGA part number>
266+
> ```
290267
291268
2. Compile the design through the generated `Makefile`. The following build targets are provided, matching the recommended development flow:
292269

DirectProgramming/C++SYCL_FPGA/Tutorials/Features/experimental/invocation_interfaces/src/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ set(STREAMING_LAMBDA_EMULATOR_TARGET ${STREAMING_LAMBDA_TARGET_NAME}.fpga_emu)
2222
set(STREAMING_LAMBDA_SIMULATOR_TARGET ${STREAMING_LAMBDA_TARGET_NAME}.fpga_sim)
2323
set(STREAMING_LAMBDA_FPGA_TARGET ${STREAMING_LAMBDA_TARGET_NAME}.fpga)
2424

25-
# FPGA device selection
25+
# FPGA board selection
2626
if(NOT DEFINED FPGA_DEVICE)
2727
set(FPGA_DEVICE "Agilex")
2828
message(STATUS "FPGA_DEVICE was not specified.\
29-
\nConfiguring the design to run on the default FPGA device ${FPGA_DEVICE} (Intel(R) Agilex(R) FPGAs). \
30-
\nPlease refer to the README for information on board selection.")
29+
\nConfiguring the design to run on the default FPGA family: ${FPGA_DEVICE} \
30+
\nPlease refer to the README for information on target selection.")
3131
else()
32-
message(STATUS "Configuring the design to run on FPGA device ${FPGA_DEVICE}")
32+
message(STATUS "Configuring the design with the following target: ${FPGA_DEVICE}")
3333
endif()
3434

3535
# This is a Windows-specific flag that enables exception handling in host code

0 commit comments

Comments
 (0)