git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12898 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2015-01-08 19:17:29 +00:00
parent fa76884b09
commit f1b850e1e1
2 changed files with 46 additions and 24 deletions

View File

@ -912,6 +912,13 @@ can be used to automate various steps of the build process. It is
particularly useful for working with the accelerator packages, as well particularly useful for working with the accelerator packages, as well
as other packages which require auxiliary libraries to be built. as other packages which require auxiliary libraries to be built.
</P> </P>
<P>The goal of the Make.py tool is to allow any complex multi-step LAMMPS
build to be performed as a single Make.py command. And you can
archive the commands, so they can be re-invoked later via the -r
(redo) switch. If you find some LAMMPS build procedure that can't be
done in a single Make.py command, let the developers know, and we'll
see if we can augment the tool.
</P>
<P>You can run Make.py from the src directory by typing either: <P>You can run Make.py from the src directory by typing either:
</P> </P>
<PRE>Make.py -h <PRE>Make.py -h
@ -927,13 +934,13 @@ Python. And you may need to insure the script is executable:
</P> </P>
<DIV ALIGN=center><TABLE BORDER=1 > <DIV ALIGN=center><TABLE BORDER=1 >
<TR><TD >Install/uninstall packages</TD><TD > Make.py -p no-lib kokkos omp intel</TD></TR> <TR><TD >Install/uninstall packages</TD><TD > Make.py -p no-lib kokkos omp intel</TD></TR>
<TR><TD >Build specific auxiliary libs</TD><TD > Make.py lib-atc lib-meam</TD></TR> <TR><TD >Build specific auxiliary libs</TD><TD > Make.py -a lib-atc lib-meam</TD></TR>
<TR><TD >Build libs for all installed packages</TD><TD > Make.py -p cuda gpu -gpu mode=double arch=31 lib-all</TD></TR> <TR><TD >Build libs for all installed packages</TD><TD > Make.py -p cuda gpu -gpu mode=double arch=31 -a lib-all</TD></TR>
<TR><TD >Create a Makefile from scratch with compiler and MPI settings</TD><TD > Make.py -m none -cc g++ -mpi mpich file</TD></TR> <TR><TD >Create a Makefile from scratch with compiler and MPI settings</TD><TD > Make.py -m none -cc g++ -mpi mpich -a file</TD></TR>
<TR><TD >Augment Makefile.serial with settings for installed packages</TD><TD > Make.py -p intel -intel cpu -m serial file</TD></TR> <TR><TD >Augment Makefile.serial with settings for installed packages</TD><TD > Make.py -p intel -intel cpu -m serial -a file</TD></TR>
<TR><TD >Add JPG and FFTW support to Makefile.mpi</TD><TD > Make.py -m mpi -jpg -fft fftw file</TD></TR> <TR><TD >Add JPG and FFTW support to Makefile.mpi</TD><TD > Make.py -m mpi -jpg -fft fftw -a file</TD></TR>
<TR><TD >Build LAMMPS with a parallel make using Makefile.mpi</TD><TD > Make.py -j 16 -m mpi exe</TD></TR> <TR><TD >Build LAMMPS with a parallel make using Makefile.mpi</TD><TD > Make.py -j 16 -m mpi -a exe</TD></TR>
<TR><TD >Build LAMMPS and libs it needs using Makefile.serial with accelerator settings</TD><TD > Make.py -p gpu intel -intel cpu lib-all file serial <TR><TD >Build LAMMPS and libs it needs using Makefile.serial with accelerator settings</TD><TD > Make.py -p gpu intel -intel cpu -a lib-all file serial
</TD></TR></TABLE></DIV> </TD></TR></TABLE></DIV>
<P>The bench and examples directories give Make.py commands that can be <P>The bench and examples directories give Make.py commands that can be
@ -954,11 +961,15 @@ the "-h" switch.
</P> </P>
<P>E.g. typing "Make.py -h" gives <P>E.g. typing "Make.py -h" gives
</P> </P>
<PRE>Syntax: Make.py switch args ... <I>action1</I> <I>action2</I> ... <PRE>Syntax: Make.py switch args ...
actions: switches can be listed in any order
lib-all, lib-dir, clean, file, exe or machine help switch:
zero or more actions, in any order (machine must be last) -h prints help and syntax for all other specified switches
switches: switch for actions:
-a lib-all, lib-dir, clean, file, exe or machine
list one or more actions, in any order
machine is a Makefile.machine suffix, must be last if used
one-letter switches:
-d (dir), -j (jmake), -m (makefile), -o (output), -d (dir), -j (jmake), -m (makefile), -o (output),
-p (packages), -r (redo), -s (settings), -v (verbose) -p (packages), -r (redo), -s (settings), -v (verbose)
switches for libs: switches for libs:

View File

@ -906,6 +906,13 @@ can be used to automate various steps of the build process. It is
particularly useful for working with the accelerator packages, as well particularly useful for working with the accelerator packages, as well
as other packages which require auxiliary libraries to be built. as other packages which require auxiliary libraries to be built.
The goal of the Make.py tool is to allow any complex multi-step LAMMPS
build to be performed as a single Make.py command. And you can
archive the commands, so they can be re-invoked later via the -r
(redo) switch. If you find some LAMMPS build procedure that can't be
done in a single Make.py command, let the developers know, and we'll
see if we can augment the tool.
You can run Make.py from the src directory by typing either: You can run Make.py from the src directory by typing either:
Make.py -h Make.py -h
@ -920,13 +927,13 @@ chmod +x Make.py :pre
Here are examples of build tasks you can perform with Make.py: Here are examples of build tasks you can perform with Make.py:
Install/uninstall packages: Make.py -p no-lib kokkos omp intel Install/uninstall packages: Make.py -p no-lib kokkos omp intel
Build specific auxiliary libs: Make.py lib-atc lib-meam Build specific auxiliary libs: Make.py -a lib-atc lib-meam
Build libs for all installed packages: Make.py -p cuda gpu -gpu mode=double arch=31 lib-all Build libs for all installed packages: Make.py -p cuda gpu -gpu mode=double arch=31 -a lib-all
Create a Makefile from scratch with compiler and MPI settings: Make.py -m none -cc g++ -mpi mpich file Create a Makefile from scratch with compiler and MPI settings: Make.py -m none -cc g++ -mpi mpich -a file
Augment Makefile.serial with settings for installed packages: Make.py -p intel -intel cpu -m serial file Augment Makefile.serial with settings for installed packages: Make.py -p intel -intel cpu -m serial -a file
Add JPG and FFTW support to Makefile.mpi: Make.py -m mpi -jpg -fft fftw file Add JPG and FFTW support to Makefile.mpi: Make.py -m mpi -jpg -fft fftw -a file
Build LAMMPS with a parallel make using Makefile.mpi: Make.py -j 16 -m mpi exe Build LAMMPS with a parallel make using Makefile.mpi: Make.py -j 16 -m mpi -a exe
Build LAMMPS and libs it needs using Makefile.serial with accelerator settings: Make.py -p gpu intel -intel cpu lib-all file serial :tb(s=:) Build LAMMPS and libs it needs using Makefile.serial with accelerator settings: Make.py -p gpu intel -intel cpu -a lib-all file serial :tb(s=:)
The bench and examples directories give Make.py commands that can be The bench and examples directories give Make.py commands that can be
used to build LAMMPS with the various packages and options needed to used to build LAMMPS with the various packages and options needed to
@ -946,11 +953,15 @@ the "-h" switch.
E.g. typing "Make.py -h" gives E.g. typing "Make.py -h" gives
Syntax: Make.py switch args ... {action1} {action2} ... Syntax: Make.py switch args ...
actions: switches can be listed in any order
lib-all, lib-dir, clean, file, exe or machine help switch:
zero or more actions, in any order (machine must be last) -h prints help and syntax for all other specified switches
switches: switch for actions:
-a lib-all, lib-dir, clean, file, exe or machine
list one or more actions, in any order
machine is a Makefile.machine suffix, must be last if used
one-letter switches:
-d (dir), -j (jmake), -m (makefile), -o (output), -d (dir), -j (jmake), -m (makefile), -o (output),
-p (packages), -r (redo), -s (settings), -v (verbose) -p (packages), -r (redo), -s (settings), -v (verbose)
switches for libs: switches for libs: