Package Details: r-mkl 3.6.2-3

Git Clone URL: https://aur.archlinux.org/r-mkl.git (read-only, click to copy)
Package Base: r-mkl
Description: Language and environment for statistical computing and graphics, linked to the Intel(R) MKL.
Upstream URL: http://www.r-project.org/
Keywords: hpc mathematics modelling r statistics
Licenses: GPL
Conflicts: microsoft-r-open, r
Provides: r=3.6.2
Submitter: giniu
Maintainer: alexanderp
Last Packager: alexanderp
Votes: 19
Popularity: 0.105808
First Submitted: 2010-05-06 00:10
Last Updated: 2020-02-16 21:13

Dependencies (25)

Required by (276)

Sources (4)

Pinned Comments

alexanderp commented on 2020-02-17 18:36

@laborat, the recent (two days old) community/intel-mkl package lacks a lot of content from the split package.

Please keep on using aur/intel-mkl as part of aur/intel-parallel-studio-xe until the relevant scripts are ported to community.

Also, as a general note, those with Ryzen processors could obtain even better performance by setting an environment variable. Please see https://www.reddit.com/r/MachineLearning/comments/f2pbvz/discussion_workaround_for_mkl_on_amd/

jdarch commented on 2014-09-06 09:31

I believe it might be better for users to create a custom makepkg-icc.conf with appropriate compiler flags, a file like that can be called with makepkg --config. That way it is also easy to use the compiler for various other packages.

gabx commented on 2014-09-02 07:39

some of us are using the Intel compiler (IC). As I don't think it is worth having two r-mkl AUR packages, would you mind adding something like that in your PKGBUILD to enable IC.

at the begining:

# _CC="icc" # uncomment to build with the Intel compiler

then below the # build package:
if [ $_CC = "icc" ]; then
export CC="icc"
export CXX="icpc"
export AR="xiar"
export LD="xild"
fi

Thank you

jdarch commented on 2014-08-30 12:28

I have added a line to change R's config script to look in Makeconf. setbl, this should resolve your package building issue I suppose. Please post comments here if this change breaks something.

jdarch commented on 2014-08-30 10:48

rJava takes build flags from 'R CMD config --ldflags'. Apparently the 'config' script does not take LDFLAGS from R's Makeconf (which should include the path to libimf), but from the environment. Setting the environment variable should enable you to complete the build of rJava. I have no clue as to the reasons for the 'config' script not including LDFLAGS from Makeconf but from the environment (while taking the other parameters from Makeconf, not from the environment).

I might just include a patch for the config script in a new PKG release.

jdarch commented on 2014-08-28 20:38

You might need to look at the library configuration in /etc/R/Makeconf /etc/R/javaconf and the other config files, I had added in -limf before -lm and made some other modifications, I might need to look at the PKGBUILD to create the appropriate LD-PATH settingse etc automatically. You can try if adding the Intel lib path to JAVA_LD_LIBRARY_PATH in javaconf fixes things

setbl commented on 2014-08-24 13:40

after successfully installing r-mkl, I cannot install.packages('rJava')

error is /usr/bin/ld: cannot find -limf

which is missing in the system but is an mkl library

tklee commented on 2014-07-15 02:22

Sorry, I forgot to mention I was using icc.

tklee commented on 2014-07-15 02:21

FYI, I had to add -parallel in LDFLAGS in PKGBULID to compile.

LDFLAGS="${LDFLAGS} -L${_icclibpath} -parallel"

gabx commented on 2014-04-21 11:15

During the last part of building, the test part, I have one error when testing mgcv.Rcheck:

Intel MKL FATAL ERROR: Cannot load libmkl_avx.so or libmkl_def.so.

R-mkl still built and is not broken. This error is quite weird as :
1 - $ cat /etc/ld.so.confd/intel-mkl
/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64
/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64

2- In PKGBUILD ${LD_LIBRARY_PATH} is correctly set and path to lib is OK.

gabx commented on 2014-04-21 11:05

FYI, your package build fine with these optimization flags:
export CFLAGS="-Wall -Ofast -funsafe-loop-optimizations -ipo -openmp -xHost -Wno-fstrict-aliasing"
export CXXFLAGS="-Wall -Ofast -ipo -funsafe-loop-optimizations -openmp -xHost -Wno-fstrict-aliasing -march=native -flto"

Then, I use the ICC and ICPC compiler. I need each time to hack your PKGBUILD (not a great deal thought). Would you mind adding something like this:

# Build the package using the icc compiler
_CC="icc"
if [ $_CC = "icc" ]; then
export CC="icc"
export CXX="icpc"
export AR="xiar"
export LD="xild"
fi

I use this as LDFLAGS:

export LDFLAGS="-L${_icclibpath} -${CXXFLAGS} -shared-intel"

Last, when building R, R-mkl and R-studio, I remarked my home Rprofile.r is screawing the build. So I add these lines too and have a cleaner build:

# unset user Rprofile.r variable for building
if [ -n $R_PROFILE_USER ]; then
unset R_PROFILE_USER
fi


TY for your package.