The Real Downloads Page

Thanks for your details, I will only use these to let you know about new releases of LDAK (which happens very, very rarely). To avoid having to enter your details again on the previous page, you can click the link below the sign-up box.

LDAK is a command-line software, that can be run on either a Linux-base PC or Mac. Currently, LDAK does not run on Windows, so I suggest you instead log into a Linux server (for example, you can use putty to ssh into your local computer cluster). Note that there are two LINUX versions. In general, I recommend using the serial version, but if you have multiple processors available, the parallel version can be bit faster (but the speed-up is far from linear, and be careful you don't drown your cluster!).
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

To run LDAK using Linux:

1 - Download and unzip one of the two Linux executable files (links at the bottom).
2 - Open a terminal window (on my Linux, I go to Applications / System Tools / Terminal)
3 - Type the name of the file; for example
/home/doug/Downloads/ldak5.1.linux
or if you are in the same folder as the executable file, you can simply type
./ldak5.1.linux

If compatible with your system, this should produce the LDAK welcome screen. Note that if your computer tells you that you do not have permission to run the file, then first run
chmod a+x ldak5.1.linux
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Should you wish to compile a LINUX version yourself, please download and unzip the source code, then the basic command (from within the source code folder) is
gcc -o ldak5.1.linux ldak_slow.c libqsopt.linux.a -lblas -llapack -lm -lz
chmod a+x ldak5.1.linux

Note that the pre-compiled versions use the Intel MKL Libraries, so are likely to be faster than a self-compiled version. The command I used was
gcc -O3 -std=gnu99 -pedantic ldak.c -o ldak5.1.linux libqsopt.linux.a -static -Wl,--no-as-needed -L mkl_lib -Wl,--start-group -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread -lm -ldl -I mkl_include libz.a -lc -DMKL_LP64 -m64
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

To run LDAK on a Mac:

1 - Download and unzip the Mac executable file (link at the bottom).
2 - Open a terminal window (go to Finder / Applications / Utilities)
3 - Type the name of the file; for example
Downloads/ldak5.1.mac
or if you are in the same folder as the executable file, you can simply type
./ldak5.1.mac

If compatible with your system, this should produce the LDAK welcome screen. Note that if your computer tells you that you do not have permission to run the file, then first run
chmod a+x ldak5.1.mac
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

To compile a MAC version yourself, please download and unzip the source code, then (from within the source code folder) type
gcc -o ldak5.1.mac ldak.c libqsopt.mac.a -lblas -llapack -lm -lz
chmod a+x ldak5.1.mac
Note that the compilation requires xcode, to install this type
xcode-select --install
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Click here to download LDAK5.1.linux (serial)
Click here to download LDAK5.1.linux (parallel)
Click here to download LDAK5.1.mac (coming soon)
Click here to download source code for LDAK5.1

Thanks to Ben Anderson for compiling the Mac version