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

Fix BLAS portability issues with Ubuntu 20.04 R builds #238

Merged
merged 2 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
2 changes: 1 addition & 1 deletion builder/Dockerfile.ubuntu-2004
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN set -x \
&& sed -i "s|# deb-src|deb-src|g" /etc/apt/sources.list \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y curl libopenblas-dev libcurl4-openssl-dev libicu-dev liblapack-dev libpcre2-dev wget python3-pip \
&& apt-get install -y curl libopenblas0-pthread libcurl4-openssl-dev libicu-dev liblapack-dev libpcre2-dev wget python3-pip \
&& apt-get build-dep -y r-base

RUN pip3 install awscli
Expand Down
7 changes: 7 additions & 0 deletions builder/Dockerfile.ubuntu-2404
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ RUN set -x \
&& sed -i "s|Types: deb|Types: deb deb-src|g" /etc/apt/sources.list.d/ubuntu.sources \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt update \
# For BLAS/LAPACK, select the library-only OpenBLAS package that gets included in the
# the libopenblas-dev package by default. Usually this is OpenBLAS with pthreads.
#
# Note that libopenblas-dev must NOT be installed to ensure that R links to BLAS in a
# portable way, via the generic libblas.so provided by the libblas-dev package.
# This gets installed through the r-base build dependencies. If both libblas-dev and
# libopenblas-dev are present, R will prefer linking to OpenBLAS.
&& apt install -y curl libcurl4-openssl-dev libicu-dev libopenblas0-pthread libpcre2-dev libpcre3-dev unzip wget \
&& apt build-dep -y r-base

Expand Down
Loading