beew opened a new issue #18985: URL: https://github.com/apache/incubator-mxnet/issues/18985
## Description It seems that I can't really get any consistent documentation on how to build the r package for mxnet with gpu. I have already successfully built mxnet with this command and the python package ``` make -j8 USE_OPENCV=1 USE_BLAS=openblasl USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1 CUDA_ARCH=-gencode=arch=compute_61,code=sm_61 USE_JEMALLOC=1 ``` But there is little info on what to do next to install (and make ) the r package (or anything else besides python for that matter) Almost everything I found is about installing the mxnet-r binary and the README sends me to this page which is supposed to tell you how to install from source only talks about python https://mxnet.apache.org/versions/1.6/get_started/build_from_source#install-the-mxnet-package-for-r The closest I can find is this but it doesn't work https://mxnet.apache.org/versions/1.4.1/install/ubuntu_setup.html#install-the-mxnet-package-for-r First of all it says ``` make rpkg ``` but it doesn't tell you running it from where. It doesn't work in mxnet's root ``` Makefile:358: WARNING: Significant performance increases can be achieved by installing and enabling gperftools or jemalloc development packages Makefile:692: warning: overriding recipe for target 'build/libcustomop_gpu_lib.so' Makefile:680: warning: ignoring old recipe for target 'build/libcustomop_gpu_lib.so' Makefile:695: warning: overriding recipe for target 'build/libsubgraph_lib.so' Makefile:683: warning: ignoring old recipe for target 'build/libsubgraph_lib.so' make: *** No rule to make target 'rpkg'. Stop. ``` and it doesn't work if run in the R-package directory ``` make rpkg mkdir -p R-package/inst/libs cp src/io/image_recordio.h R-package/src cp: cannot stat 'src/io/image_recordio.h': No such file or directory Makefile:5: recipe for target 'rpkg' failed ``` So it appears that this makefile in R-package should be one level up. So I copy it to mxnet root and backed up the original make file there ``` make rpkg mkdir -p R-package/inst/libs cp src/io/image_recordio.h R-package/src if [ -d "lib" ]; then \ cp -rf lib/libmxnet.so R-package/inst/libs; \ if [ -e "lib/libtvm_runtime.so" ]; then \ cp -rf lib/libtvm_runtime.so R-package/inst/libs; \ fi; \ else \ cp -rf build/libmxnet.so R-package/inst/libs; \ if [ -e "build/libtvm_runtime.so" ]; then \ cp -rf build/libtvm_runtime.so R-package/inst/libs; \ fi; \ fi mkdir -p R-package/inst/include cp -rl include/* R-package/inst/include Rscript -e "if(!require(devtools)){install.packages('devtools', repo = 'https://cloud.r-project.org/')}" Loading required package: devtools Loading required package: usethis Rscript -e "if(!require(roxygen2)||packageVersion('roxygen2') < '6.1.1'){install.packages('roxygen2', repo = 'https://cloud.r-project.org/')}" Loading required package: roxygen2 Rscript -e "library(devtools); library(methods); options(repos=c(CRAN='https://cloud.r-project.org/')); install_deps(pkg='R-package', dependencies = TRUE)" Loading required package: usethis Error: Can't find 'R-package'. Execution halted Makefile:5: recipe for target 'rpkg' failed ``` Am I missing something? R 4.0.2 Ubuntu 16.04 ## To Reproduce (If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.) ### Steps to reproduce (Paste the commands you ran that produced the error.) 1. 2. ## What have you tried to solve it? 1. 2. ## Environment We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below: ``` curl --retry 10 -s https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py | python # paste outputs here ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
