bihealth / bih-cluster

BIH Cluster Wiki
Other
16 stars 38 forks source link

Getting BEAST2 to see the BEAGLE libraries and GPU #47

Open terrycojones opened 4 years ago

terrycojones commented 4 years ago

Hi. I would like to be able to run BEAST2 with the BEAGLE libraries on GPU nodes. Are you aware of anyone who has done this successfully?

BEAST (and BEAST2) aren't terribly helpful in explaining how to do this. I have the BEAGLE libraries installed (via conda). If I put the dir of the libraries into env variables BEAGLE_EXTRA_LIBS and LD_LIBRARY_PATH and LIBRARY_PATH it doesn't help. That's the approach I've used before (on a different Linux cluster).

The last time I solved this I had to compile BEAST2 myself with a particular version of gcc and also build BEAGLE with the same version. There were also some modules I loaded (but I think these just set things like LD_LIBRARY_PATH and LIBRARY_PATH).

You can run BEAST2 as beast -beagle -beagle_GPU -beagle_info (and maybe -beagle_order ...?) and it if it manages to find the GPU, that info will appear at the end of the output. But when I try the above, all I see is the regular CPU.

I am in fact doing this on a GPU node (allocated by SLURM) :-)

Thanks for any help / thoughts. I've done this a couple of times in the past and it's always a hassle... but running BEAST2 on the GPU easily makes up for it. Maybe someone else in the BIH community is already doing this - would you know?

Terry

messersc commented 2 years ago

Hi Terry,

did you move on or do you still need support for this?

Kind regards, Clemens