siliconcompiler 0.33.0__py3-none-any.whl → 0.33.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. siliconcompiler/_common.py +5 -0
  2. siliconcompiler/_metadata.py +1 -1
  3. siliconcompiler/apps/sc_install.py +7 -0
  4. siliconcompiler/apps/sc_remote.py +7 -2
  5. siliconcompiler/apps/utils/replay.py +5 -5
  6. siliconcompiler/core.py +38 -12
  7. siliconcompiler/data/templates/replay/replay.sh.j2 +18 -1
  8. siliconcompiler/metric.py +78 -0
  9. siliconcompiler/package/git.py +1 -1
  10. siliconcompiler/record.py +63 -7
  11. siliconcompiler/remote/client.py +57 -14
  12. siliconcompiler/remote/server.py +110 -60
  13. siliconcompiler/report/dashboard/cli/__init__.py +2 -0
  14. siliconcompiler/report/dashboard/cli/board.py +34 -31
  15. siliconcompiler/report/report.py +10 -5
  16. siliconcompiler/report/utils.py +12 -6
  17. siliconcompiler/scheduler/__init__.py +146 -976
  18. siliconcompiler/scheduler/run_node.py +12 -5
  19. siliconcompiler/scheduler/send_messages.py +9 -3
  20. siliconcompiler/scheduler/slurm.py +10 -43
  21. siliconcompiler/scheduler/taskscheduler.py +320 -0
  22. siliconcompiler/schema/baseschema.py +25 -4
  23. siliconcompiler/schema/journalingschema.py +4 -0
  24. siliconcompiler/schema/schema_cfg.py +3 -3
  25. siliconcompiler/tool.py +201 -32
  26. siliconcompiler/tools/_common/__init__.py +14 -11
  27. siliconcompiler/tools/_common/asic.py +5 -5
  28. siliconcompiler/tools/bluespec/convert.py +2 -1
  29. siliconcompiler/tools/builtin/_common.py +9 -2
  30. siliconcompiler/tools/builtin/concatenate.py +6 -2
  31. siliconcompiler/tools/builtin/minimum.py +7 -2
  32. siliconcompiler/tools/builtin/mux.py +7 -2
  33. siliconcompiler/tools/builtin/nop.py +7 -2
  34. siliconcompiler/tools/builtin/verify.py +7 -3
  35. siliconcompiler/tools/chisel/convert.py +10 -10
  36. siliconcompiler/tools/klayout/drc.py +2 -2
  37. siliconcompiler/tools/klayout/klayout_show.py +6 -6
  38. siliconcompiler/tools/klayout/klayout_utils.py +12 -12
  39. siliconcompiler/tools/netgen/count_lvs.py +2 -2
  40. siliconcompiler/tools/netgen/lvs.py +1 -1
  41. siliconcompiler/tools/openroad/_apr.py +2 -2
  42. siliconcompiler/tools/openroad/scripts/apr/sc_init_floorplan.tcl +1 -7
  43. siliconcompiler/tools/openroad/scripts/common/procs.tcl +18 -0
  44. siliconcompiler/tools/openroad/scripts/common/read_input_files.tcl +1 -7
  45. siliconcompiler/tools/opensta/scripts/sc_timing.tcl +10 -0
  46. siliconcompiler/tools/opensta/timing.py +11 -0
  47. siliconcompiler/tools/slang/__init__.py +6 -5
  48. siliconcompiler/tools/slang/elaborate.py +6 -6
  49. siliconcompiler/tools/slang/lint.py +1 -3
  50. siliconcompiler/tools/vpr/_xml_constraint.py +8 -8
  51. siliconcompiler/tools/yosys/prepareLib.py +2 -2
  52. siliconcompiler/tools/yosys/sc_synth_asic.tcl +43 -5
  53. siliconcompiler/tools/yosys/screenshot.py +1 -1
  54. siliconcompiler/tools/yosys/syn_asic.py +5 -5
  55. siliconcompiler/toolscripts/_tools.json +17 -10
  56. siliconcompiler/toolscripts/rhel8/install-chisel.sh +9 -2
  57. siliconcompiler/toolscripts/rhel8/install-icarus.sh +10 -3
  58. siliconcompiler/toolscripts/rhel8/install-klayout.sh +8 -1
  59. siliconcompiler/toolscripts/rhel8/install-magic.sh +9 -2
  60. siliconcompiler/toolscripts/rhel8/install-montage.sh +1 -1
  61. siliconcompiler/toolscripts/rhel8/install-netgen.sh +9 -2
  62. siliconcompiler/toolscripts/rhel8/install-slang.sh +11 -4
  63. siliconcompiler/toolscripts/rhel8/install-surelog.sh +9 -2
  64. siliconcompiler/toolscripts/rhel8/install-sv2v.sh +11 -4
  65. siliconcompiler/toolscripts/rhel8/install-verible.sh +11 -3
  66. siliconcompiler/toolscripts/rhel8/install-verilator.sh +10 -3
  67. siliconcompiler/toolscripts/rhel8/install-xyce.sh +15 -10
  68. siliconcompiler/toolscripts/rhel9/install-chisel.sh +9 -2
  69. siliconcompiler/toolscripts/rhel9/install-ghdl.sh +9 -2
  70. siliconcompiler/toolscripts/rhel9/install-gtkwave.sh +10 -3
  71. siliconcompiler/toolscripts/rhel9/install-icarus.sh +10 -3
  72. siliconcompiler/toolscripts/rhel9/install-klayout.sh +8 -1
  73. siliconcompiler/toolscripts/rhel9/install-magic.sh +9 -2
  74. siliconcompiler/toolscripts/rhel9/install-montage.sh +1 -1
  75. siliconcompiler/toolscripts/rhel9/install-netgen.sh +9 -2
  76. siliconcompiler/toolscripts/rhel9/install-openroad.sh +16 -3
  77. siliconcompiler/toolscripts/rhel9/install-opensta.sh +17 -5
  78. siliconcompiler/toolscripts/rhel9/install-slang.sh +11 -4
  79. siliconcompiler/toolscripts/rhel9/install-surelog.sh +9 -2
  80. siliconcompiler/toolscripts/rhel9/install-sv2v.sh +11 -4
  81. siliconcompiler/toolscripts/rhel9/install-verible.sh +11 -3
  82. siliconcompiler/toolscripts/rhel9/install-verilator.sh +10 -3
  83. siliconcompiler/toolscripts/rhel9/install-vpr.sh +9 -2
  84. siliconcompiler/toolscripts/rhel9/install-xdm.sh +10 -2
  85. siliconcompiler/toolscripts/rhel9/install-xyce.sh +15 -10
  86. siliconcompiler/toolscripts/rhel9/install-yosys-moosic.sh +9 -2
  87. siliconcompiler/toolscripts/rhel9/install-yosys-parmys.sh +10 -3
  88. siliconcompiler/toolscripts/rhel9/install-yosys-slang.sh +10 -2
  89. siliconcompiler/toolscripts/rhel9/install-yosys.sh +9 -2
  90. siliconcompiler/toolscripts/ubuntu20/install-bambu.sh +10 -2
  91. siliconcompiler/toolscripts/ubuntu20/install-bluespec.sh +10 -3
  92. siliconcompiler/toolscripts/ubuntu20/install-chisel.sh +9 -2
  93. siliconcompiler/toolscripts/ubuntu20/install-ghdl.sh +9 -2
  94. siliconcompiler/toolscripts/ubuntu20/install-gtkwave.sh +9 -2
  95. siliconcompiler/toolscripts/ubuntu20/install-icarus.sh +9 -2
  96. siliconcompiler/toolscripts/ubuntu20/install-icepack.sh +9 -2
  97. siliconcompiler/toolscripts/ubuntu20/install-klayout.sh +8 -1
  98. siliconcompiler/toolscripts/ubuntu20/install-magic.sh +9 -2
  99. siliconcompiler/toolscripts/ubuntu20/install-montage.sh +1 -1
  100. siliconcompiler/toolscripts/ubuntu20/install-netgen.sh +9 -2
  101. siliconcompiler/toolscripts/ubuntu20/install-nextpnr.sh +9 -2
  102. siliconcompiler/toolscripts/ubuntu20/install-openroad.sh +16 -3
  103. siliconcompiler/toolscripts/ubuntu20/install-opensta.sh +16 -5
  104. siliconcompiler/toolscripts/ubuntu20/install-slang.sh +11 -4
  105. siliconcompiler/toolscripts/ubuntu20/install-slurm.sh +9 -2
  106. siliconcompiler/toolscripts/ubuntu20/install-surelog.sh +10 -2
  107. siliconcompiler/toolscripts/ubuntu20/install-sv2v.sh +11 -4
  108. siliconcompiler/toolscripts/ubuntu20/install-verible.sh +11 -3
  109. siliconcompiler/toolscripts/ubuntu20/install-verilator.sh +9 -2
  110. siliconcompiler/toolscripts/ubuntu20/install-xdm.sh +10 -2
  111. siliconcompiler/toolscripts/ubuntu20/install-xyce.sh +13 -8
  112. siliconcompiler/toolscripts/ubuntu20/install-yosys-moosic.sh +9 -2
  113. siliconcompiler/toolscripts/ubuntu20/install-yosys.sh +9 -2
  114. siliconcompiler/toolscripts/ubuntu22/install-bambu.sh +10 -2
  115. siliconcompiler/toolscripts/ubuntu22/install-bluespec.sh +10 -3
  116. siliconcompiler/toolscripts/ubuntu22/install-chisel.sh +9 -2
  117. siliconcompiler/toolscripts/ubuntu22/install-ghdl.sh +9 -2
  118. siliconcompiler/toolscripts/ubuntu22/install-gtkwave.sh +9 -2
  119. siliconcompiler/toolscripts/ubuntu22/install-icarus.sh +9 -2
  120. siliconcompiler/toolscripts/ubuntu22/install-icepack.sh +9 -2
  121. siliconcompiler/toolscripts/ubuntu22/install-klayout.sh +12 -1
  122. siliconcompiler/toolscripts/ubuntu22/install-magic.sh +9 -2
  123. siliconcompiler/toolscripts/ubuntu22/install-montage.sh +1 -1
  124. siliconcompiler/toolscripts/ubuntu22/install-netgen.sh +9 -2
  125. siliconcompiler/toolscripts/ubuntu22/install-nextpnr.sh +9 -2
  126. siliconcompiler/toolscripts/ubuntu22/install-openroad.sh +16 -3
  127. siliconcompiler/toolscripts/ubuntu22/install-opensta.sh +17 -5
  128. siliconcompiler/toolscripts/ubuntu22/install-slang.sh +11 -4
  129. siliconcompiler/toolscripts/ubuntu22/install-slurm.sh +9 -2
  130. siliconcompiler/toolscripts/ubuntu22/install-surelog.sh +10 -2
  131. siliconcompiler/toolscripts/ubuntu22/install-sv2v.sh +11 -4
  132. siliconcompiler/toolscripts/ubuntu22/install-verible.sh +11 -3
  133. siliconcompiler/toolscripts/ubuntu22/install-verilator.sh +9 -2
  134. siliconcompiler/toolscripts/ubuntu22/install-vpr.sh +9 -2
  135. siliconcompiler/toolscripts/ubuntu22/install-xdm.sh +10 -2
  136. siliconcompiler/toolscripts/ubuntu22/install-xyce.sh +13 -8
  137. siliconcompiler/toolscripts/ubuntu22/install-yosys-moosic.sh +9 -2
  138. siliconcompiler/toolscripts/ubuntu22/install-yosys-parmys.sh +10 -3
  139. siliconcompiler/toolscripts/ubuntu22/install-yosys-slang.sh +10 -2
  140. siliconcompiler/toolscripts/ubuntu22/install-yosys.sh +9 -2
  141. siliconcompiler/toolscripts/ubuntu24/install-bambu.sh +12 -4
  142. siliconcompiler/toolscripts/ubuntu24/install-bluespec.sh +10 -3
  143. siliconcompiler/toolscripts/ubuntu24/install-chisel.sh +9 -2
  144. siliconcompiler/toolscripts/ubuntu24/install-ghdl.sh +9 -2
  145. siliconcompiler/toolscripts/ubuntu24/install-gtkwave.sh +9 -2
  146. siliconcompiler/toolscripts/ubuntu24/install-icarus.sh +9 -2
  147. siliconcompiler/toolscripts/ubuntu24/install-icepack.sh +9 -2
  148. siliconcompiler/toolscripts/ubuntu24/install-klayout.sh +12 -1
  149. siliconcompiler/toolscripts/ubuntu24/install-magic.sh +9 -2
  150. siliconcompiler/toolscripts/ubuntu24/install-montage.sh +1 -1
  151. siliconcompiler/toolscripts/ubuntu24/install-netgen.sh +9 -2
  152. siliconcompiler/toolscripts/ubuntu24/install-nextpnr.sh +9 -2
  153. siliconcompiler/toolscripts/ubuntu24/install-openroad.sh +16 -3
  154. siliconcompiler/toolscripts/ubuntu24/install-opensta.sh +17 -5
  155. siliconcompiler/toolscripts/ubuntu24/install-slang.sh +11 -4
  156. siliconcompiler/toolscripts/ubuntu24/install-slurm.sh +9 -2
  157. siliconcompiler/toolscripts/ubuntu24/install-surelog.sh +10 -2
  158. siliconcompiler/toolscripts/ubuntu24/install-sv2v.sh +11 -4
  159. siliconcompiler/toolscripts/ubuntu24/install-verible.sh +11 -3
  160. siliconcompiler/toolscripts/ubuntu24/install-verilator.sh +9 -2
  161. siliconcompiler/toolscripts/ubuntu24/install-vpr.sh +9 -2
  162. siliconcompiler/toolscripts/ubuntu24/install-xdm.sh +10 -2
  163. siliconcompiler/toolscripts/ubuntu24/install-xyce.sh +13 -8
  164. siliconcompiler/toolscripts/ubuntu24/install-yosys-moosic.sh +9 -2
  165. siliconcompiler/toolscripts/ubuntu24/install-yosys-parmys.sh +10 -3
  166. siliconcompiler/toolscripts/ubuntu24/install-yosys-slang.sh +10 -2
  167. siliconcompiler/toolscripts/ubuntu24/install-yosys.sh +9 -2
  168. siliconcompiler/utils/__init__.py +11 -0
  169. siliconcompiler/utils/flowgraph.py +6 -101
  170. siliconcompiler/utils/issue.py +15 -23
  171. siliconcompiler/utils/logging.py +2 -2
  172. {siliconcompiler-0.33.0.dist-info → siliconcompiler-0.33.2.dist-info}/METADATA +6 -5
  173. {siliconcompiler-0.33.0.dist-info → siliconcompiler-0.33.2.dist-info}/RECORD +177 -176
  174. {siliconcompiler-0.33.0.dist-info → siliconcompiler-0.33.2.dist-info}/WHEEL +1 -1
  175. {siliconcompiler-0.33.0.dist-info → siliconcompiler-0.33.2.dist-info}/entry_points.txt +0 -0
  176. {siliconcompiler-0.33.0.dist-info → siliconcompiler-0.33.2.dist-info}/licenses/LICENSE +0 -0
  177. {siliconcompiler-0.33.0.dist-info → siliconcompiler-0.33.2.dist-info}/top_level.txt +0 -0
@@ -1,10 +1,17 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
7
7
 
8
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
9
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
10
+ SUDO_INSTALL=sudo
11
+ else
12
+ SUDO_INSTALL=""
13
+ fi
14
+
8
15
  sudo yum group install -y "Development Tools"
9
16
  sudo yum install -y tcl-devel tk-devel tcsh csh git
10
17
 
@@ -22,4 +29,4 @@ fi
22
29
 
23
30
  LD_FLAGS=-shared ./configure $args
24
31
  make -j$(nproc)
25
- sudo make install
32
+ $SUDO_INSTALL make install
@@ -1,5 +1,5 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  sudo yum install -y ImageMagick
@@ -1,10 +1,17 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
7
7
 
8
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
9
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
10
+ SUDO_INSTALL=sudo
11
+ else
12
+ SUDO_INSTALL=""
13
+ fi
14
+
8
15
  sudo yum group install -y "Development Tools"
9
16
  sudo yum install -y tcl-devel tk-devel git
10
17
 
@@ -22,4 +29,4 @@ fi
22
29
 
23
30
  ./configure $args
24
31
  make -j$(nproc)
25
- sudo make install
32
+ $SUDO_INSTALL make install
@@ -1,6 +1,6 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
@@ -15,6 +15,13 @@ python3 -m venv .slang --clear
15
15
  python3 -m pip install --upgrade pip
16
16
  python3 -m pip install cmake
17
17
 
18
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
19
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
20
+ SUDO_INSTALL="sudo -E PATH=$PATH"
21
+ else
22
+ SUDO_INSTALL=""
23
+ fi
24
+
18
25
  sudo yum install -y gcc-toolset-12
19
26
 
20
27
  git clone $(python3 ${src_path}/_tools.py --tool slang --field git-url) slang
@@ -23,11 +30,11 @@ git checkout $(python3 ${src_path}/_tools.py --tool slang --field git-commit)
23
30
 
24
31
  cfg_args=""
25
32
  if [ ! -z ${PREFIX} ]; then
26
- cfg_args="--prefix=$PREFIX"
33
+ cfg_args="-D CMAKE_INSTALL_PREFIX=$PREFIX"
27
34
  fi
28
35
 
29
- scl run gcc-toolset-12 "cmake -B build"
36
+ scl run gcc-toolset-12 "cmake -B build $cfg_args"
30
37
  scl run gcc-toolset-12 "cmake --build build -j$(nproc)"
31
- scl run gcc-toolset-12 "cmake --install build --strip $cfg_args"
38
+ scl run gcc-toolset-12 "$SUDO_INSTALL make -C build install"
32
39
 
33
40
  cd -
@@ -1,6 +1,6 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
@@ -29,6 +29,13 @@ git submodule update --init --recursive
29
29
 
30
30
  scl run gcc-toolset-12 "LDFLAGS=\"-lrt\" make -j$(nproc)"
31
31
 
32
- sudo -E PATH="$PATH" make install
32
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
33
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
34
+ SUDO_INSTALL="sudo -E PATH=$PATH"
35
+ else
36
+ SUDO_INSTALL=""
37
+ fi
38
+
39
+ $SUDO_INSTALL make install
33
40
 
34
41
  cd -
@@ -1,6 +1,6 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
@@ -18,7 +18,14 @@ if [ ! -z ${PREFIX} ]; then
18
18
  export PATH="$PREFIX:$PATH"
19
19
  fi
20
20
 
21
- curl -sSL https://get.haskellstack.org/ | sh -s - -f $haskell_args
21
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
22
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
23
+ SUDO_INSTALL="sudo -E PATH=$PATH"
24
+ else
25
+ SUDO_INSTALL=""
26
+ fi
27
+
28
+ curl -sSL https://get.haskellstack.org/ | $SUDO_INSTALL sh -s - -f $haskell_args
22
29
 
23
30
  git clone $(python3 ${src_path}/_tools.py --tool sv2v --field git-url) sv2v
24
31
  cd sv2v
@@ -27,8 +34,8 @@ git checkout $(python3 ${src_path}/_tools.py --tool sv2v --field git-commit)
27
34
  make -j$(nproc)
28
35
 
29
36
  if [ ! -z ${PREFIX} ]; then
30
- sudo mkdir -p ${PREFIX}/bin/
31
- sudo cp bin/* ${PREFIX}/bin/
37
+ $SUDO_INSTALL mkdir -p ${PREFIX}/bin/
38
+ $SUDO_INSTALL cp bin/* ${PREFIX}/bin/
32
39
  fi
33
40
 
34
41
  cd -
@@ -1,10 +1,17 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
7
7
 
8
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
9
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
10
+ SUDO_INSTALL=sudo
11
+ else
12
+ SUDO_INSTALL=""
13
+ fi
14
+
8
15
  sudo yum install -y wget
9
16
 
10
17
  mkdir -p deps
@@ -19,8 +26,9 @@ tar xzf $filename
19
26
 
20
27
  if [ -z ${PREFIX} ]; then
21
28
  PREFIX=/opt/verible
22
- sudo mkdir -p $PREFIX
29
+ SUDO_INSTALL=sudo
30
+ $SUDO_INSTALL mkdir -p $PREFIX
23
31
  echo "Please add \"export PATH="/opt/verible/bin:\$PATH"\" to your .bashrc"
24
32
  fi
25
33
 
26
- sudo mv verible-$version/* $PREFIX
34
+ $SUDO_INSTALL mv verible-$version/* $PREFIX
@@ -1,10 +1,17 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
7
7
 
8
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
9
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
10
+ SUDO_INSTALL=sudo
11
+ else
12
+ SUDO_INSTALL=""
13
+ fi
14
+
8
15
  sudo yum group install -y "Development Tools"
9
16
  sudo yum install -y git wget
10
17
 
@@ -22,7 +29,7 @@ cd help2man-1.43.3
22
29
 
23
30
  ./configure $args
24
31
  make -j$(nproc)
25
- sudo make install
32
+ $SUDO_INSTALL make install
26
33
 
27
34
  cd ..
28
35
 
@@ -36,6 +43,6 @@ autoconf
36
43
 
37
44
  ./configure $args
38
45
  make -j$(nproc)
39
- sudo make install
46
+ $SUDO_INSTALL make install
40
47
 
41
48
  cd -
@@ -1,10 +1,17 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
7
7
 
8
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
9
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
10
+ SUDO_INSTALL=sudo
11
+ else
12
+ SUDO_INSTALL=""
13
+ fi
14
+
8
15
  sudo yum install -y wget
9
16
 
10
17
  mkdir -p deps
@@ -30,12 +37,9 @@ mkdir -p trilinos
30
37
  tar --strip-components=1 -xf trilinos.tar.gz -C trilinos
31
38
 
32
39
  # Download Xyce.
33
- xyce_version=$(python3 ${src_path}/_tools.py --tool xyce --field version)
34
- wget https://xyce.sandia.gov/files/xyce/Xyce-${xyce_version}.tar.gz --no-verbose -O xyce.tar.gz
35
- mkdir -p xyce
36
- tar --strip-components=1 -xf xyce.tar.gz -C xyce
37
- rm xyce.tar.gz
38
- XYCE_DIR=$(realpath xyce)
40
+ git clone $(python3 ${src_path}/_tools.py --tool xyce --field git-url) xyce
41
+ cd xyce
42
+ git checkout $(python3 ${src_path}/_tools.py --tool xyce --field git-commit)
39
43
 
40
44
  # Build Trilinos
41
45
  cd trilinos
@@ -45,9 +49,10 @@ cmake \
45
49
  -D CMAKE_INSTALL_PREFIX="$PREFIX/trilinos" \
46
50
  -D AMD_LIBRARY_DIRS="/usr/lib" \
47
51
  -D TPL_AMD_INCLUDE_DIRS="/usr/include/suitesparse" \
48
- -C "$XYCE_DIR/cmake/trilinos/trilinos-base.cmake" \
52
+ -C "../cmake/trilinos/trilinos-base.cmake" \
49
53
  ..
50
- cmake --build . -j$(nproc) -t install
54
+ cmake --build . -j$(nproc)
55
+ $SUDO_INSTALL make install
51
56
  cd ../..
52
57
 
53
58
  # Build Xyce
@@ -61,5 +66,5 @@ cmake \
61
66
  ..
62
67
  cmake --build . -j$(nproc)
63
68
  cmake --build . -j$(nproc) --target xycecinterface
64
- sudo make install
69
+ $SUDO_INSTALL make install
65
70
  cd -
@@ -1,10 +1,17 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
7
7
 
8
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
9
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
10
+ SUDO_INSTALL=sudo
11
+ else
12
+ SUDO_INSTALL=""
13
+ fi
14
+
8
15
  sudo yum install -y wget
9
16
 
10
17
  mkdir -p deps
@@ -19,7 +26,7 @@ if [ ! -z ${PREFIX} ]; then
19
26
  args="-C $PREFIX --strip-components 1"
20
27
  fi
21
28
 
22
- tar xvf sbt.tgz $args
29
+ $SUDO_INSTALL tar xvf sbt.tgz $args
23
30
 
24
31
  cd -
25
32
 
@@ -1,10 +1,17 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
7
7
 
8
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
9
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
10
+ SUDO_INSTALL=sudo
11
+ else
12
+ SUDO_INSTALL=""
13
+ fi
14
+
8
15
  sudo yum install -y gcc-gnat zlib-devel diffutils
9
16
  sudo yum install -y git
10
17
 
@@ -22,5 +29,5 @@ fi
22
29
 
23
30
  ./configure $args
24
31
  make -j$(nproc)
25
- sudo make install
32
+ $SUDO_INSTALL make install
26
33
  cd -
@@ -1,10 +1,17 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
7
7
 
8
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
9
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
10
+ SUDO_INSTALL=sudo
11
+ else
12
+ SUDO_INSTALL=""
13
+ fi
14
+
8
15
  sudo yum group install -y "Development Tools"
9
16
  sudo yum install -y gtk3-devel \
10
17
  bzip2-devel xz-devel tcl-devel tk-devel
@@ -26,7 +33,7 @@ tar xvf gperf-3.1.tar.gz
26
33
  cd gperf-3.1
27
34
  ./configure $args
28
35
  make -j$(nproc)
29
- sudo make install
36
+ $SUDO_INSTALL make install
30
37
  cd ..
31
38
 
32
39
  git clone $(python3 ${src_path}/_tools.py --tool gtkwave --field git-url) gtkwave
@@ -38,4 +45,4 @@ cd gtkwave3-gtk3
38
45
  ./autogen.sh
39
46
  LDFLAGS="-ltcl -ltk" ./configure --enable-gtk3 $args
40
47
  make -j$(nproc)
41
- sudo make install
48
+ $SUDO_INSTALL make install
@@ -1,10 +1,17 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
7
7
 
8
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
9
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
10
+ SUDO_INSTALL=sudo
11
+ else
12
+ SUDO_INSTALL=""
13
+ fi
14
+
8
15
  sudo yum group install -y "Development Tools"
9
16
  sudo yum install -y wget git
10
17
 
@@ -21,7 +28,7 @@ tar xvf gperf-3.1.tar.gz
21
28
  cd gperf-3.1
22
29
  ./configure $args
23
30
  make -j$(nproc)
24
- sudo make install
31
+ $SUDO_INSTALL make install
25
32
  cd ..
26
33
 
27
34
  if [ ! -z ${PREFIX} ]; then
@@ -36,6 +43,6 @@ git checkout $(python3 ${src_path}/_tools.py --tool icarus --field git-commit)
36
43
  sh autoconf.sh
37
44
  ./configure $args
38
45
  make -j$(nproc)
39
- sudo make install
46
+ $SUDO_INSTALL make install
40
47
 
41
48
  cd -
@@ -1,10 +1,17 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
7
7
 
8
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
9
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
10
+ SUDO_INSTALL=sudo
11
+ else
12
+ SUDO_INSTALL=""
13
+ fi
14
+
8
15
  sudo yum install -y wget
9
16
 
10
17
  mkdir -p deps
@@ -1,10 +1,17 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
7
7
 
8
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
9
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
10
+ SUDO_INSTALL=sudo
11
+ else
12
+ SUDO_INSTALL=""
13
+ fi
14
+
8
15
  sudo yum group install -y "Development Tools"
9
16
  sudo yum install -y tcl-devel tk-devel tcsh csh git
10
17
 
@@ -22,4 +29,4 @@ fi
22
29
 
23
30
  LD_FLAGS=-shared ./configure $args
24
31
  make -j$(nproc)
25
- sudo make install
32
+ $SUDO_INSTALL make install
@@ -1,5 +1,5 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  sudo yum install -y ImageMagick
@@ -1,10 +1,17 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
7
7
 
8
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
9
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
10
+ SUDO_INSTALL=sudo
11
+ else
12
+ SUDO_INSTALL=""
13
+ fi
14
+
8
15
  sudo yum group install -y "Development Tools"
9
16
  sudo yum install -y tcl-devel tk-devel git
10
17
 
@@ -22,4 +29,4 @@ fi
22
29
 
23
30
  ./configure $args
24
31
  make -j$(nproc)
25
- sudo make install
32
+ $SUDO_INSTALL make install
@@ -1,9 +1,20 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
6
6
 
7
+ if [ ! -z ${PREFIX} ]; then
8
+ export PATH="$PREFIX/bin:$PATH"
9
+ fi
10
+
11
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
12
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
13
+ SUDO_INSTALL="sudo -E PATH=$PATH"
14
+ else
15
+ SUDO_INSTALL=""
16
+ fi
17
+
7
18
  sudo yum install -y git
8
19
 
9
20
  mkdir -p deps
@@ -21,7 +32,9 @@ deps_args=""
21
32
  if [ ! -z ${PREFIX} ]; then
22
33
  deps_args="-prefix=$PREFIX"
23
34
  fi
24
- sudo ./etc/DependencyInstaller.sh -all $deps_args
35
+ sudo ./etc/DependencyInstaller.sh -base
36
+ sudo rm -f etc/openroad_deps_prefixes.txt
37
+ $SUDO_INSTALL ./etc/DependencyInstaller.sh -common $deps_args
25
38
 
26
39
  cmake_args="-DENABLE_TESTS=OFF"
27
40
  if [ ! -z ${PREFIX} ]; then
@@ -31,6 +44,6 @@ fi
31
44
  ./etc/Build.sh -cmake="$cmake_args"
32
45
 
33
46
  cd build
34
- sudo make install
47
+ $SUDO_INSTALL make install
35
48
 
36
49
  cd -
@@ -1,9 +1,13 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
6
6
 
7
+ if [ ! -z ${PREFIX} ]; then
8
+ export PATH="$PREFIX/bin:$PATH"
9
+ fi
10
+
7
11
  sudo yum install -y git gcc-c++ wget
8
12
  sudo yum install -y tcl-tclreadline-devel \
9
13
  bison flex zlib-devel automake autoconf
@@ -19,9 +23,17 @@ python3 -m venv .opensta --clear
19
23
  . .opensta/bin/activate
20
24
  python3 -m pip install cmake==3.31.6
21
25
 
26
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
27
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
28
+ SUDO_INSTALL="sudo -E PATH=$PATH"
29
+ else
30
+ SUDO_INSTALL=""
31
+ fi
32
+
22
33
  if [ ! -z ${PREFIX} ]; then
23
34
  cmake_args="-DCMAKE_INSTALL_PREFIX=$PREFIX"
24
35
  config_prefix="--prefix=$PREFIX"
36
+ export PATH="$PREFIX/bin:$PATH"
25
37
  fi
26
38
 
27
39
  # eigen
@@ -33,7 +45,7 @@ mkdir build
33
45
  cd build
34
46
  cmake $cmake_args ..
35
47
  make -j$(nproc)
36
- sudo make install
48
+ $SUDO_INSTALL make install
37
49
 
38
50
  cd ../../..
39
51
  # cudd
@@ -44,7 +56,7 @@ cd cudd
44
56
  autoreconf
45
57
  ./configure $config_prefix
46
58
  make -j$(nproc)
47
- sudo make install
59
+ $SUDO_INSTALL make install
48
60
 
49
61
  cd ../..
50
62
  #swig
@@ -58,7 +70,7 @@ wget https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.42/pcre2-1
58
70
  ./autogen.sh
59
71
  ./configure $config_prefix
60
72
  make -j$(nproc)
61
- sudo make -j$(nproc) install
73
+ $SUDO_INSTALL make -j$(nproc) install
62
74
 
63
75
  cd ../..
64
76
  # opensta
@@ -71,6 +83,6 @@ mkdir -p build
71
83
  cd build
72
84
  cmake .. $cmake_args
73
85
  make -j$(nproc)
74
- sudo make install
86
+ $SUDO_INSTALL make install
75
87
 
76
88
  cd -
@@ -1,6 +1,6 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
@@ -15,6 +15,13 @@ python3 -m venv .slang --clear
15
15
  python3 -m pip install --upgrade pip
16
16
  python3 -m pip install cmake==3.31.6
17
17
 
18
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
19
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
20
+ SUDO_INSTALL="sudo -E PATH=$PATH"
21
+ else
22
+ SUDO_INSTALL=""
23
+ fi
24
+
18
25
  sudo yum install -y gcc-toolset-12
19
26
 
20
27
  git clone $(python3 ${src_path}/_tools.py --tool slang --field git-url) slang
@@ -23,11 +30,11 @@ git checkout $(python3 ${src_path}/_tools.py --tool slang --field git-commit)
23
30
 
24
31
  cfg_args=""
25
32
  if [ ! -z ${PREFIX} ]; then
26
- cfg_args="--prefix=$PREFIX"
33
+ cfg_args="-D CMAKE_INSTALL_PREFIX=$PREFIX"
27
34
  fi
28
35
 
29
- scl run gcc-toolset-12 "cmake -B build"
36
+ scl run gcc-toolset-12 "cmake -B build $cfg_args"
30
37
  scl run gcc-toolset-12 "cmake --build build -j$(nproc)"
31
- scl run gcc-toolset-12 "cmake --install build --strip $cfg_args"
38
+ scl run gcc-toolset-12 "$SUDO_INSTALL make -C build install"
32
39
 
33
40
  cd -
@@ -1,6 +1,6 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
@@ -28,6 +28,13 @@ git submodule update --init --recursive
28
28
 
29
29
  scl run gcc-toolset-12 "LDFLAGS=\"-lrt\" make -j$(nproc)"
30
30
 
31
- sudo -E PATH="$PATH" make install
31
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
32
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
33
+ SUDO_INSTALL="sudo -E PATH=$PATH"
34
+ else
35
+ SUDO_INSTALL=""
36
+ fi
37
+
38
+ $SUDO_INSTALL make -C build install
32
39
 
33
40
  cd -
@@ -1,6 +1,6 @@
1
1
  #!/bin/sh
2
2
 
3
- set -e
3
+ set -ex
4
4
 
5
5
  # Get directory of script
6
6
  src_path=$(cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)/..
@@ -18,7 +18,14 @@ if [ ! -z ${PREFIX} ]; then
18
18
  export PATH="$PREFIX:$PATH"
19
19
  fi
20
20
 
21
- curl -sSL https://get.haskellstack.org/ | sh -s - -f $haskell_args
21
+ USE_SUDO_INSTALL="${USE_SUDO_INSTALL:-yes}"
22
+ if [ "${USE_SUDO_INSTALL:-yes}" = "yes" ]; then
23
+ SUDO_INSTALL="sudo -E PATH=$PATH"
24
+ else
25
+ SUDO_INSTALL=""
26
+ fi
27
+
28
+ curl -sSL https://get.haskellstack.org/ | $SUDO_INSTALL sh -s - -f $haskell_args
22
29
 
23
30
  git clone $(python3 ${src_path}/_tools.py --tool sv2v --field git-url) sv2v
24
31
  cd sv2v
@@ -27,8 +34,8 @@ git checkout $(python3 ${src_path}/_tools.py --tool sv2v --field git-commit)
27
34
  make -j$(nproc)
28
35
 
29
36
  if [ ! -z ${PREFIX} ]; then
30
- sudo mkdir -p ${PREFIX}/bin/
31
- sudo cp bin/* ${PREFIX}/bin/
37
+ $SUDO_INSTALL mkdir -p ${PREFIX}/bin/
38
+ $SUDO_INSTALL cp bin/* ${PREFIX}/bin/
32
39
  fi
33
40
 
34
41
  cd -