Package Base Details: mxnet

Git Clone URL: https://aur.archlinux.org/mxnet.git (read-only, click to copy)
Keywords: deep_learning deep_neural_networks distributed_systems machine_learning
Submitter: Godisemo
Maintainer: None
Last Packager: petronny
Votes: 12
Popularity: 0.000011
First Submitted: 2017-02-11 00:12 (UTC)
Last Updated: 2020-12-12 11:17 (UTC)

Pinned Comments

petronny commented on 2019-06-21 08:00 (UTC) (edited on 2019-06-25 07:24 (UTC) by petronny)

And about this package, I've splitted it into mxnet{,-cuda,-mkl}. And it will take lots of time and space to compile.

The pre-built binaries of mxnet{,-cuda,-mkl} and their dependencies can be found in arch4edu.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6

Godisemo commented on 2017-02-28 16:07 (UTC) (edited on 2017-02-28 16:08 (UTC) by Godisemo)

You learn something new every day. Building in a chroot environment definitely helped to resolve dependency issues. I did not know about that either. I really appreciate your feedback, thank you! The PKGBUILD should be updated to work correctly now.

petronny commented on 2017-02-28 13:39 (UTC)

No, you will get: /usr/bin/ld: cannot find -lcuda if you build it with a clean chroot enviroment. See more: https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot (I'm using a modified extra-x86_64-build to have cudnn in my custom repository)

Godisemo commented on 2017-02-27 19:12 (UTC)

Why would I need to add that to ldflags? Everything builds fine without it.

petronny commented on 2017-02-27 19:04 (UTC)

Thanks for reply. I'm not familiar with mxnet so I trust your decisions. And one more thing needs fixing in PKGBUILD: please add echo "ADD_LDFLAGS = -L/opt/cuda/lib64/stubs" >> config.mk in prepare() for "-lcuda"

Godisemo commented on 2017-02-27 16:24 (UTC)

@petronny I recall that libmxnet.so is linked to libmklml_intel.so and does not check for libmklml_gnu.so which I prefer. While my approach works, it might not be entirely correct. Removing -j$(nproc) is resonable, I didn't know you could set it in the makepkg config file. And wget should be in the makedepends. I could look into optdepends and different blas versions. In the current version of mxnet I dont think you can use intel-mkl together with mklml, which gives a huge performance benefit at least on my computer. Since I dont use any of hadoop, caffe or torch I can't really add the feature to the PKGBUILD since I have no way of confirming that it works. You can add it yourself if you need it, and send me a git diff and I will push it.

petronny commented on 2017-02-27 14:42 (UTC) (edited on 2017-02-27 19:03 (UTC) by petronny)

Is line 59: install -D "$srcdir/mklml/lib/libmklml_gnu.so" "$pkgdir/usr/lib/libmklml_intel.so" correct? And I think you can remove the -j$(nproc) option in line 53. It should have been set in /etc/makepkg.conf. And wget should be in the makedepends cblas, openblas-lapack, atlas, intel-mkl should be detected and set in prepare(), and added to optdepends hadoop, caffe, torch should be added simliarly to opencv Please fix the PKGBUILD. PS. you can find some compiled packages, such as hadoop, caffe-git, torch in https://mirrors.tuna.tsinghua.edu.cn/arch4edu/