@@ -19,7 +19,7 @@ if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
19
19
set (CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR} " CACHE PATH "default install path" FORCE )
20
20
endif ()
21
21
22
- set (VTR_IPO_BUILD "auto " CACHE STRING "Should VTR be compiled with interprocedural compiler optimizations?" )
22
+ set (VTR_IPO_BUILD "off " CACHE STRING "Should VTR be compiled with interprocedural compiler optimizations?" )
23
23
set_property (CACHE VTR_IPO_BUILD PROPERTY STRINGS auto on off )
24
24
25
25
#Allow the user to configure how much assertion checking should occur
@@ -37,20 +37,20 @@ option(SPEC_CPU "Enable SPEC CPU v8 support" OFF)
37
37
#Allow the user to decide whether to compile the graphics library
38
38
set (VPR_USE_EZGL "auto" CACHE STRING "Specify whether vpr uses the graphics library" )
39
39
set_property (CACHE VPR_USE_EZGL PROPERTY STRINGS auto off on )
40
- option (VTR_ENABLE_CAPNPROTO "Enable capnproto binary serialization support in VPR." ON )
40
+ option (VTR_ENABLE_CAPNPROTO "Enable capnproto binary serialization support in VPR." OFF )
41
41
42
42
#Allow the user to decide whether to compile the server module
43
43
option (VPR_USE_SERVER "Specify whether vpr enables the server mode" ON )
44
44
45
45
#Allow the user to enable/disable VPR analytic placement
46
46
#VPR option --enable_analytic_placer is also required for Analytic Placement
47
47
option (VPR_ANALYTIC_PLACE "Enable analytic placement in VPR." ON )
48
- option (VPR_ENABLE_INTERCHANGE "Enable FPGA interchange." ON )
48
+ option (VPR_ENABLE_INTERCHANGE "Enable FPGA interchange." OFF )
49
49
option (VPR_ENABLE_NOC_SAT_ROUTING "Enable NoC SAT routing." OFF )
50
50
51
51
option (WITH_BLIFEXPLORER "Enable build with blifexplorer" OFF )
52
52
53
- option (WITH_ABC "Enable building abc" ON )
53
+ option (WITH_ABC "Enable building abc" OFF )
54
54
option (WITH_ODIN "Enable building odin" OFF )
55
55
option (ODIN_DEBUG "Enable building odin with debug flags" OFF )
56
56
option (ODIN_WARN "Enable building odin with extra warning flags" OFF )
@@ -59,7 +59,7 @@ option(ODIN_TIDY "Enable building odin with clang tidy" OFF)
59
59
option (ODIN_SANITIZE "Enable building odin with sanitize flags" OFF )
60
60
61
61
# Allow the user to enable building Yosys
62
- option (WITH_PARMYS "Enable Yosys as elaborator and parmys-plugin as partial mapper" ON )
62
+ option (WITH_PARMYS "Enable Yosys as elaborator and parmys-plugin as partial mapper" OFF )
63
63
option (YOSYS_F4PGA_PLUGINS "Enable building and installing Yosys SystemVerilog and UHDM plugins" OFF )
64
64
65
65
set (VTR_VERSION_MAJOR 8 )
@@ -104,27 +104,7 @@ set(CMAKE_CXX_EXTENSIONS OFF) #No compiler specific extensions
104
104
#
105
105
# Note that we manually clear the INTERPROCEDURAL_OPTIMIZATION flag on ABC later
106
106
# to avoid cmake warnings
107
- include (CheckIPOSupported )
108
- check_ipo_supported (RESULT IPO_SUPPORTED )
109
- if (VTR_IPO_BUILD STREQUAL "on" )
110
- if (IPO_SUPPORTED )
111
- message (STATUS "Building with IPO: on" )
112
- set (CMAKE_INTERPROCEDURAL_OPTIMIZATION ON )
113
- else ()
114
- message (ERROR "Building with IPO unsupported with this compiler!" )
115
- endif ()
116
- elseif (VTR_IPO_BUILD STREQUAL "auto" )
117
- if (IPO_SUPPORTED AND NOT CMAKE_BUILD_TYPE STREQUAL "debug" )
118
- message (STATUS "Building with IPO: on (auto)" )
119
- set (CMAKE_INTERPROCEDURAL_OPTIMIZATION ON )
120
- else ()
121
- message (STATUS "Building with IPO: off (auto)" )
122
- set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fPIC" )
123
- set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fPIC" )
124
- endif ()
125
- else ()
126
- message (STATUS "Building with IPO: off" )
127
- endif ()
107
+ message (STATUS "Building with IPO: off" )
128
108
129
109
#
130
110
# Build type flags
@@ -136,8 +116,8 @@ if(NOT MSVC)
136
116
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g3" )
137
117
endif ()
138
118
139
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC" )
140
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" )
119
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -O3 -mavx2 " )
120
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -O3 -mavx2 " )
141
121
142
122
#
143
123
# Warning flags
@@ -204,13 +184,13 @@ endif()
204
184
205
185
#Check and see if the compiler supports the various warning flags,
206
186
#and add valid flags
207
- foreach (flag ${WARN_FLAGS_TO_CHECK} )
208
- CHECK_CXX_COMPILER_FLAG (${flag} CXX_COMPILER_SUPPORTS_${flag} )
209
- if (CXX_COMPILER_SUPPORTS_${flag} )
210
- #Flag supported, so enable it
211
- set (WARN_FLAGS "${WARN_FLAGS} ${flag} " )
212
- endif ()
213
- endforeach ()
187
+ # foreach(flag ${WARN_FLAGS_TO_CHECK})
188
+ # CHECK_CXX_COMPILER_FLAG(${flag} CXX_COMPILER_SUPPORTS_${flag})
189
+ # if(CXX_COMPILER_SUPPORTS_${flag})
190
+ # #Flag supported, so enable it
191
+ # set(WARN_FLAGS "${WARN_FLAGS} ${flag}")
192
+ # endif()
193
+ # endforeach()
214
194
215
195
#The flex/bison code is not warning clean so we need to suppress some warnings
216
196
set (FLEX_BISON_WARN_SUPPRESS_FLAGS "" )
@@ -232,17 +212,17 @@ foreach(flag ${FLEX_BISON_WARN_SUPPRESS_FLAGS_TO_CHECK})
232
212
endforeach ()
233
213
234
214
#Suppress IPO link warnings
235
- set (IPO_LINK_WARN_SUPRESS_FLAGS " " )
236
- set (IPO_LINK_WARN_SUPRESS_FLAGS_TO_CHECK
237
- "-Wno-null-dereference"
238
- )
239
- foreach (flag ${IPO_LINK_WARN_SUPRESS_FLAGS_TO_CHECK} )
240
- CHECK_CXX_COMPILER_FLAG (${flag} CXX_COMPILER_SUPPORTS_${flag} )
241
- if (CXX_COMPILER_SUPPORTS_${flag} )
242
- #Flag supported, so enable it
243
- set (IPO_LINK_WARN_SUPRESS_FLAGS "${IPO_LINK_WARN_SUPRESS_FLAGS} ${flag} " )
244
- endif ()
245
- endforeach ()
215
+ # set(IPO_LINK_WARN_SUPRESS_FLAGS " ")
216
+ # set(IPO_LINK_WARN_SUPRESS_FLAGS_TO_CHECK
217
+ # "-Wno-null-dereference"
218
+ # )
219
+ # foreach(flag ${IPO_LINK_WARN_SUPRESS_FLAGS_TO_CHECK})
220
+ # CHECK_CXX_COMPILER_FLAG(${flag} CXX_COMPILER_SUPPORTS_${flag})
221
+ # if(CXX_COMPILER_SUPPORTS_${flag})
222
+ # #Flag supported, so enable it
223
+ # set(IPO_LINK_WARN_SUPRESS_FLAGS "${IPO_LINK_WARN_SUPRESS_FLAGS} ${flag}")
224
+ # endif()
225
+ # endforeach()
246
226
247
227
#
248
228
# Sanitizer flags
@@ -410,23 +390,23 @@ if(${WITH_ABC})
410
390
add_subdirectory (abc )
411
391
endif ()
412
392
413
- if (${WITH_PARMYS} ) # define cmake params to compile Yosys
414
- add_definitions ("-D_YOSYS_" )
415
-
416
- set (MAKE_PROGRAM "$(MAKE)" )
417
- if (${CMAKE_GENERATOR} STREQUAL "Ninja" )
418
- set (MAKE_PROGRAM "make" )
419
- endif ()
420
-
421
- # Commented out since a make file should not call another make command with
422
- # threads. It should pass this information from the parent automatically.
423
- # if(NOT DEFINED "${CMAKE_BUILD_PARALLEL_LEVEL}")
424
- # set(CUSTOM_BUILD_PARALLEL_LEVEL 16)
425
- # else()
426
- # set(CUSTOM_BUILD_PARALLEL_LEVEL "${CMAKE_BUILD_PARALLEL_LEVEL}")
427
- # endif()
428
- add_subdirectory (yosys )
429
- endif ()
393
+ # if(${WITH_PARMYS}) # define cmake params to compile Yosys
394
+ # add_definitions("-D_YOSYS_")
395
+ #
396
+ # set(MAKE_PROGRAM "$(MAKE)")
397
+ # if(${CMAKE_GENERATOR} STREQUAL "Ninja")
398
+ # set(MAKE_PROGRAM "make")
399
+ # endif()
400
+ #
401
+ # # Commented out since a make file should not call another make command with
402
+ # # threads. It should pass this information from the parent automatically.
403
+ # # if(NOT DEFINED "${CMAKE_BUILD_PARALLEL_LEVEL}")
404
+ # # set(CUSTOM_BUILD_PARALLEL_LEVEL 16)
405
+ # # else()
406
+ # # set(CUSTOM_BUILD_PARALLEL_LEVEL "${CMAKE_BUILD_PARALLEL_LEVEL}")
407
+ # # endif()
408
+ # add_subdirectory(yosys)
409
+ # endif()
430
410
431
411
add_subdirectory (libs ) #libs/CMakeLists.txt handles adding warnings flags to non-external libraries
432
412
@@ -444,21 +424,21 @@ if(${WITH_ABC})
444
424
endif ()
445
425
add_subdirectory (utils )
446
426
447
- if (${WITH_ODIN} )
448
- add_subdirectory (odin_ii )
449
- # blifexplorer depends on odin
450
- if (${WITH_BLIFEXPLORER} )
451
- add_subdirectory (blifexplorer )
452
- endif ()
453
- endif ()
427
+ # if(${WITH_ODIN})
428
+ # add_subdirectory(odin_ii)
429
+ # # blifexplorer depends on odin
430
+ # if(${WITH_BLIFEXPLORER})
431
+ # add_subdirectory(blifexplorer)
432
+ # endif()
433
+ # endif()
454
434
455
435
# handle cmake params to compile Yosys SystemVerilog/UHDM plugins
456
- if (${YOSYS_F4PGA_PLUGINS} )
457
- # avoid compiling plugins in case the Parmys frontend is not active
458
- if (NOT ${WITH_PARMYS} )
459
- message (SEND_ERROR "Utilizing SystemVerilog/UHDM plugins requires activating Parmys frontend. Please set WITH_PARMYS." )
460
- endif ()
461
- endif ()
436
+ # if(${YOSYS_F4PGA_PLUGINS})
437
+ # # avoid compiling plugins in case the Parmys frontend is not active
438
+ # if(NOT ${WITH_PARMYS})
439
+ # message(SEND_ERROR "Utilizing SystemVerilog/UHDM plugins requires activating Parmys frontend. Please set WITH_PARMYS.")
440
+ # endif()
441
+ # endif()
462
442
463
443
#Add extra compilation flags to suppress warnings from some libraries/tools
464
444
# Note that target_compile_options() *appends* to the current compilation options of
0 commit comments