Skip to content

Commit ee4b4f6

Browse files
FPGA: Add in template argument list after template keyword (#2405)
This PR adds a template argument list after the template keyword. This is now required with newer versions of SYCL. This change also adds a print message for the DEVICE_FLAG variable so that we are not getting any CMake unused variable warnings when running this design.
1 parent 05f99d9 commit ee4b4f6

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/decompress/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ if(NOT DEFINED DEVICE_FLAG)
6363
-DDEVICE_FLAG=Agilex7.")
6464
endif()
6565

66+
message("\tDEVICE_FLAG set to ${DEVICE_FLAG}")
67+
6668
# Select between SNAPPY and GZIP decompression
6769
if(DEFINED SNAPPY AND DEFINED GZIP)
6870
message(FATAL_ERROR "Cannot compile for both SNAPPY and GZIP compression. You must define exactly one of -DSNAPPY=1 and -DGZIP=1")

DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/decompress/src/gzip/byte_bit_stream.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class ByteBitStream {
9292
//
9393
void NewByte(unsigned char b) {
9494
ac_int<8, false> b_ac_int(b);
95-
buf_.template set_slc(size_, b_ac_int);
95+
buf_.template set_slc<>(size_, b_ac_int);
9696

9797
size_ += decltype(size_)(8);
9898
space_ -= decltype(space_)(8);
@@ -103,4 +103,4 @@ class ByteBitStream {
103103
CountT size_, space_;
104104
};
105105

106-
#endif // __BYTE_BIT_STREAM_HPP__
106+
#endif // __BYTE_BIT_STREAM_HPP__

DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/decompress/src/snappy/snappy_reader.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ unsigned SnappyReader(unsigned in_count) {
8282
bool valid_read;
8383
auto pipe_data = InPipe::read(valid_read);
8484
if (valid_read) {
85-
byte_stream.template Write(pipe_data);
85+
byte_stream.template Write<>(pipe_data);
8686
data_read_in_preamble += literals_per_cycle;
8787
}
8888
}
@@ -180,7 +180,7 @@ unsigned SnappyReader(unsigned in_count) {
180180
bool valid_read;
181181
auto pipe_data = InPipe::read(valid_read);
182182
if (valid_read) {
183-
byte_stream.template Write(pipe_data);
183+
byte_stream.template Write<>(pipe_data);
184184
data_read += literals_per_cycle;
185185
all_data_read = all_data_read_next;
186186
all_data_read_next = data_read >= (in_count - literals_per_cycle);

0 commit comments

Comments
 (0)