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

Commit 0b91230

Browse files
KellenSunderlandmarcoabreu
authored andcommitted
[MXNET-950] Enable parallel R dep builds in CI (#12552)
* [MXNET-950] Enable parallel python dep builds in CI * [MXNET-950] parallelize by availible cores
1 parent 5dc8cde commit 0b91230

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ci/docker/runtime_functions.sh

+6
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,9 @@ unittest_ubuntu_gpu_cpp() {
739739
unittest_ubuntu_cpu_R() {
740740
set -ex
741741
mkdir -p /tmp/r-site-library
742+
# build R packages in parallel
743+
mkdir -p ~/.R/
744+
echo "MAKEFLAGS = -j"$(nproc) > ~/.R/Makevars
742745
# make -j not supported
743746
make rpkg USE_BLAS=openblas R_LIBS=/tmp/r-site-library
744747
R CMD INSTALL --library=/tmp/r-site-library R-package
@@ -748,6 +751,9 @@ unittest_ubuntu_cpu_R() {
748751
unittest_ubuntu_gpu_R() {
749752
set -ex
750753
mkdir -p /tmp/r-site-library
754+
# build R packages in parallel
755+
mkdir -p ~/.R/
756+
echo "MAKEFLAGS = -j"$(nproc) > ~/.R/Makevars
751757
# make -j not supported
752758
make rpkg USE_BLAS=openblas R_LIBS=/tmp/r-site-library
753759
R CMD INSTALL --library=/tmp/r-site-library R-package

0 commit comments

Comments
 (0)