Open main menu

Changes

Installation linux

758 bytes added, 16:29, 11 September 2013
== Helper start scripts ==
If you have several versions or development branches of relax installed, you could probably use some of these scripts, and put them in your PATH.
=== Script for force running the disp branch of relax on the server computer haddock ===
This script exemplifies a setup, where the above installation requirements is met on one server computer ''haddock'', and where satellite computers
are forced to run on this computer.
$RELAX $argv
endif
</source>
 
=== Script for running the disp branch of relax with maximum number of processors available ===
This script exemplifies a setup, to test the running relax with maximum number of processors.
 
The file '''relax_test''' is made executable, and put in a PATH, known by all satellite computers.
<source lang="bash">
#!/bin/tcsh -fe
 
# Set the relax version used for this script.
set RELAX=/sbinlab2/tlinnet/software/NMR-relax/relax_disp/relax
 
# Remove env set to wrong library files.
unsetenv LD_LIBRARY_PATH
 
# Set number of available CPUs.
set NPROC=`nproc`
set NP=`echo $NPROC + 1 | bc `
 
echo "Running relax with NP=$NP in multi-processor mode"
 
# Run relax in multi processor mode.
/usr/lib64/openmpi/bin/mpirun -np $NP $RELAX --multi='mpi4py' $argv
</source>
Trusted, Bureaucrats
1,382

edits