I tried to modify the configure file in the gputools package to match 
with the new CULA library names:

1) make it check for the existence of libcula_core.so instead of  libcula.so
2) and change the link -lcula to both -lcula_core and -lcula_lapack as 
suggested in the reference guide.
3) also had to add -fpic parameter for the compilation of ica.o and 
svd.o (it fails to compile otherwise)

With these change, gputools.so is compiled without error but R fails to 
load it. I get the following error message:

Error in dyn.load(file, DLLpath = DLLpath, ...) :
   unable to load shared object 
'/home/pierre/R/x86_64-pc-linux-gnu-library/2.15/gputools/libs/gputools.so':
   
/home/pierre/R/x86_64-pc-linux-gnu-library/2.15/gputools/libs/gputools.so: 
undefined symbol: max
Error: loading failed
Execution halted
ERROR: loading failed

I don't understand because cula.h is supposed to include all C libraries.

On 04/10/12 12:43 PM, Paul Johnson wrote:
> Guy here: http://www.culatools.com/forums/viewtopic.php?f=15&t=1025
>
> claims recent CULA does not offer libcula.so and that would explain
> the trouble you are seeing. Better check on your CULA library versions
> and where the install libcula.so, if you do have one.
>
> pj
>
> On Tue, Oct 2, 2012 at 12:41 PM, Pierre Chausse<pchausse@uwaterloo.ca>  wrote:
>> Hi all,
>>
>> I was wondering if any of you succeeded installing the gputools package
>> with CULA enabled. It seems that the package is looking for libcula.so
>> in order to determined whether CULA is installed but the are no
>> libcula.so, at least not for the R15, R14 and R13a version of CULA.  The
>> closer file is libcula_core.so.
>>
>> Thanks
>>
>> --
>> *Pierre Chaussé*
>> Assistant Professor
>> Department of Economics
>> University of Waterloo
>>
>>          [[alternative HTML version deleted]]
>>
>>
>> _______________________________________________
>> R-sig-hpc mailing list
>> R-sig-hpc@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-hpc
>>
>
>


-- 
*Pierre Chaussé*
Assistant Professor
Department of Economics
University of Waterloo

	[[alternative HTML version deleted]]

