Skip to content

Commit 1cde435

Browse files
committed
Added defualt seed for hardware compiles
1 parent 9558103 commit 1cde435

File tree

1 file changed

+21
-2
lines changed
  • DirectProgramming/DPC++FPGA/ReferenceDesigns/mvdr_beamforming/src

1 file changed

+21
-2
lines changed

DirectProgramming/DPC++FPGA/ReferenceDesigns/mvdr_beamforming/src/CMakeLists.txt

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,27 @@ if(FPGA_BOARD MATCHES ".usm.*")
2323
message(STATUS "USM host allocations are enabled")
2424
endif()
2525

26-
# Include ac_types headers and link against ac_types emulation libraries
27-
set(AC_TYPES_FLAG "-qactypes")
26+
# set default seed for specific FPGA boards
27+
if(FPGA_BOARD MATCHES ".*s10.*")
28+
set(SEED "-Xsseed=4")
29+
elseif(FPGA_BOARD MATCHES ".*agilex.*")
30+
set(SEED "-Xsseed=1")
31+
endif()
32+
33+
if(IGNORE_DEFAULT_SEED)
34+
set(SEED "")
35+
endif()
36+
37+
# These are Windows-specific flags:
38+
# 1. /EHsc This is a Windows-specific flag that enables exception handling in host code
39+
# 2. /Qactypes Include ac_types headers and link against ac_types emulation libraries
40+
if(WIN32)
41+
set(WIN_FLAG "/EHsc")
42+
set(AC_TYPES_FLAG "/Qactypes")
43+
else()
44+
# Include ac_types headers and link against ac_types emulation libraries
45+
set(AC_TYPES_FLAG "-qactypes")
46+
endif()
2847

2948
# Allow the user to enable real IO pipes
3049
# e.g. cmake .. -DREAL_IO_PIPES=1

0 commit comments

Comments
 (0)