Closed cj-hodgson closed 2 weeks ago
@cj-hodgson Are you seeing any error like ssh: connect to host <headnode> port 22: failure
when a non-empty headnode is provided? I think empty strings are ignored by Fluent.
@mkundu1 This is the ssh error I get for a non-empty headnode: ssh: Could not resolve hostname nonsense: Temporary failure in name resolution
.
I've found that if the headnode value is incorrect but the value contains a valid headnode hostname, then that is used. For example if 'mymachine' is a slurm headnode, the job runs if scheduler_headnode is set to 'mymachine01'
@cj-hodgson Empty strings in the scheduler_headnode
field are ignored by Fluent. In Fluent side, fluent 3ddp -scheduler=slurm -scheduler_headnode= -gu
, starts the slurm instance in the current node without any error.
I've found that if the headnode value is incorrect but the value contains a valid headnode hostname, then that is used.
I cannot reproduce the issue in both PyFuent and standalone Fluent. I get the ssh error in both cases. Please share the machine details in chat where you've observed the issue.
🔍 Before submitting the issue
🐞 Description of the bug
The scheduler_headnode key in scheduler_options for launch_fluent on a SLURM scheduler does not appear to be used, rather fluent is started with the -cnf argument directed at a slurm.{nnnn}.hosts file. If the value of scheduler_headnode is incorrect the job still runs without error.
📝 Steps to reproduce
Call launch_fluent with scheduler_options={"scheduler": "slurm", "scheduler_headnode": ""} in a slurm environment
💻 Which operating system are you using?
Linux
📀 Which ANSYS version are you using?
24.2
🐍 Which Python version are you using?
3.10
📦 Installed packages