Skip to content

Commit fd85ae8

Browse files
authored
Merge branch 'main' into peterl/moviebench
2 parents 5ff2d55 + cde71de commit fd85ae8

File tree

270 files changed

+144072
-12620
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+144072
-12620
lines changed

.devcontainer/Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
1616
libgmp-dev \
1717
racket \
1818
uthash-dev \
19-
vim
19+
vim \
20+
python3-pip
21+
22+
# install Python libraries
23+
RUN pip3 install cplex docplex
2024

2125
# update path
2226
USER ${USERNAME}
@@ -47,4 +51,10 @@ ARG RUST=1.71.0
4751
# install rustup, rustc, and cargo
4852
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=${RUST} -y
4953

54+
# naively install mlton
55+
RUN wget https://github.com/MLton/mlton/releases/download/on-20210117-release/mlton-20210117-1.amd64-linux-glibc2.31.tgz
56+
RUN tar -xvzf mlton-20210117-1.amd64-linux-glibc2.31.tgz
57+
RUN rm mlton-20210117-1.amd64-linux-glibc2.31.tgz
58+
ENV PATH="/home/${USERNAME}/mlton-20210117-1.amd64-linux-glibc2.31/bin:$PATH"
59+
5060
CMD ["bash"]

.github/workflows/haskell-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
strategy:
2929
matrix:
3030
include:
31-
- compiler: ghc-9.4.6
31+
- compiler: ghc-9.6.2
3232
compilerKind: ghc
33-
compilerVersion: 9.4.6
33+
compilerVersion: 9.6.2
3434
setup-method: ghcup
3535
allow-failure: false
3636
- compiler: ghc-9.4.5

.github/workflows/test-gibbon-examples.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,10 @@ jobs:
1414
sudo apt update
1515
sudo apt-get install -y libgc-dev libgmp-dev uthash-dev gcc-11 racket
1616
sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-11 /usr/bin/gcc
17-
- name: cplex and docplex
18-
run: |
19-
sudo apt-get install python3
20-
pip3 install cplex
21-
pip3 install docplex
2217
- name: ghc and cabal
2318
env:
2419
HCKIND: ghc
25-
HCVER: 9.4.6
20+
HCVER: 9.6.2
2621
run: |
2722
mkdir -p "$HOME/.ghcup/bin"
2823
curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ similar to Typed Racket, and a small subset of Haskell.
2525

2626
## Building Gibbon
2727

28-
Gibbon is implemented in Haskell, and is set up to be built with
29-
[Cabal](https://cabal.readthedocs.io/en/3.4/).
28+
### Getting Dependencies
3029

31-
Follow the instructions below to have all dependencies.
30+
Gibbon is implemented in Haskell, and is set up to be built with
31+
[Cabal](https://cabal.readthedocs.io/en/latest/), but it has a number of native dependencies.
32+
Follow the instructions below to get all dependencies or enter the Nix shell
33+
with `nix-shell` to get them via [Nix](https://nix.dev/).
3234

3335
- Ubuntu 22.04:
3436
(Parallelism support temporarily not available with ubuntu 22.04 as Cilk support is not avaiable with newer gcc)
@@ -77,24 +79,25 @@ Others require a few extra steps:
7779

7880
2. [uthash](https://github.com/troydhanson/uthash): Clone the [repository](https://github.com/troydhanson/uthash) and copy all the `.h` files in `src` to `/usr/local/include`
7981

82+
### Actually Building Gibbon
8083

8184
After you have both Cabal and all the dependencies installed, you can build
8285
Gibbon from source:
8386

8487
$ git clone https://github.com/iu-parfunc/gibbon
8588
$ cd gibbon && source set_env.sh
86-
$ cd gibbon-compiler && cabal v2-build . -w ghc-9.4.6
89+
$ cd gibbon-compiler && cabal v2-build
8790

8891
At this point you can run the Gibbon executable:
8992

90-
$ cabal v2-exec -w ghc-9.4.6 gibbon -- -h
93+
$ cabal v2-run gibbon -- -h
9194

9295
If you'd like to run the testsuite, you can do so with:
9396

94-
$ cd $GIBBONDIR && ./run_all_tests.sh
97+
$ ./run_all_tests.sh
9598

9699

97-
## Building a Developement docker container for Gibbon
100+
### Building a Developement docker container for Gibbon
98101

99102
To build the Dockerfile for dev purposes run the command below from the gibbon directory.
100103

cabal.project

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
packages: gibbon-compiler
2+
3+
program-options
4+
ghc-options: -Werror

gibbon-compiler/examples/layout_bench/GenerateLayout1.hs

Lines changed: 0 additions & 48 deletions
This file was deleted.

gibbon-compiler/examples/layout_bench/GenerateLayout2.hs

Lines changed: 0 additions & 18 deletions
This file was deleted.

gibbon-compiler/examples/layout_bench/GenerateLayout3.hs

Lines changed: 0 additions & 18 deletions
This file was deleted.

gibbon-compiler/examples/layout_bench/GenerateLayout4.hs

Lines changed: 0 additions & 18 deletions
This file was deleted.

gibbon-compiler/examples/layout_bench/GenerateLayout5.hs

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)