cd examples nmake -f Makefile.nmake example_dpotrf.c example_dpotrf.exe
These notes are intended to help you build PLASMA using CMake build system. The open source CMake build system can be downloaded and installed from http://www.cmake.org/.
Currently, the CMake build system is used mainly to generate Windows binaries and packages. In the future CMake may also be used for the Unix and Linux builds.
For Windows, PLASMA is distributed as a pre-built package for 32 and 64 bit architectures. The only extra requirement is an external BLAS library that needs to be available.
The examples directory contains a Makefile.nmake that gives several examples of how to compile and link example PLASMA programs using different compilers and BLAS in 32 or 64 bit precisions. Adjust to your environment, and compile and run.
cd examples nmake -f Makefile.nmake example_dpotrf.c example_dpotrf.exe
You should normally not need to rebuild PLASMA, but you may chose to do so. The tested build environment consists of Intel C and Fortran compilers with the Intel MKL BLAS. You will need to have the CMake build system installed. Currently the CMake build requires that you do not build in the source directory so that pre-existing files are not clobbered. The examples below create a separate BUILD directory and do the builds there.
Assuming you are in top directory for your PLASMA distribution. Setup a command shell with the Intel environment (adjust paths for your machine)
call "c:/Program Files (x86)/Intel/Compiler/Fortran/10.1.025/EM64T/Bin/ifortvars.bat" call "c:/Program Files (x86)/Intel/Compiler/C++/10.1.025/EM64T/Bin/iclvars.bat" call "c:/Program Files/Intel/MKL/10.0.4.023/tools/environment/mklvarsem64t.bat" mkdir BUILD cd BUILD cmake -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icl -DCMAKE_CXX_COMPILER=icl -G "NMake Makefiles" .. nmake
Assuming you are in top directory for your PLASMA distribution. Setup a command shell with the Intel environment (adjust paths for your machine)
call "c:/Program Files (x86)/Intel/Compiler/Fortran/10.1.025/IA32/Bin/ifortvars.bat" call "c:/Program Files (x86)/Intel/Compiler/C++/10.1.025/IA32/Bin/iclvars.bat" call "c:/Program Files/Intel/MKL/10.0.4.023/tools/environment/mklvars32.bat" mkdir BUILD cd BUILD cmake -DCMAKE_Fortran_COMPILER=ifort -DCMAKE_C_COMPILER=icl -DCMAKE_CXX_COMPILER=icl -G "NMake Makefiles" .. nmake