Skip to content

Commit 18f4540

Browse files
committed
Update ubuntu-latest to install nvcc
Signed-off-by: Pravek Sharma <sharmapravek@gmail.com>
1 parent 7f2a604 commit 18f4540

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ubuntu-latest/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,15 @@ RUN opam init --yes --auto-setup && opam install --confirm-level=unsafe-yes --de
7373
# install ajv for CBOM validation
7474
RUN npm -g install ajv ajv-cli
7575

76+
# install nvcc for building with OQS_USE_CUPQC=ON
77+
RUN apt-key del 7fa2af80 && \
78+
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb && \
79+
dpkg -i cuda-keyring_1.1-1_all.deb && \
80+
apt-get update && \
81+
apt-get install -y cuda-toolkit && \
82+
echo PATH=/usr/local/cuda-12.6/bin${PATH:+:${PATH}} >> .bashrc && \
83+
echo LD_LIBRARY_PATH=/usr/local/cuda-12.6/lib64 \
84+
${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} >> .bashrc
85+
7686
# Activate if we want to test specific OpenSSL3 versions:
7787
# RUN cd /root && git clone --depth 1 --branch openssl-3.0.7 https://github.com/openssl/openssl.git && cd openssl && LDFLAGS="-Wl,-rpath -Wl,/usr/local/openssl3/lib64" ./config --prefix=/usr/local/openssl3 && make -j && make install

0 commit comments

Comments
 (0)