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.75k stars 6.8k forks source link

mxnet cpp, r-package compilation error, ubuntu 22.04 #20844

Open stathisar opened 2 years ago

stathisar commented 2 years ago

While I installed successfully mxnet with r-package to my laptop device, I tried the same and similar ways to install it to my desktop and failed.

Initially I cloned the repository: git clone --recursive https://github.com/apache/incubator-mxnet mxnet -b v1.9.x sudo apt-get update sudo apt-get install -y build-essential git ninja-build ccache libopenblas-dev libopencv-dev cmake sudo apt-get install -y nvidia-cuda-dev nvidia-cuda-gdb nvidia-cuda-toolkit nvidia-cuda-toolkit-gcc # Nvidia CUDA even my graphics card eventually does not support the latest cuda versions. sudo apt-get install -y libmkl-full-dev # MKL

cd mxnet cmake -DUSE_CUDA=0 -DUSE_CPP_PACKAGE=1 . make -j$(nproc) USE_CPP_PACKAGE=1 USE_CUDA=0 The above make triggers an error at 94% of ./cpp-package/scripts/OpWrapperGenerator.py The error mentions: "invalid pointer free()"

When trying to install solely the r-package, by using CPP_PACKAGE=0 the compilation completes successfully. Then I type:

sudo make install

and: make -f R-package/Makefile rpkg after copying libmxnet.so within the R-package folder.

However I am receiving similar error regarding pointers: installing to /usr/local/lib/R/site-library/00LOCK-R-package/00new/mxnet/libs R demo inst byte-compile and prepare package for lazy loading Note: ... may be used in an incorrect context ** help No man pages found in package ‘mxnet’ * installing help indices building package indices installing vignettes testing if installed package can be loaded from temporary location free(): invalid pointer Aborted (core dumped) ERROR: loading failed

github-actions[bot] commented 2 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.