Difference between revisions of "Benchmarking: Amber 16 with GPU v100"

From Define Wiki
Jump to navigation Jump to search
 
Line 22: Line 22:
 
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/:$LD_LIBRARY_PATH
 
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/:$LD_LIBRARY_PATH
  
# check mpi for cuda support  
+
# check mpi for cuda support (yum openmpi)
 
[david@sanger_4xv100 amber]$ ompi_info --parsable --all | grep mpi_built_with_cuda_support:value
 
[david@sanger_4xv100 amber]$ ompi_info --parsable --all | grep mpi_built_with_cuda_support:value
 
mca:mpi:base:param:mpi_built_with_cuda_support:value:false
 
mca:mpi:base:param:mpi_built_with_cuda_support:value:false
 +
 +
# this was built with --with-cuda
 +
[david@sanger_4xv100 amber16]$ ompi_info | grep -i cuda
 +
  Configure command line: '--with-cuda=/usr/local/cuda-9.0' '--prefix=/home/david/openmpi-301/'
 +
          MPI extensions: affinity, cuda
 +
                MCA btl: smcuda (MCA v2.1.0, API v3.0.0, Component v3.0.1)
 +
                MCA coll: cuda (MCA v2.1.0, API v2.0.0, Component v3.0.1)
 +
[david@sanger_4xv100 amber16]$  ompi_info --parsable --all | grep mpi_built_with_cuda_support:value
 +
mca:mpi:base:param:mpi_built_with_cuda_support:value:true
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 22:36, 23 April 2018

  • Note: Centos 7
  • Amber 16 with Amber tools 17

Software

[david@head-Boston benchmarks]$ pwd
/home/david/benchmarks
[david@head-Boston benchmarks]$ ls amber16
Amber16_Benchmark_Suite.tar.bz2  Amber16.tar.bz2  AmberTools17.tar.bz2


PreReqs

sudo yum install gcc gcc-gfortran gcc-c++ flex tcsh zlib-devel \
          bzip2-devel libXt-devel libXext-devel libXdmcp-devel tkinter \
          openmpi openmpi-devel perl perl-ExtUtils-MakeMaker patch bison

# Make sure to setup environment 
[david@sanger_4xv100 amber]$ tail -n 2 ~/.bashrc
export PATH=/usr/lib64/openmpi/bin/:$PATH
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/:$LD_LIBRARY_PATH

# check mpi for cuda support (yum openmpi)
[david@sanger_4xv100 amber]$ ompi_info --parsable --all | grep mpi_built_with_cuda_support:value
mca:mpi:base:param:mpi_built_with_cuda_support:value:false

# this was built with --with-cuda
[david@sanger_4xv100 amber16]$ ompi_info | grep -i cuda
  Configure command line: '--with-cuda=/usr/local/cuda-9.0' '--prefix=/home/david/openmpi-301/'
          MPI extensions: affinity, cuda
                 MCA btl: smcuda (MCA v2.1.0, API v3.0.0, Component v3.0.1)
                MCA coll: cuda (MCA v2.1.0, API v2.0.0, Component v3.0.1)
[david@sanger_4xv100 amber16]$  ompi_info --parsable --all | grep mpi_built_with_cuda_support:value
mca:mpi:base:param:mpi_built_with_cuda_support:value:true

Unpack

tar jxvf  AmberTools17.tar.bz2
tar jxvf  Amber16.tar.bz2
cd amber16

Build

export AMBERHOME=/home/david/amber/amber16
export AMBER_PREFIX=/home/david/amber/amber16
export AMBER_SOURCE=/home/david/amber/amber16
export CUDA_HOME=/usr/local/cuda-9.0

# If you wish to run both single and multiple-GPU runs, you must perform the configure and build steps for both with MPI and without. 

./configure -cuda -noX11 gnu
make install -j32
./configure -cuda -mpi -noX11 gnu
make install -j32