Open main menu

Changes

Run relax at Google Cloud Computing

126 bytes added, 12:47, 27 October 2017
Switch to the {{relax source}} and {{relax url}} templates for the code URLs.
# Create instance
gcloud compute instances create relax --zone us-central1-f --machine-type n1-highcpu-8 4 --image ubuntu-14-04 --boot-disk-size 10GB
gcloud compute instances list
# Or
gcloud compute instances create relax --zone us-central1-f --machine-type n1-highcpu-2 4 --image rhel-6-v20160921 --boot-disk-size 10GB
</source>
For '''rapid deployment''' use this command. This will install current version of relax and trunk.
<b>For Ubuntu</b><br>See the list of deploy scripts here[http://svn.gna.org/viewcvs/*checkout*/{{relaxurl|path=devel_scripts/trunkdeploy_scripts/devel_scripts/deploy_google_computing_ubuntu.sh?content-type=text%2Fplain See }} Then download the install script here]that matches the system.<{{#tag: source lang|# Select a version script# Redhat Version 6VERS=deploy_google_computing_redhat_6_86_x64.shVERS="bash">deploy_google_computing_redhat_6_86_x64_upgrade_python.sh# Centos Version 6URLVERS=http://svndeploy_google_computing_centos_6_86_x64_upgrade_python.gnash# Redhat Version 7VERS=deploy_google_computing_redhat_7_86_x64.org/viewcvs/*checkout*/relax/trunk/devel_scripts/deploy_google_computing_ubuntush# UbuntuVERS=deploy_google_computing_ubuntu_14-04_86_x64.sh #eval "$(curl "$Then set download URL")"wget URL={{relax url|path=devel_scripts/deploy_scripts/$URLsource deploy_google_computing_ubuntu.shVERS|view=raw}}
# See functionsDownload and readlcat deploy_google_computing_ubuntu.shsudo yum -y install wgetwget $URL $VERSinstallandcheckmv $VERS* $VERS</source>cat $VERS
<b>For Redhat _6_86_x64</b><br># Load functions[http://svn.gna.org/viewcvs/*checkout*/relax/trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64.sh?content-type=text%2Fplain See the install script here]<source lang="bash">URL=http://svn.gna.org/viewcvs/*checkout*/relax/trunk/devel_scripts/deploy_google_computing_redhat_6_86_x64.shwget $URLsource deploy_google_computing_redhat_6_86_x64.shVERS
# See functionscat deploy_google_computing_redhat_6_86_x64.shDo installation
installandcheck
</source>| lang="bash"}} 
'''Check installation of relax'''
== Test openmpi ==
[http://svn.gna.org/viewcvs/*checkout*/For BASH shell<br>{{relax/trunk/source|path=devel_scripts/openmpi_test_installopenmpi_test_install_bash.sh?content-type|view=raw|text%2Fplain =See the script here]}}<{{#tag: source lang="bash">|URL=http://svn.gna.org/viewcvs/*checkout*/{{relax/trunk/url|path=devel_scripts/openmpi_test_installopenmpi_test_install_bash.sh|view=raw}}
wget $URL
$SHELL openmpi_test_installmv openmpi_test_install_bash.sh* openmpi_test_install_bash.sh # Source functionssource openmpi_test_install_bash.shtestopenmpi| lang="bash"}} For TCSH shell<br>{{relax source|path=devel_scripts/openmpi_test_install_tcsh.sh|view=raw|text=See the script here}}{{#tag: source>|alias get 'set noglob; wget {{relax url|path=devel_scripts/openmpi_test_install_tcsh.sh|view=raw}}; mv openmpi_test_install_tcsh.sh* openmpi_test_install_tcsh.sh;unset noglob'get # Source functionssource openmpi_test_install_tcsh.sh| lang="bash"}} 
==Transfer files back and forth to the server==
This follows some example data from the tutorial here [[Tutorial_for_sorting_data_stored_as_numpy_to_on-resonance_R1rho_analysis|Tutorial for sorting data stored as numpy to on resonance R1rho_analysis]]
[http://svn.gna.org/viewcvs/{{relax/trunk/source|path=test_suite/shared_data/dispersion/Paul_Schanda_2015_Nov |text=Overview of directory]}}
Copy data to local dir
[http://svn.gna.org/viewcvs/*checkout*/{{relax/trunk/source|path=test_suite/shared_data/dispersion/Paul_Schanda_2015_Nov/1_tutorial_prepare_data.py?content-type|text=text%2Fplain Prepare data]}}
{{#tag:source|
cat 1_tutorial_prepare_data.py
}}
[http://svn.gna.org/viewcvs/*checkout*/{{relax/trunk/source|path=test_suite/shared_data/dispersion/Paul_Schanda_2015_Nov/2_tutorial_load_data.py?revision|text=28131&content-type=text%2Fplain Run analysis]}}
{{#tag:source|
cat 2_tutorial_load_data.py
mpirun --np 8 2 relax_trunk --multi='mpi4py' 2_tutorial_load_data.py
ls -latr
|lang="bash"
}}
[http://svn.gna.org/viewcvs/*checkout*/{{relax/trunk/source|path=test_suite/shared_data/dispersion/Paul_Schanda_2015_Nov/3_tutorial_clustered.py?content-type|text=text%2Fplain Run clustered analysis]}}
{{#tag:source|
cat 3_tutorial_clustered.py
mpirun --np 8 2 relax_trunk --multi='mpi4py' 3_tutorial_clustered.py
ls -latr
|lang="bash"
Trusted, Bureaucrats
4,223

edits