[R] Trouble configuring R to use ACML

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Aug 24 23:15:39 CEST 2010


This is easier if you simply link to the ACML BLAS as an alternative 
to Rblas.so -- see the R-admin manual.

If you need further help, please ask on the R-devel list (see the 
posting guide).  It seems likely that you missed the comment in the 
R-admin manual about ensuring that the ACML lib directory is in 
LD_LIBRARY_PATH, so please check the manual subsection carefully. 
(More generally, you may well need to add that directory to the ld.so 
cache: some installation of ACML arrange to do so, some do not.  I 
have

gannet% cat /etc/ld.so.conf.d//acml-x86_64.conf
/opt/acml4.4.0/gfortran64/lib
/opt/acml4.4.0/gfortran64_mp/lib
.)

On Tue, 24 Aug 2010, szembek wrote:

>
> I am trying to get R to use the ACML BLAS, specifically the 'mp' version for
> multithreading.
>
> I have installed acml-4-4-0-gfortran-64bit
>
> I added /opt/acml4.4.0/gfortran64_mp/lib to $LD_LIBRARY_PATH.
>
> I ran: sudo ./configure --with-blas="-L/opt/acml4.4.0/gfortran64_mp/lib
> -lacml_mp"
>
> At the end of the configuration, the only external library listed is
> readline, and at the end of my post here is a section of my config.log that
> shows the problem. Any ideas as to what I'm missing here? I'm running Ubuntu
> Server 10.
>
>
> ------ config.log -------
> configure:28567: checking for dgemm_ in -L/opt/acml4.4.0/gfortran64_mp/lib
> -lacml_mp
> configure:28588: gcc -std=gnu99 -o conftest -g -O2 -I/usr/local/include
> -L/usr/local/lib64 conftest.c -L/opt/acml4.4.0/gfortran64_mp/lib -lacml_mp
> -lgfortran -lm -ldl -lm >&5
> conftest.c: In function 'main':
> conftest.c:193: warning: implicit declaration of function 'dgemm_'
> configure:28588: $? = 0
> configure:28595: result: yes
> configure:29120: checking whether double complex BLAS can be used
> ./conftest: error while loading shared libraries: libacml_mp.so: cannot open
> shared object file: No such file or directory
>
>
>
> -- 
> View this message in context: http://r.789695.n4.nabble.com/Trouble-configuring-R-to-use-ACML-tp2337193p2337193.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list