Difference between revisions of "Broadband Platform Manual Installation 16 5 0"

From SCECpedia
Jump to navigationJump to search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The Broadband Platform v16.5.0 provides a new "easy install" script at [[/Broadband_User_Guide_v16.5.0#Broadband_Platform_Easy_Installation]]. However, advanced users may want to install some, or all, of the BBP platform software manually. The following sections provide information that might be useful if you are performing a manual installation on either a Linux of Mac system.
+
The Broadband Platform v16.5.0 provides a new "easy install" script at the [[Broadband_User_Guide_v16.5.0#Broadband_Platform_Easy_Installation|Broadband User Guide]] page. However, advanced users may want to install some, or all, of the BBP platform software manually. The following sections provide information that might be useful if you are performing a manual installation on either a Linux of Mac system.
 
 
== Mac OS X Installation ==
 
 
 
Mac OS X users should refer to our [[BBP on OS X Guide 16 5]] for installing the above dependencies to their system. After completing the steps on that guide, please return to this page and continue reading these installation instructions to finalize the Broadband Platform setup.
 
  
 
== User Account Setup ==
 
== User Account Setup ==
Line 9: Line 5:
  
 
To check your account, make sure you can run basic commands like ''ls'' and ''cd'' before proceeding.
 
To check your account, make sure you can run basic commands like ''ls'' and ''cd'' before proceeding.
 +
 +
== Mac OS X Installation ==
 +
Mac OS X users should refer to our [[BBP on OS X Guide 16 5]] for installing the above dependencies to their system. After completing the steps on that guide, please return to this page and continue reading these installation instructions to finalize the Broadband Platform setup.
  
 
== Downloading the Platform ==
 
== Downloading the Platform ==
 
Download the main Broadband distribution file using the links below:
 
  
 
To install and use the Broadband platform, you need the source code, one or more Green's Functions packages, and optionally one or more Validation packages. The Broadband Platform contains cumulative improvements to the geoscientific codes and software infrastructure. We recommend use of the most recent version of the Broadband Platform, unless you are trying to reproduce results generated with an earlier version of the platform.
 
To install and use the Broadband platform, you need the source code, one or more Green's Functions packages, and optionally one or more Validation packages. The Broadband Platform contains cumulative improvements to the geoscientific codes and software infrastructure. We recommend use of the most recent version of the Broadband Platform, unless you are trying to reproduce results generated with an earlier version of the platform.
  
 
Users that are upgrading from previous version of the Broadband Platform will need to retrieve new versions of all the Broadband Platform packages as there have been significant changes in all the packages since the previous 15.3.0 release.
 
Users that are upgrading from previous version of the Broadband Platform will need to retrieve new versions of all the Broadband Platform packages as there have been significant changes in all the packages since the previous 15.3.0 release.
 +
 +
Download the main Broadband distribution file using the links below. Next to each file, we list its MD5 sum so that users can check if the file has been correctly downloaded. On Linux computers, users should use the "md5sum" command and on Mac OS X users can use the "md5" command.
  
 
==== Required Files ====
 
==== Required Files ====
 
The following packages are the minimum set of files required to run the Broadband Platform. This set includes files needed for running the Unit and Acceptance tests.
 
The following packages are the minimum set of files required to run the Broadband Platform. This set includes files needed for running the Unit and Acceptance tests.
  
* Source Distribution (59MB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/bbp-dist-16.5.0.tar.gz BBP 16.5.0]
+
* Source Distribution (59MB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/bbp-dist-16.5.0.tar.gz BBP 16.5.0] (d40f4019c475ae83b5b008d8e9b550c1)
* LA Basin Model (5.8GB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/labasin-velocity-model-16.5.0.tar.gz LA Basin] (Needed for Unit and Acceptance Tests)
+
* LA Basin Model (5.8GB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/labasin-velocity-model-16.5.0.tar.gz LA Basin] (177a1da82ad1ed6bad2028c8d4383732)
* Northridge Validation Event (17MB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/northridge-validation-16.5.0.tar.gz Northridge] (Needed for Acceptance Tests)
+
* Northridge Validation Event (17MB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/northridge-validation-16.5.0.tar.gz Northridge] (082dc307a08600e5a7a95f7e222aef3b)
  
 
==== Additional Regions/Velocity Models ====
 
==== Additional Regions/Velocity Models ====
 
The following packages are optional downloads. Users should download packages for the regions they are interested in.
 
The following packages are optional downloads. Users should download packages for the regions they are interested in.
  
* Mojave (5.9GB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/mojave-velocity-model-16.5.0.tar.gz Mojave]
+
* Mojave (5.9GB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/mojave-velocity-model-16.5.0.tar.gz Mojave] (e33e73c978ce033def6fae6fd873cafa)
* Northern California (5.9GB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/nocal-velocity-model-16.5.0.tar.gz NoCal]
+
* Northern California (5.9GB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/nocal-velocity-model-16.5.0.tar.gz NoCal] (f6e912038633fe802cacb5380ef94f2e)
* Western Japan (1.8GB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/westernjapan-velocity-model-16.5.0.tar.gz Western Japan]
+
* Western Japan (1.8GB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/westernjapan-velocity-model-16.5.0.tar.gz Western Japan] (131d69c0f937e781446a6b045757240a)
* Central Japan (1.8GB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/centraljapan-velocity-model-16.5.0.tar.gz Central Japan]
+
* Central Japan (1.8GB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/centraljapan-velocity-model-16.5.0.tar.gz Central Japan] (4b8b7d0dc7c76cefccb3aaaca50a2f13)
* Eastern Canada (3.3GB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/canada1000-velocity-model-16.5.0.tar.gz Eastern Canada]
+
* Eastern Canada (3.3GB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/canada1000-velocity-model-16.5.0.tar.gz Eastern Canada] (3bd1fad58a9bea306b47fcedb485534b)
* Eastern United States (3.5GB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/ceus1000-velocity-model-16.5.0.tar.gz Eastern United States]
+
* Eastern United States (3.5GB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/ceus1000-velocity-model-16.5.0.tar.gz Eastern United States] (19b277124a97c774a4a3341948ccd345)
  
 
==== GMPE Verification Pacakges ====
 
==== GMPE Verification Pacakges ====
* GMPEs (3.1MB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/gmpe-verification-16.5.0.tar.gz GMPEs]
+
* GMPEs (3.1MB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/gmpe-verification-16.5.0.tar.gz GMPEs] (44210ce744148f3240f2ab260c69d1ea)
  
 
==== Additional Validation Events ====
 
==== Additional Validation Events ====
  
* Loma Prieta (14MB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/lomaprieta-validation-16.5.0.tar.gz Loma Prieta]
+
* Loma Prieta (14MB): [http://hypocenter.usc.edu/research/bbp/versions/16.5.0/lomaprieta-validation-16.5.0.tar.gz Loma Prieta] (87f390ad8ef9cd9546db150264e406e2)
  
 
Please log into the [https://scec.usc.edu/it/Broadband_Release_16.5.0#Additional_Validation_Events private wiki] to download additional validation events.
 
Please log into the [https://scec.usc.edu/it/Broadband_Release_16.5.0#Additional_Validation_Events private wiki] to download additional validation events.
Line 113: Line 112:
  
 
This will take a few minutes, and once it is done, you are ready to start using the Broadband Platform!
 
This will take a few minutes, and once it is done, you are ready to start using the Broadband Platform!
 +
 +
== Related Entries ==
 +
*[[Broadband Platform]]

Latest revision as of 16:50, 26 May 2016

The Broadband Platform v16.5.0 provides a new "easy install" script at the Broadband User Guide page. However, advanced users may want to install some, or all, of the BBP platform software manually. The following sections provide information that might be useful if you are performing a manual installation on either a Linux of Mac system.

User Account Setup

For simplicity of installation, we recommend users use a bash shell for the Broadband Platform account. It is possible to get the platform running using other shell's, but we will focus on a bash shell installation. The user environment is a common source of problems since certain environment variables must be defined for the platform to work correctly.

To check your account, make sure you can run basic commands like ls and cd before proceeding.

Mac OS X Installation

Mac OS X users should refer to our BBP on OS X Guide 16 5 for installing the above dependencies to their system. After completing the steps on that guide, please return to this page and continue reading these installation instructions to finalize the Broadband Platform setup.

Downloading the Platform

To install and use the Broadband platform, you need the source code, one or more Green's Functions packages, and optionally one or more Validation packages. The Broadband Platform contains cumulative improvements to the geoscientific codes and software infrastructure. We recommend use of the most recent version of the Broadband Platform, unless you are trying to reproduce results generated with an earlier version of the platform.

Users that are upgrading from previous version of the Broadband Platform will need to retrieve new versions of all the Broadband Platform packages as there have been significant changes in all the packages since the previous 15.3.0 release.

Download the main Broadband distribution file using the links below. Next to each file, we list its MD5 sum so that users can check if the file has been correctly downloaded. On Linux computers, users should use the "md5sum" command and on Mac OS X users can use the "md5" command.

Required Files

The following packages are the minimum set of files required to run the Broadband Platform. This set includes files needed for running the Unit and Acceptance tests.

  • Source Distribution (59MB): BBP 16.5.0 (d40f4019c475ae83b5b008d8e9b550c1)
  • LA Basin Model (5.8GB): LA Basin (177a1da82ad1ed6bad2028c8d4383732)
  • Northridge Validation Event (17MB): Northridge (082dc307a08600e5a7a95f7e222aef3b)

Additional Regions/Velocity Models

The following packages are optional downloads. Users should download packages for the regions they are interested in.

  • Mojave (5.9GB): Mojave (e33e73c978ce033def6fae6fd873cafa)
  • Northern California (5.9GB): NoCal (f6e912038633fe802cacb5380ef94f2e)
  • Western Japan (1.8GB): Western Japan (131d69c0f937e781446a6b045757240a)
  • Central Japan (1.8GB): Central Japan (4b8b7d0dc7c76cefccb3aaaca50a2f13)
  • Eastern Canada (3.3GB): Eastern Canada (3bd1fad58a9bea306b47fcedb485534b)
  • Eastern United States (3.5GB): Eastern United States (19b277124a97c774a4a3341948ccd345)

GMPE Verification Pacakges

  • GMPEs (3.1MB): GMPEs (44210ce744148f3240f2ab260c69d1ea)

Additional Validation Events

  • Loma Prieta (14MB): Loma Prieta (87f390ad8ef9cd9546db150264e406e2)

Please log into the private wiki to download additional validation events.

If multiple users are planning to use the platform on the same system, you only need one copy of the data files per machine. Each user will still need his or her own copy of the code files.

Alternatively, if you would like access to the latest version of the platform and get frequent but less thoroughly tested improvements, you can check out the platform from SCEC's Subversion repository. Only advanced users should take this approach, outlined in detail in the Advanced Users section.

Broadband Platform Directory Structure Setup

After confirming that all downloaded files are good, it is time to set up the directory structure used by the Broadband Platform. Start by creating a top-level directory for the Broadband Platform installation. In our example, we will use 'bbp' as this top-level directory. Assuming this directory will be installed in for the user "sarah":

$ cd /home/sarah
$ mkdir bbp
$ cd bbp

Now, untar the main Broadband distribution file (assuming all downloaded files are located in /home/sarah/downloads):

$ tar -xzvf /home/sarah/downloads/bbp-dist-16.5.0.tar.gz

This will create the "16.5.0" directory with the main distribution content. Now, create 2 more directories: one for the downloaded Greens' Functions and another for the optional Validation packages:

$ mkdir bbp_gf
$ mkdir bbp_val

Go into the bbp_gf directory and untar each of the downloaded GF packages:

$ cd bbp_gf

For the LABasin package, the command would be:

$ tar -xzvf /home/sarah/downloads/labasin-velocity-model-16.5.0.tar.gz

Please untar any other GF packages that you desire to install.

Now, we need to do the same thing for the validation packages. Switch to the bbp_val directory and install any validation packages that were downloaded. For example, to install the Northridge validation package, users will need to:

$ cd /home/sarah/bbp/bbp_val
$ tar -xzvf /home/sarah/downloads/northridge-validation-16.5.0.tar.gz

We are almost ready now. Users will need to create another directory, which will contain all the simulations that will be generated by the Broadband Platform. In this example, we will use "bbp_data", and will place it along with the other directories that we created above, using the commands:

$ cd /home/sarah/bbp
$ mkdir bbp_data

The last step before we can proceed is to set up environment variables indicating where each of the above directories are located so that the Broadband Platform can find their locations. Using the example above, users will need to set up the following 6 environment variables. Just add the following lines to your .bash_profile file:

export BBP_DIR=/home/sarah/bbp/16.5.0/bbp
export BBP_GF_DIR=/home/sarah/bbp/bbp_gf
export BBP_VAL_DIR=/home/sarah/bbp/bbp_val
export BBP_DATA_DIR=/home/sarah/bbp/bbp_data
export PYTHONPATH=$BBP_DIR/comps:$PYTHONPATH
export PATH=$BBP_DIR/comps:$BBP_DIR/utils/batch:$PATH

Note that users may need to log out and log in again in order for this change to take effect.

Building the Platform

Once users have downloaded and untar'ed the code and supporting packages, the final step is to compile the Broadband Platform. In order to successfully compile the project, you'll need to make sure the required compilers directories are in your PATH variable. Broadband requires the GNU Compilers, gcc, and gfortran to compile the scientific code. Using the example provided in the section above, users will need to go to the 'src' directory and compile the code. Before trying to compile the code, users can use the following command to make sure the needed compilers are present in their path:

$ which gcc

If you get a message like "no gcc in path" you will need to add the GNU compilers to your path. Once that is done, you can compile the code using the following commands:

$ cd /home/sarah/bbp/16.5.0/bbp/src
$ make clean
$ make

This will take a few minutes, and once it is done, you are ready to start using the Broadband Platform!

Related Entries