File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -311,3 +311,18 @@ set(IPO_LINK_WARN_SUPRESS_FLAGS " ")
311
311
add_subdirectory (planning )
312
312
add_dependencies (planning vpr )
313
313
314
+ # Script to build vpr_latest.
315
+ # We cannot add vpr_latest as cmake dependency because VPR external utilities
316
+ # cmake-targets conflict with OpenFPGA versions of the same targets.
317
+ message (STATUS "\n ------------\n " )
318
+ message (STATUS "-- begin vpr_latest build script: VPR_LATEST_DEST_DIR= ${VPR_LATEST_DEST_DIR} \n " )
319
+ set (SCRIPT_STATUS 111 )
320
+ execute_process (
321
+ COMMAND bash build_vpr_latest.sh
322
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /vpr_latest
323
+ RESULT_VARIABLE SCRIPT_STATUS
324
+ )
325
+ message (STATUS "" )
326
+ message (STATUS "-- end vpr_latest build script: SCRIPT_STATUS= ${SCRIPT_STATUS} \n " )
327
+ message (STATUS "--------------\n " )
328
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ printf " \n building vpr_latest in $( pwd) \n"
4
+
5
+ hw_num_cores=` grep -F " model name" /proc/cpuinfo | wc -l`
6
+
7
+ export CPU_CORES=${CPU_CORES:= " $hw_num_cores " }
8
+
9
+ printf " CPU_CORES= $CPU_CORES hw_num_cores= $hw_num_cores \n\n"
10
+
11
+ cd vtr && make -j $CPU_CORES
12
+
13
+ vtr_make_status=$?
14
+
15
+ printf " \n vtr_make_status= $vtr_make_status \n"
16
+ printf " \n done building vpr_latest in $( pwd) \n\n"
17
+
You can’t perform that action at this time.
0 commit comments