Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to use additional slurm options like the --wkey one #3359

Open
ClaraPicoron opened this issue Oct 4, 2024 · 0 comments
Open

Be able to use additional slurm options like the --wkey one #3359

ClaraPicoron opened this issue Oct 4, 2024 · 0 comments
Labels
enhancement New feature or request. Feature work invariably requires testing-team involvement

Comments

@ClaraPicoron
Copy link

📝 Description of the feature

This user tries to launch Fluent within a slurm environment using pyfluent.launch_fluent.
They need to use the --wckey slurm option to be able to launch their jobs.

At the moment it seems that they cannot use this option with pyfluent.

Hence can you confirm that using additional scheduler options is not available in the current pyfluent ?

This is the script used:

>>> slurm = pyfluent.launch_fluent(
...     scheduler_options={
...         "scheduler": "slurm",
...         "scheduler_account": "a2z1erz32",
...         "scheduler_opt": "--wckey=AZERT:YUI"
...     },
...     additional_arguments="-t16",
... )

This is the error:

sbatch: error: slurm_job_submit: error: job FLU16 submitted by a2z1erz32 didn't specify a wckey
sbatch: error: Batch job submission failed: Invalid wckey specification

Indeed the slurm launch file generated by pyFluent doesn't contain the wkey keyword:

#!/bin/sh                        
#SBATCH -D .                      
#SBATCH -n 16                 
#SBATCH -J FLU16         
#SBATCH -o fluent.11672.o   
#SBATCH -e fluent.11672.e   
#SBATCH -A a2z1erz32 
#SBATCH --exclusive 
export FLUENT_AFFINITY=0                             
export SLURM_ENABLED=1                               
FL_SCHEDULER_HOST_FILE=slurm.${SLURM_JOB_ID}.hosts  
/bin/rm -rf ${FL_SCHEDULER_HOST_FILE}               
scontrol show hostnames "$SLURM_JOB_NODELIST" >> $FL_SCHEDULER_HOST_FILE 
export SCHEDULER_TIGHT_COUPLING=1                    
/path/ANSYS/ANSYS24.1/v241/fluent/bin/fluent  3ddp -t16 -sifile=/other_path/PYANSYS/serverinfo-yjbpnkqs.txt -nm -hidden -cnf=${FL_SCHEDULER_HOST_FILE}

💡 Steps for implementing the feature

No response

🔗 Useful links and references

No response

@ClaraPicoron ClaraPicoron added the enhancement New feature or request. Feature work invariably requires testing-team involvement label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request. Feature work invariably requires testing-team involvement
Projects
None yet
Development

No branches or pull requests

1 participant