[R] Building with MKL on Ubuntu

2008-11-04 Thread Anand Patil
Hi all,
I'm trying to build R from subversion with MKL 10.0.2 on Ubuntu. I tried:

./configure --with-blas='-L/opt/intel/mkl/10.0.2.018/lib/em64t -lmkl
-lguide' --with-lapack='/opt/intel/mkl/10.0.2.018/lib/em64t -lmkl
-lmkl_lapack' --enable-R-shlib

and got:

R is now configured for x86_64-unknown-linux-gnu

  Source directory:  .
  Installation directory:/usr/local

  C compiler:gcc -std=gnu99  -g -O2
  Fortran 77 compiler:   gfortran  -g -O2

  C++ compiler:  g++  -g -O2
  Fortran 90/95 compiler:gfortran -g -O2
  Obj-C compiler:

  Interfaces supported:  X11
  External libraries:readline
  Additional capabilities:   PNG, JPEG, iconv, MBCS, NLS, cairo
  Options enabled:   shared R library, shared BLAS, R profiling,
Java

  Recommended packages:  yes

but make then builds R's blas, and when I subsequently do linear algebra in
R it's obviously not multithreading. What am I doing wrong?

Thanks,
Anand

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] SHLIB problem under Vista

2007-09-19 Thread Anand Patil
Hi all,


I'd like to distribute an R package that compiles some (small) C functions
every time it's sourced. The relevant code in the top level R script is as
follows:

system(R CMD SHLIB Selma_extensions.c)
if (.Platform$OS.type==windows) {
slash = '\\'
dyn.load(Selma_extensions.dll)
}
if (.Platform$OS.type==unix) {
slash = '/'
dyn.load(Selma_extensions.so)
}


This works fine on a Mac, but I tried it under Windows Vista, after
installing RTools and telling it to put itself on the system path, and got
the following:

making Selma_extensions.d from Selma_extensions.c
gcc.exe: installation problem, cannot exec `cc1': No such file or directory
make: *** [Selma_extensions.d] Error 1
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library
'C:/Users/anand/Desktop/Selma/Selma_extensions.dll':
  LoadLibrary failure:  The specified module could not be found.

Can this be fixed without requiring the user to do anything?

Note: The compilation takes so little time relative to the use of the
package that it's no big deal to call SHLIB every time.


Thanks in advance,
Anand Patil

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.