You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/09/13 18:47:42 UTC
[GitHub] marcoabreu closed pull request #12552: [MXNET-950] Enable parallel
R dep builds in CI
marcoabreu closed pull request #12552: [MXNET-950] Enable parallel R dep builds in CI
URL: https://github.com/apache/incubator-mxnet/pull/12552
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/ci/docker/runtime_functions.sh b/ci/docker/runtime_functions.sh
index 0b6a42c3cda..be12e056191 100755
--- a/ci/docker/runtime_functions.sh
+++ b/ci/docker/runtime_functions.sh
@@ -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
@@ -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
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services