                            PLASMA CMAKE BUILD NOTES

   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 [1]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.
     __________________________________________________________________

PLASMA on a Windows Machine

   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.

  Using PLASMA on a Windows Machine

   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

  Building PLASMA on a Windows Machine

   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.

  Building 64 bit on Windows with Intel Environment

   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

  Building 32 bit on Windows with Intel Environment

   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
     __________________________________________________________________

   Last updated 2009-11-12 12:45:29 EDT

References

   1. http://www.cmake.org/
