BEAST can't find SNAPP when running on a cluster (with SLURM)

137 views
Skip to first unread message

André Elias Rodrigues Soares

unread,
Oct 10, 2017, 1:31:53 PM10/10/17
to beast-users
When I run beast straight from the shell it loads all packages normally, but when I run it inside a slurm .srm script it fails to load any additional package. Is there a way i can force beast to load a certain package? I thought there was some flag for that if I ran beast as java -jar beast.jar but I couldn't find anything.

PS: SNAPP doesn't play nice with GPUs, right?

André Elias Rodrigues Soares

unread,
Oct 10, 2017, 1:33:41 PM10/10/17
to beast-users
Sorry, forgot to add:
BEAST v2.4.7
SNAPP v1.3.0

Tim Vaughan

unread,
Oct 10, 2017, 4:22:42 PM10/10/17
to beast-users
Hi André, BEAST should load any package that it finds in one of its standard paths.  Assuming your cluster is running on some GNU/Linux distro, this is probably ~/.beast/2.4/. So I suspect that what's happening is that the slurm jobs are for some reason unable to access this directory.  (Are the compute nodes mounting your home directory?)

Cheers,
Tim

--
You received this message because you are subscribed to the Google Groups "beast-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beast-users...@googlegroups.com.
To post to this group, send email to beast...@googlegroups.com.
Visit this group at https://groups.google.com/group/beast-users.
For more options, visit https://groups.google.com/d/optout.

André Elias Rodrigues Soares

unread,
Oct 11, 2017, 7:40:15 AM10/11/17
to beast-users
Hi Tim, thanks for the reply.
I don't think they're mounting my home directory, I had to re-install it on a separate /project/whatever directory. Can I point Beast to a different directory/use a different place to install packages?

Best,
André

Tim Vaughan

unread,
Oct 11, 2017, 9:51:59 AM10/11/17
to beast...@googlegroups.com
Hi André,

On Wed, 11 Oct 2017 at 13:40 André Elias Rodrigues Soares <aers...@gmail.com> wrote:
I don't think they're mounting my home directory, I had to re-install it on a separate /project/whatever directory. Can I point Beast to a different directory/use a different place to install packages?

You can indeed.  To do this, find the launch script for beast, open it in a text editor and add the jvm option -Dbeast.user.package.dir=YOUR_PATH immediately following $JAVA in the two lines right near the end of the file that actually run BEAST.  Replace YOUR_PATH with the path to the directory containing the packages.

Cheers,
Tim

André Elias Rodrigues Soares

unread,
Oct 11, 2017, 10:15:35 AM10/11/17
to beast-users
Hi Tim,

Thank you! I uninstalled SNAPP and then created a new directory, installed it using "addonmanager -add SNAPP -dir /new/dir/andre/beastpackages", then edited the two lines in the beast launch script as you said and it's working now. Thank you very much for you speedy replies and help.

Best,
André
Reply all
Reply to author
Forward
0 new messages