more robust ssh vs. non-ssh implementation
On this line:
we check if workerhostname != 'localhost':
In the queue, my workerhostname can be something like 'Hostname: cab1189' so amp still execute the ssh version, even though I want to run without ssh.
Comments (4)
-
repo owner -
repo owner Are you sure this is causing a problem? I think it shouldn't. How are you assigning the cores? Is the utility assigning them for you, or are you manually specifying? If you feed in
cores=16
orcores={'localhost': 16}
, I think it will perform without making SSH sessions, because in that line you sent it will see that theworkerhostname
as'localhost'
and set up local connections.Unless you are using slurm --- then it might be assigning the node name in that dictionary. Is that what is happening? A workaround should be manual core specification, as noted above.
-
reporter Yes. This is only an issue when you try to automatically assign nodes with the utility. Specifying the cores manually like you said will work without making ssh sessions. I use both slurm and sge depending on the machine (I actually locally modified assign_cores to set cores = {'localhost': int(os.environ['NSLOTS'])} for SGE).
-
reporter - changed status to resolved
resolved by manually setting cores
- Log in to comment
We might try something like: