Skip to content

Commit bae0b88

Browse files
FPGA: Provide smaller input file size option for gzip (#1431)
Provide the option to run gzip_ll with 100 B file so that the simulator flow takes < 2h to finish for Questa FSE.
1 parent 0c4aa26 commit bae0b88

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/gzip/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ Performance results are based on testing as of October 27, 2020.
239239
240240
| Argument | Description
241241
|:--- |:---
242-
| `<input_file>` | Specifies the file to be compressed. <br> Use an 120+ MB file to achieve peak performance. <br> Use an 80 KB file for Low Latency variant.
242+
| `<input_file>` | Specifies the file to be compressed. <br> Use an 120+ MB file to achieve peak performance. <br> Use an 80 KB file for Low Latency variant. <br> Use a smaller file such as an 100 B file if the simulator flow is taking too long.
243243
| `-o=<output_file>` | Specifies the name of the output file. The default name of the output file is `<input_file>.gz`. <br> When using two engines, the single `<input_file>` is fed to both engines, yielding two identical output files, using `<output_file>` as the basis for the filenames.
244244
245245
### On Linux
@@ -253,7 +253,10 @@ Performance results are based on testing as of October 27, 2020.
253253
```
254254
CL_CONTEXT_MPSIM_DEVICE_INTELFPGA=1 ./gzip.fpga_sim <input_file> -o=<output_file>
255255
```
256-
256+
For the smaller file option.
257+
```
258+
CL_CONTEXT_MPSIM_DEVICE_INTELFPGA=1 ./gzip.fpga_sim ../data/100b.txt -o=<output_file>
259+
```
257260
3. Run the sample on the FPGA device (only if you ran `cmake` with `-DFPGA_DEVICE=<board-support-package>:<board-variant>`).
258261
```
259262
aocl initialize acl0 pac_s10_usm
@@ -271,6 +274,12 @@ Performance results are based on testing as of October 27, 2020.
271274
gzip.fpga_sim.exe <input_file> -o=<output_file>
272275
set CL_CONTEXT_MPSIM_DEVICE_INTELFPGA=
273276
```
277+
For the smaller file option.
278+
```
279+
set CL_CONTEXT_MPSIM_DEVICE_INTELFPGA=1
280+
gzip.fpga_sim.exe ../data/100b.txt -o=<output_file>
281+
set CL_CONTEXT_MPSIM_DEVICE_INTELFPGA=
282+
```
274283
3. Run the sample on the FPGA device (only if you ran `cmake` with `-DFPGA_DEVICE=<board-support-package>:<board-variant>`).
275284
```
276285
aocl initialize acl0 pac_s10_usm
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

0 commit comments

Comments
 (0)