Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[MXNET-950] Enable parallel R dep builds in CI #12552

Merged
merged 2 commits into from
Sep 13, 2018
Merged
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
6 changes: 6 additions & 0 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,9 @@ unittest_ubuntu_gpu_cpp() {
unittest_ubuntu_cpu_R() {
set -ex
mkdir -p /tmp/r-site-library
# build R packages in parallel
mkdir -p ~/.R/
echo "MAKEFLAGS = -j72" > ~/.R/Makevars
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is during runtime, we can us nproc instead of hardcoding the number of jobs

# make -j not supported
make rpkg USE_BLAS=openblas R_LIBS=/tmp/r-site-library
R CMD INSTALL --library=/tmp/r-site-library R-package
Expand All @@ -748,6 +751,9 @@ unittest_ubuntu_cpu_R() {
unittest_ubuntu_gpu_R() {
set -ex
mkdir -p /tmp/r-site-library
# build R packages in parallel
mkdir -p ~/.R/
echo "MAKEFLAGS = -j72" > ~/.R/Makevars
# make -j not supported
make rpkg USE_BLAS=openblas R_LIBS=/tmp/r-site-library
R CMD INSTALL --library=/tmp/r-site-library R-package
Expand Down