Skip to content

Commit

Permalink
[MXNET-950] Enable parallel R dep builds in CI (apache#12552)
Browse files Browse the repository at this point in the history
* [MXNET-950] Enable parallel python dep builds in CI

* [MXNET-950] parallelize by availible cores
  • Loading branch information
KellenSunderland authored and anirudh2290 committed Sep 19, 2018
1 parent 85ca052 commit 0adea12
Showing 1 changed file with 6 additions and 0 deletions.
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 = -j"$(nproc) > ~/.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 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 = -j"$(nproc) > ~/.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

0 comments on commit 0adea12

Please sign in to comment.