File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
DirectProgramming/DPC++FPGA/ReferenceDesigns/gzip/src Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -82,14 +82,16 @@ endif()
82
82
83
83
# Presence of USM host allocations (and whether to turn on enable the low-latency target) is detected automatically by
84
84
# looking at the name of the BSP, or manually by the user when running CMake.
85
- # E.g., cmake .. -DUSER_ENABLE_USM=1
86
- if (FPGA_DEVICE MATCHES ".*usm.*" OR USER_ENABLE_USM )
87
- set (USM_ENABLED 1 )
88
- elseif (LOW_LATENCY )
85
+ # E.g., cmake .. -DUSM_HOST_ALLOCATIONS_ENABLED=1
86
+ if (LOW_LATENCY AND NOT FPGA_DEVICE MATCHES ".usm.*" AND (NOT DEFINED USM_HOST_ALLOCATIONS_ENABLED OR USM_HOST_ALLOCATIONS_ENABLED STREQUAL "0" ))
89
87
# Low latency design requires USM, so error out
90
88
message (FATAL_ERROR "Error: The Low Latency variant of the design requires USM host allocations" )
91
89
endif ()
92
90
91
+ if (USM_HOST_ALLOCATIONS_ENABLED )
92
+ message (STATUS "USM_HOST_ALLOCATIONS_ENABLED set manually!" )
93
+ endif ()
94
+
93
95
message (STATUS "NUM_ENGINES=${NUM_ENGINES} " )
94
96
message (STATUS "SEED=${SEED} " )
95
97
message (STATUS "NUM_REORDER=${NUM_REORDER} " )
You can’t perform that action at this time.
0 commit comments