Skip to content
Snippets Groups Projects

aws_mvapich2.sh

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Jeff Smith

    This shell script downloads and installs mvapich2-x awsaws_mvapich2-x.sh

    Edited
    aws_mvapich2.sh 792 B
    #!/bin/bash
    
    OSV=$(awk -F= '/^NAME/{print $2}' /etc/os-release | sed 's/[""]//g')
    
    echo ""
    echo " Installing MVAPICH2-X in /opt/mvapich2/"
    echo ""
    
    if [ "$OSV" == "CentOS Linux" ] || [ "$OSV" == "Amazon Linux" ]; then
    	echo "Installing MVAPICH2-X for $OSV"
    	wget https://mvapich.cse.ohio-state.edu/download/mvapich/mv2x/2.3/mofed4.6/mvapich2-x-aws-xpmem-mofed4.6-gnu7.3.1-2.3rc3XAWS-2.amzn2.x86_64.rpm
    	sudo rpm -ivh mvapich2-x-aws-xpmem-mofed4.6-gnu7.3.1-2.3rc3XAWS-2.amzn2.x86_64.rpm
    elif [ "$OSV" == "Ubuntu" ]; then
    	echo "Installing MVAPICH2-X for $OSV"
    	wget https://mvapich.cse.ohio-state.edu/download/mvapich/mv2x/2.3/mofed4.6/mvapich2-x-aws-xpmem-mofed4.6-gnu7.3.1_2.3rc3XAWS-2.amzn2_amd64.deb
    	sudo dpkg -i mvapich2-x-aws-xpmem-mofed4.6-gnu7.3.1_2.3rc3XAWS-2.amzn2_amd64.deb
    fi
    
    
    
    
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment