Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup release infrastruture #418

Merged
merged 91 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
0ca8fc8
Check list length
gussmith23 Feb 20, 2024
61b01d5
Remove existing `lakeroad` binary
gussmith23 Feb 20, 2024
2528d5e
Initial release workflow file
gussmith23 Feb 20, 2024
61143d9
temporarily add pull_request trigger
gussmith23 Feb 20, 2024
2deac4e
Add comment
gussmith23 Feb 20, 2024
7abf1c8
Install Racket dependencies
gussmith23 Feb 20, 2024
2ad2fa3
Fix copilot bug
gussmith23 Feb 20, 2024
5b3c887
More fixes
gussmith23 Feb 20, 2024
71233dd
Add suffix
gussmith23 Feb 21, 2024
7f53f1c
sha256sum not on mac
gussmith23 Feb 21, 2024
785a261
Allow users to specify paths to solvers
gussmith23 Feb 22, 2024
1472cac
Merge branch 'gussmith23/2024-02-22-solver-paths-passed-as-flags' int…
gussmith23 Feb 22, 2024
4bebd3a
More work on release
gussmith23 Feb 23, 2024
f77ad66
Portfolio solver flag for specifying Lakeroad exe
gussmith23 Feb 23, 2024
f3c912a
Merge branch 'gussmith/2024-02-22-portfolio-script-lakeroad-binary-pa…
gussmith23 Feb 23, 2024
b1ed6ed
Attempt to gen wrapper script; copy files
gussmith23 Feb 23, 2024
e0f7587
Fixes
gussmith23 Feb 23, 2024
af737b2
Install Python dependencies
gussmith23 Feb 23, 2024
e282f12
Use `cat` with heredoc, not `echo`
gussmith23 Feb 23, 2024
602846e
Add quotes to prevent variable expansion
gussmith23 Feb 23, 2024
34324ad
Use `raco distribute`
gussmith23 Feb 23, 2024
3acc5f5
Add -v to raco commands
gussmith23 Feb 23, 2024
06ee48d
Build solvers and copy into Rosette
gussmith23 Feb 24, 2024
2b90d34
Install ninja
gussmith23 Feb 24, 2024
3343617
sudo
gussmith23 Feb 24, 2024
ded5c38
Disable for mac and windows for now
gussmith23 Feb 24, 2024
765b0b9
Fix path
gussmith23 Feb 24, 2024
dc2c371
Update apt
gussmith23 Feb 24, 2024
c91eedb
Add boolector
gussmith23 Feb 24, 2024
7dc70fe
Use env var
gussmith23 Feb 24, 2024
0252752
Add -p to prevent errors
gussmith23 Feb 24, 2024
1614118
Merge remote-tracking branch 'uwsampl/main' into gussmith23/2024-02-2…
gussmith23 Feb 27, 2024
86ccc3e
Install solvers into deps/ and add links
gussmith23 Feb 27, 2024
ecab7ec
Delete oss-cad-suite download, mkdir
gussmith23 Feb 27, 2024
d7872a6
Install pyparsing
gussmith23 Feb 27, 2024
16be760
Whoops, was installing to the wrong place
gussmith23 Feb 27, 2024
9e2fbbd
Fix
gussmith23 Feb 27, 2024
ea2a713
Try to fix STP (by copying libs) and CVC5 (rpath)
gussmith23 Feb 29, 2024
1e3e23b
Don't copy directory to avoid cp error
gussmith23 Feb 29, 2024
162eb60
Also patchelf for stp
gussmith23 Feb 29, 2024
5043379
Preserve symlinks when zipping
gussmith23 Mar 1, 2024
4e54b36
Re-link solvers after `raco distribute`
gussmith23 Mar 1, 2024
fd2d341
make links relative
gussmith23 Mar 1, 2024
74d230d
Change arg order
gussmith23 Mar 2, 2024
08b569b
Quotes
gussmith23 Mar 2, 2024
9999def
Overwrite files
gussmith23 Mar 2, 2024
5653f2b
Yet another attempt on these symbolic links
gussmith23 Mar 3, 2024
183b757
MacOS first attempt
gussmith23 Apr 22, 2024
bb87978
Temporary STP build fix
gussmith23 Apr 23, 2024
91e60af
Naming
gussmith23 Apr 23, 2024
3533e3b
Put in placeholder files
gussmith23 Apr 23, 2024
b6e91c4
Clean up dummy file creation; forgot to do for ubuntu too ln…
gussmith23 Apr 23, 2024
fc00925
Make Racket pkg dir per-OS
gussmith23 Apr 23, 2024
b769345
ninja-build is ninja on brew
gussmith23 Apr 23, 2024
2230abc
Install coreutils, make visible on path
gussmith23 Apr 23, 2024
201d1dd
Skip doc building to save some time on MacOS
gussmith23 Apr 23, 2024
4845e3c
Install GMP
gussmith23 Apr 23, 2024
b441110
Link gmp
gussmith23 Apr 23, 2024
ce7fa18
update LDFLAGS and CPPFLAGS
gussmith23 Apr 23, 2024
68ef9a8
Switch to my STP branch
gussmith23 Apr 23, 2024
e9ff080
Update STP
gussmith23 Apr 23, 2024
5e9f533
Fix use of .so vs .dylib
gussmith23 Apr 23, 2024
a256a64
Use install_name_tool instead
gussmith23 Apr 23, 2024
50394cf
Debug
gussmith23 Apr 23, 2024
625b9bb
Fix path
gussmith23 Apr 23, 2024
c38d1a3
Glob not allowed for install_name_tool
gussmith23 Apr 23, 2024
e764d2d
Don't set duplicate rpath
gussmith23 Apr 23, 2024
f25dbb6
Fix path on Macos
gussmith23 Apr 23, 2024
25cb8f4
Clean up, debug
gussmith23 Apr 23, 2024
9db4855
Aapparently the coreutils path changed somehow?
gussmith23 Apr 24, 2024
e477dca
Fix quote
gussmith23 Apr 24, 2024
3d3daa7
Add autoconf
gussmith23 Apr 24, 2024
ccd0a90
yices needs to see gmp via ldflags/cppflags
gussmith23 Apr 24, 2024
f9adc3a
Fix paths
gussmith23 Apr 24, 2024
5c30bd1
Anotehr attempt at linking gmp...
gussmith23 Apr 24, 2024
f719ba3
Fix paths
gussmith23 Apr 24, 2024
5b5a045
Add macos 13 and 14 to try and get intel and arm builds
gussmith23 Apr 24, 2024
d3ab322
Abstract gnubin path
gussmith23 Apr 24, 2024
cccd260
Add arch to zip name
gussmith23 Apr 24, 2024
c1edda6
Forgot to change zip name
gussmith23 Apr 24, 2024
eaa7725
Missed a file
gussmith23 Apr 24, 2024
7f400d5
Activate script for mac
gussmith23 Apr 24, 2024
a55e13e
Update CVC5 to include relocatable build
gussmith23 Apr 24, 2024
b1d66da
Another library paths change
gussmith23 Apr 24, 2024
76b5f58
Merge branch 'main' into gussmith23/2024-02-20-setup-release-infra
gussmith23 Apr 25, 2024
1aacead
Use consistent STP
gussmith23 Apr 25, 2024
06efa3e
Add ubuntu-20.04 as well
gussmith23 Apr 25, 2024
5b2eb9c
Get rid of arch, just explicitly name the zip
gussmith23 Apr 25, 2024
f67ff54
Copy in cadiback/cadical on Ubuntu
gussmith23 Apr 25, 2024
94cfb8d
Don't run on push
gussmith23 Apr 29, 2024
1b6317d
Ad examples and README
gussmith23 Apr 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
360 changes: 360 additions & 0 deletions .github/workflows/release.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bin/lakeroad-portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
args, rest = parser.parse_known_args()

# Process the "--" flag which marks the end of the flags for the script.
rest = rest[1:] if rest[0] == "--" else rest
rest = rest[1:] if (len(rest) > 0 and rest[0] == "--") else rest


def _parse_flag_set(flag_set: str) -> List[str]:
Expand Down
2 changes: 1 addition & 1 deletion dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ export YICES2_COMMIT_HASH="5326f0d645df6e38ae6e7d944381d01ba7d805ab"
export BITWUZLA_COMMIT_HASH="b655bc0cde570258367bf8f09a113bc7b95e46e9"
export RACKET_FMT_COMMIT_HASH="7d0a3dfff3a6cacfb59972a56d476556f89a0b1b"
export YOSYS_COMMIT_HASH="70d35314dbd7521870047ed607897f22dc48cbc3"
export CVC5_COMMIT_HASH="ebfdf84d5698eeb83e0fa4e45101fe4a8f4543eb"
export CVC5_COMMIT_HASH="1d05a49387c041dba17f85f3c4e738b4b388ace2"
export VERILATOR_COMMIT_HASH="881c6ee6557fbde017466553b2f0918250e9c4bd"
5 changes: 0 additions & 5 deletions lakeroad

This file was deleted.

30 changes: 30 additions & 0 deletions release_files/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Lakeroad

Open issues here:
<https://github.com/uwsampl/lakeroad/issues/new>

Thanks for downloading a release of Lakeroad.

To install Lakeroad on your system, simply add `./bin` to your `$PATH`.

To run the examples, run

```sh
./run-examples.sh
```

Examples are located in `./examples/`.

To see documentation of Lakeroad's flags, run both

```sh
./bin/lakeroad --help
```

and

```sh
./deps/lakeroad/bin/lakeroad-single-solver --help
```

Note that `./bin/lakeroad` is a wrapper over the core Lakeroad binary, `lakeroad-single-solver`. To see Lakeroad's full options, please run the core Lakeroad binary with `--help`.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// RUN: racket $LAKEROAD_DIR/bin/main.rkt \
// RUN: --solver bitwuzla \
// RUN: --verilog-module-filepath %s \
// RUN: --architecture xilinx-ultrascale-plus \
// RUN: --template dsp \
// RUN: --out-format verilog \
// RUN: --top-module-name top \
// RUN: --verilog-module-out-signal out:11 \
// RUN: --initiation-interval 1 \
// RUN: --clock-name clk \
// RUN: --module-name out \
// RUN: --input-signal a:11 \
// RUN: --input-signal b:11 \
// RUN: --input-signal c:11 \
// RUN: --input-signal d:11 \
// RUN: --extra-cycles 3 \
// RUN: --timeout 120 \
// RUN: | FileCheck %s

(* use_dsp = "yes" *) module top(
input signed [10:0] a,
input signed [10:0] b,
input signed [10:0] c,
input signed [10:0] d,
output [10:0] out,
input clk);

logic signed [21:0] stage0;

always @(posedge clk) begin
stage0 <= ((d + a) * b) + c;

end

assign out = stage0;
endmodule

// CHECK: module out(a, b, c, clk, d, out);
// CHECK: DSP48E2 #(
// CHECK: endmodule
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

"$SCRIPT_DIR/../bin/lakeroad" \
--bitwuzla --stp --yices --cvc5 \
--verilog-module-filepath "$SCRIPT_DIR/verilog/xilinx_ultrascale_1stage_addmuladd_signed_11bit.sh" \
--architecture xilinx-ultrascale-plus \
--template dsp \
--out-format verilog \
--top-module-name top \
--verilog-module-out-signal out:11 \
--initiation-interval 1 \
--clock-name clk \
--module-name out \
--input-signal a:11 \
--input-signal b:11 \
--input-signal c:11 \
--input-signal d:11 \
--extra-cycles 3 \
--timeout 120
9 changes: 9 additions & 0 deletions release_files/run-examples.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

# Run all examples in ./examples
for example in "$SCRIPT_DIR/examples"/*; do
echo "Running example $example"
./"$example"
done
Loading