59
|
1 <tool_dependency>
|
62
|
2 <package name="atlas" version="3.10.1">
|
59
|
3 <install version="1.0">
|
|
4 <actions>
|
62
|
5 <!-- first action is always downloading -->
|
|
6 <action type="download_by_url" target_filename="ATLAS.tar.bz2">http://downloads.sourceforge.net/project/math-atlas/Stable/3.10.1/atlas3.10.1.tar.bz2</action>
|
|
7 <!-- <action type="download_file">http://downloads.sourceforge.net/project/math-atlas/Stable/3.10.1/atlas3.10.1.tar.bz2</action>
|
|
8 <action type="shell_command">tar xfvj atlas3.10.1.tar.bz2</action>-->
|
|
9 <action type="download_file">http://www.netlib.org/lapack/lapack-3.4.2.tgz</action>
|
59
|
10
|
62
|
11 <action type="shell_command">
|
|
12 # try to disable cpu throttling
|
|
13 if hash cpufreq-selector 2>/dev/null; then
|
|
14 cpufreq-selector -g performance
|
|
15 elif hash cpupower 2>/dev/null; then
|
|
16 cpupower frequency-set -g performance
|
|
17 else
|
|
18 echo 'Please deactivate CPU throttling by your own, or install cpufreq-selector'
|
|
19 exit
|
|
20 fi
|
|
21 </action>
|
|
22 <action type="shell_command">
|
|
23 mkdir build &&
|
|
24 cd build &&
|
|
25 mkdir $INSTALL_DIR/atlas/ &&
|
|
26 ../configure -Fa alg -fPIC --prefix=$INSTALL_DIR/atlas/ --with-netlib-lapack-tarfile=../lapack-3.4.2.tgz
|
|
27 </action>
|
|
28 <action type="shell_command">cd ./build && make </action>
|
|
29 <action type="shell_command">cd ./build && make install</action>
|
59
|
30
|
|
31 <action type="set_environment">
|
62
|
32 <environment_variable name="ATLAS_LIB_DIR" action="set_to">$INSTALL_DIR/atlas/lib</environment_variable>
|
|
33 <environment_variable name="ATLAS_INCLUDE_DIR" action="set_to">$INSTALL_DIR/atlas/include</environment_variable>
|
59
|
34 </action>
|
|
35 </actions>
|
|
36 </install>
|
62
|
37 <readme>ATLAS_LIB_DIR and ATLAS_INCLUDE_DIR (including libatlas.a) will be exported for later use.
|
|
38 During ATLAS library compilation, ATLAS performs code efficiency checks. These checks can only provide optimal results, if "frequency scaling" is disabled on the CPU, and no other load-intense processes are running.
|
|
39 Ideally, you should compile on an empty cluster node with CPU frequency scaling disabled (see "cpufreq-selector" or "cpufreq-set").
|
59
|
40 </readme>
|
|
41 </package>
|
|
42 </tool_dependency>
|