{"id":2988,"date":"2019-04-04T11:00:14","date_gmt":"2019-04-04T10:00:14","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/?page_id=2988"},"modified":"2019-04-04T11:00:14","modified_gmt":"2019-04-04T10:00:14","slug":"pbmpi","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/pbmpi\/","title":{"rendered":"PBMPI"},"content":{"rendered":"<table class=\"hint\">\n<tr>\n<td><em>If you are a windows user &#8211; please ensure you create your jobscript ON THE CSF directly using <a href=\"\/csf3\/software\/tools\/gedit\/\">gedit<\/a>. This will prevent your job going into error (Eqw). Text files created on windows have hidden characters that linux cannot read. For further information please see the <a href=\"\/csf3\/getting-started\/using-from-windows\/\">guide to using the system from windows<\/a>, in particular the section about <a href=\"\/csf3\/getting-started\/using-from-windows\/#textfiles\">text &amp; batch submission script files<\/a><\/em>.\n<\/td>\n<\/tr>\n<\/table>\n<h2>Overview<\/h2>\n<p><a href=\"https:\/\/github.com\/bayesiancook\/pbmpi\">Phylobayes MPI<\/a> is a Bayesian software for phylogenetic reconstruction using mixture models which can run in parallel using MPI.<\/p>\n<p>Version 1.8 compiled with Intel 17.0 and Open MPI 3.1.3 is available for use on CSF3.<\/p>\n<h2>Set up procedure<\/h2>\n<p>To use PBMPI, you must first load the module into your environment:<\/p>\n<pre>\r\nmodule load apps\/intel-17.0\/pbmpi\/1.8\r\n<\/pre>\n<p>This will also automatically load the appropriate MPI modulefile into your environment.<\/p>\n<h2>Running the application<\/h2>\n<p>Please do not run pbmpi tools on the login node. Jobs should be submitted to the compute nodes via batch. There are a number of command-line tools available:<\/p>\n<pre>\r\nbpcomp    cvrep    pb_mpi    readpb_mpi    tracecomp\r\n<\/pre>\n<p>You <em>may<\/em> run each command without any args \/ parameters on the login node to see the help text. For example:<\/p>\n<pre>\r\npb_mpi\r\n\r\nmpirun -np <np> pb_mpi -d <datafile> [options] <chainname>\r\n\tcreates a new chain, sampling from the posterior distribution, conditional on specified data\r\n\r\nmpirun -np <np> pb_mpi <chainname>\r\n\tstarts an already existing chain\r\n\r\n\tmpirun -np <np>     : number of parallel processes (should be at least 2)\r\n\r\n\t-cat -dp            : infinite mixture (Dirichlet process) of equilibirium frequency profiles\r\n\t-ncat <ncat>        : finite mixture of equilibirium frequency profiles\r\n\r\n...\r\n<\/pre>\n<h3>Single node parallel batch job submission (2-32 cores)<\/h3>\n<p>The following will run <code>pb_mpi<\/code> on 16 cores to create new chain <em>chainname<\/em> from <em>datafile<\/em> in your current working directory:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#$ -cwd               # App will run from current directory\r\n#$ -pe smp.pe 16      # Request 16 cores in smp parallel environment\r\n\r\nmodule load apps\/intel-17.0\/pbmpi\/1.8\r\n\r\nmpirun -np $NSLOTS pb_mpi -d <em>datafile<\/em> <em>chainname<\/em>\r\n\r\n<\/pre>\n<h3>Multi node parallel batch job submission (48 &#8211; 120 cores, multiples of 24)<\/h3>\n<p>The following will run <code>pb_mpi<\/code> on 48 cores on the existing chain <em>chainname<\/em> in your current working directory:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#$ -cwd                     # App will run from current directory\r\n#$ -pe mpi-24-ib.pe 48      # Request 48 cores across Infiniband connected nodes\r\n\r\nmodule load apps\/intel-17.0\/pbmpi\/1.8\r\n\r\nmpirun -np $NSLOTS pb_mpi <em>chainname<\/em>\r\n\r\n<\/pre>\n<h2>Further info<\/h2>\n<ul>\n<li>The manual is available on the CSF using <code>evince $PBMPIHOME\/pb_mpiManual1.8.pdf<\/code>\n<li><a href=\"https:\/\/github.com\/bayesiancook\/pbmpi\">pbmpi github repo<\/a><\/li>\n<\/ul>\n<h2>Updates<\/h2>\n<p>None.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are a windows user &#8211; please ensure you create your jobscript ON THE CSF directly using gedit. This will prevent your job going into error (Eqw). Text files created on windows have hidden characters that linux cannot read. For further information please see the guide to using the system from windows, in particular the section about text &amp; batch submission script files. Overview Phylobayes MPI is a Bayesian software for phylogenetic reconstruction using.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/pbmpi\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"parent":33,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2988","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/comments?post=2988"}],"version-history":[{"count":7,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2988\/revisions"}],"predecessor-version":[{"id":3001,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2988\/revisions\/3001"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/33"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/media?parent=2988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}