The Kernel-Machine Library builds on top of the libraries below.
This section describes how to start developing with the Kernel-Machine library on a Debian GNU/Linux-based operating system.
Using root privileges, please run apt-get to install the following packages.
$ apt-get install atlas3-base-dev g++ scons subversion libboost-dev \ libboost-serialization-dev libboost-program-options*
Using your local user account, execute the following commands.
$ cd ~/my/development/dir/ $ svn checkout http://www.terborg.net/svn/trunk/kml $ cd kml $ scons
By executing the scons command, some examples will be built the in the directory kml/examples/. If this is your first install, perhaps you are interested in continuing by reading the tutorial, or browsing through the Reference.
If for some reason these instructions did not work out as advertised here, please drop us a message at obfuscated email address, and/or take a look at the improvement guide.
This section describes the necessary steps to start using the Kernel-Machine Library on a Microsoft Windows System, using free software only. To be able to perform these steps, you will need Administrator privileges.
To develop applications comfortably under Microsoft Windows, you will need to have installed both a C++ compiler, and the Windows Platform SDK (the latter is already included in the non-free version of Visual C++).
Some additional installation instructions and hints are also available the notes on the page about Boost’s vc-8_0 toolset.
To check whether the compiler is installed, please run the Visual C++ Command Window (should be available in your menu), and try to execute cl. Check whether a file vcvars32.bat exists in the bin subdirectory of the Visual C++ compiler, as it is needed to build the Boost Libraries in the next step.
On Windows x86 platforms, the Boost Libraries can most easily be installed using self-extracting prebuilt executables. The authors of the Boost libraries provide installation instructions at their getting started page.
For the impatient, we have provided the following steps.
bjam "-sTOOLS=vc-8_0"
and wait for the compilation process to finish.
The Boost libraries are now installed. If anything went wrong, then more detailed information about Boost can be found at Boost’s homepage.
Obtaining working ATLAS binaries under Microsoft Windows could be one of the most annoying steps.
If you are lucky, you could use convenient prebuilt libraries provided here (if available). Otherwise you will have to create ATLAS DLLs manually.
The following files are available here:
If you use these, you can skip the next subsection and go ahead to subsection 3.4.
If your architecture is not listed here, and if you have successfully built an ATLAS dll and lib (as described below), please send us a copy of the dll and lib file at obfuscated email address. Your hard work will safe other people’s time, which we think is a good thing.
gcc-g++
gcc-g77
makecd C:\Atlas make config
You will be asked a series of questions, shown below. If you press enter without answering, it will use the [default] value.
Enter number at top left of screen [0]: 24 Have you scoped the errata file? [y]: Are you ready to continue? [y]: Enter your machine type: 1. Other/UNKNOWN 2. AMD Athlon 3. 32 bit AMD Hammer 4. 64 bit AMD Hammer 5. Pentium PRO 6. Pentium II 7. Pentium III 8. Pentium 4 Enter machine number [1]: 2 enable Posix threads support? [n]: use express setup? [y]: Enter Architecture name (ARCH) [WinNT_ATHLONSSE1]: Enter Maximum cache size (KB) [4096]: Enter File creation delay in seconds [0]: Use supplied default values for install? [y]:
After these questions have been answered, ATLAS will create makefiles on the basis of your configuration. It will give you a confirmation of success.
make install arch=WinNT_ATHLONSSE1
depending on the name of your processor. After compiling, you will have a subdirectory called lib/WinNT_ATHLONSSE1 in your ATLAS directory, which should contain the following files:
These files are the ATLAS binaries, and they may be used to create a DLL containing these files.
./kml_win_dll.sh
You will get a message “Generating the KML ATLAS DLL”. After this command is complete, you should be able to see new files called
in that directory. If you would like to link against the ATLAS routines from within Visual Studio, you will have to do two things in Visual Studio:
Prior to installing SCons, install Python by downloading and running the installer python-2.5.msi. Make sure that Python is in your PATH, e.g., by adding by C:\Python25 to your PATH environment variable, as described here.
Next, install Scons by running scons-0.96.1.win32.exe. The installation process will find Python automatically.
Download the latest zipped archive of the Kernel-Machine Library, kml.tar.gz, and unzip it to a directory of your choice, e.g., C:\kml.
Open a Visual C++ Command Window, and execute the following steps.
cd C:\kml scons
By executing the scons command, the ATLAS DLL will be built, and some examples will be built in the directory kml\examples. If this is your first install, perhaps you are interested in continuing by reading the tutorial, or browsing through the Reference.
If for some reason these instructions did not work out as advertised here, please drop us a message at obfuscated email address, and/or take a look at the improvement guide.
Clint Whaley, Antoine Petitet, and Jack Dongarra. Automated empirical optimization of software and the ATLAS project. Parallel Computing, 27(1–2):3–35, 2001.
http://www.netlib.org/lapack/lawns/lawn147.ps