The Real Downloads Page

Thanks for your details, I will only use these to inform you of a major update to LDAK (which happens less than once a year). 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 a Mac. I strongly recommend the Linux version, as it will often be much faster than the mac version. 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).
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

To run LDAK using Linux:

1 - Download and unzip the Linux executable file (link 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
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

The pre-compiled Linux version uses the Intel MKL Libraries. The command I used was

gcc -O3 -o ldak5.1.linux source/ldak.c source/libqsopt.linux.a -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_gnu_thread.a ${MKLROOT}/lib/intel64/libmkl_core.a -Wl,--end-group -lgomp -lpthread -lm -ldl -m64 -I${MKLROOT}/include -lz -fopenmp -static

Should you wish to compile a Linux version yourself, please download and unzip the source code, then from inside that folder run a command similar to

gcc -o ldak5.1 ldak.c libqsopt.linux.a -lblas -llapack -lm -lz
chmod a+x ldak5.1

The exact command will depend on which libraries you have installed. This should take less than a minute to complete. Note that if you do not have Intel MKL Libraries installed, you will be required to turn off the MKL libraries, by editing Line 63 of ldak.c (replace #define MKL 1 with #define MKL 0). For this reason, a self-compiled version will likely be slower than the pre-compiled version.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

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 inside that folder run a command similar to

gcc -o ldak5.1.mac ldak.c libqsopt.mac.a -lblas -llapack -lm -lz
chmod a+x ldak5.1.mac

The exact command will depend on your system and which libraries you have installed. This should take less than a minute to complete. Note that you will be required to turn off the MKL libraries, by editing Line 63 of ldak.c (replace #define MKL 1 with #define MKL 0). Further, it may be necessary to add --framework accelerate to the above command, and/or to install xcode, by first running the command

xcode-select --install
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Files updated July 2021 - please note, there is now only one linux executable, that contains both serial and parallel versions

Click here to download LDAK5.1.linux
Click here to download LDAK5.1.mac
Click here to download source code for LDAK5.1
Click here to download a README file