mschubert / clustermq

R package to send function calls as jobs on LSF, SGE, Slurm, PBS/Torque, or each via SSH
https://mschubert.github.io/clustermq/
Apache License 2.0
146 stars 27 forks source link

Using spack environments #121

Closed pat-s closed 5 years ago

pat-s commented 5 years ago

Hi,

we are using Spack to load environments/modules. I read the page about environments but cannot get a working Spack setup.

Spack lets you load environments which contain specific modules. For example, currently I do:

spack env activate <name>
spack load r

This would activate an environment which a specific R module. I tried putting these commands into the slurm template file and send the command via SSH, but in the log I see that still the default R version is used and not the one from my environment. I am unsure how the syntax of the Conda/bashenv examples would need to be adapted for Spack.

If I use the SSH way, is a slurm template file in my directory respected if it is specified in options?

pat-s commented 5 years ago

Nevermind, everything is working as expected. Maybe Spack could be added to the Wiki list with some minimal examples :)