Skip to content

Commit 018ae96

Browse files
committed
Replace GraphBLAS with patched version
1 parent 7f64286 commit 018ae96

2 files changed

Lines changed: 18 additions & 14 deletions

File tree

Dockerfile

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-slim as builder
1+
FROM python:3.9-slim AS builder
22

33
# Avoid prompts from apt
44
ENV DEBIAN_FRONTEND=noninteractive
@@ -8,22 +8,27 @@ WORKDIR /app
88
COPY requirements.txt /app/
99
COPY deps/CFPQ_Data /app/deps/CFPQ_Data
1010

11-
RUN apt-get update && apt-get install -y gcc python3-dev libgraphblas-dev
11+
RUN apt-get update && apt-get install -y \
12+
python3-dev \
13+
git \
14+
wget \
15+
make \
16+
ninja-build \
17+
gcc \
18+
libomp-dev \
19+
&& wget -qO- "https://cmake.org/files/v3.19/cmake-3.19.1-Linux-x86_64.tar.gz" \
20+
| tar --strip-components=1 -xz -C /usr/local
21+
ENV GraphBLAS_ROOT=/usr/local
22+
RUN cd deps \
23+
&& git clone --depth 1 --branch vkutuev/kron https://github.com/vkutuev/GraphBLAS.git \
24+
&& cmake -S ./GraphBLAS -B ./GraphBLAS/build -G Ninja -DCMAKE_INSTALL_PREFIX="$GraphBLAS_ROOT" \
25+
&& cmake --build ./GraphBLAS/build \
26+
&& cmake --install ./GraphBLAS/build
27+
RUN pip install --no-binary suitesparse-graphblas suitesparse-graphblas==7.4.3
1228
RUN pip3 install pygraphblas==5.1.8.0
1329
RUN pip3 install -r requirements.txt
1430
RUN cd deps/CFPQ_Data && python3 setup.py install
1531

16-
FROM python:3.9-slim
17-
18-
RUN apt update && apt install -y time git
19-
20-
COPY --from=builder /usr/local /usr/local
21-
22-
RUN echo 'echo Welcome to the CFPQ_PyAlgo Docker container!' >> /root/.bashrc \
23-
&& echo 'echo "Run \`python3 -m cfpq_cli.run_all_pairs_cflr --help\` to see the usage message."' >> /root/.bashrc \
24-
&& echo 'echo "Detailed documentation is available in the \`/app/docs/\` folder."' >> /root/.bashrc
25-
26-
WORKDIR /app
2732
COPY . /app
2833

2934
ENTRYPOINT ["/bin/bash"]

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ pytest==8.0.1
33
pytest-benchmark
44
pytest-cov
55
cfpq_data==1.0.2
6-
suitesparse-graphblas==8.2.1.0
76
python-graphblas==2024.2.0
87
pandas==2.0.3
98
numpy==1.23.5

0 commit comments

Comments
 (0)