Contrib:Claws/Code Aster/amd math
<-Link: Back to Contrib:Claws/Code_Aster
Using AMD math libs with Code_Aster
Small guide to using AMD math libs. with Aster. Download them at http://developer.amd.com/cpu/Libraries/acml/downloads/pages/default.aspx
To use the AMD math libraries to compile Code_Aster is not very complicated; follow these few steps and you're golden:
In the setup.py file change the preferred compiler:
PREFER_COMPILER = 'GNU_without_MATH'
Now insert a line containing the path to where you installed them:
MATHLIB= '-L/opt/acml4.3.0/gfortran64/lib -lacml'
Make sure Aster can find them:
(as root): Create a file called /etc/ld.so.conf.d/amd_math.conf - the file contains the path /opt/acml4.3.0/gfortran64/lib - run 'ldconfig'
Now start the installation of Aster as you normally would.
A small test gave me some pretty good initial results. Before and after applying the AMD math libs.
Before:
******************************************************************************** * TOTAL_JOB : 168.85 : 3.85 : 172.70 : 173.04 * ********************************************************************************
After:
******************************************************************************** * TOTAL_JOB : 87.56 : 4.11 : 91.67 : 92.07 * ********************************************************************************
.
.
/Claws 2010/02/04 12:18