File tree Expand file tree Collapse file tree
DirectProgramming/C++SYCL_FPGA/Tutorials/DesignPatterns/zero_copy_data_transfer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,8 +54,10 @@ else()
5454 # Check if the target is a BSP
5555 if (IS_BSP MATCHES "1" )
5656 set (IS_BSP "1" )
57+ set (BSP_FLAG "-DIS_BSP" )
5758 else ()
5859 set (IS_BSP "0" )
60+ set (BSP_FLAG "" )
5961 message (STATUS "The selected target ${FPGA_DEVICE} is assumed to be an FPGA part number, so USM will be enabled by default." )
6062 message (STATUS "If the target is actually a BSP that does not support USM, run cmake with -DIS_BSP=1." )
6163 endif ()
@@ -88,7 +90,7 @@ endif()
8890set (USER_FPGA_FLAGS ${USER_FPGA_FLAGS} )
8991
9092# Use cmake -DUSER_FLAGS=<flags> to set extra flags for general compilation.
91- set (USER_FLAGS ${USER_FLAGS} ;-D${DEVICE_FLAG} ;${HYPER_FLAG} )
93+ set (USER_FLAGS ${USER_FLAGS} ;-D${DEVICE_FLAG} ;${HYPER_FLAG} ; ${BSP_FLAG} )
9294
9395# Use cmake -DUSER_INCLUDE_PATHS=<paths> to set extra paths for general
9496# compilation.
You can’t perform that action at this time.
0 commit comments