apache / mxnet

Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more
https://mxnet.apache.org
Apache License 2.0
20.78k stars 6.79k forks source link

Unable to compile mxnet R package. #19238

Closed kstawiski closed 4 years ago

kstawiski commented 4 years ago

Description

Since few last commits, I'm having a problem with compiling and installing mxnet for R in Docker image. Nothing changed in the command that previously worked.

Error Message

make: R-package/Makefile: No such file or directory
make: *** No rule to make target 'R-package/Makefile'.  Stop.

It happens on both CPU and GPU-based version.

Steps to reproduce

(Paste the commands you ran that produced the error.)

For CPU-based version:

/bin/sh -c pip install --upgrade cmake && cd / && git clone --recursive https://github.com/apache/incubator-mxnet.git && cd /incubator-mxnet && mkdir build && cd build && cmake -DUSE_CUDA=OFF -DUSE_MKL_IF_AVAILABLE=ON -DUSE_MKLDNN=OFF -DUSE_OPENMP=ON -DUSE_OPENCV=ON .. && make -j $(nproc) USE_OPENCV=1 USE_BLAS=openblas && make install && cp -a . .. && cp -a . ../lib && cd /incubator-mxnet/ && make -f R-package/Makefile rpkg

For GPU-based version:

RUN pip install --upgrade cmake && cd / && git clone --recursive https://github.com/apache/incubator-mxnet.git && cd /incubator-mxnet && mkdir build && cd build && cmake -DUSE_CUDA=ON -DUSE_MKL_IF_AVAILABLE=ON -DUSE_MKLDNN=OFF -DUSE_OPENMP=ON -DUSE_OPENCV=ON .. && make -j $(nproc) USE_OPENCV=1 USE_BLAS=openblas && make install && cp -a . .. && cp -a . ../lib && cd /incubator-mxnet/ && make -f R-package/Makefile rpkg

What have you tried to solve it?

  1. Check documentation on any updates about compiling R package - none found.

Environment

Ubuntu-based docker images, Dockerfiles: https://github.com/kstawiski/miRNAselector/blob/master/Dockerfile.gpu and https://github.com/kstawiski/miRNAselector/blob/master/Dockerfile

github-actions[bot] commented 4 years ago

Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue. Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly. If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on contributing to MXNet and our development guides wiki.

szha commented 4 years ago

Hi @kstawiski, we have temporarily removed the R package from the master branch due to C-API changes. For now, please make sure that you use git clone --recursive https://github.com/apache/incubator-mxnet.git -b v1.x when checking out the code base.

kstawiski commented 4 years ago

Thank you @szha for the quick response. Closing the issue.