Skip to content

REFACTOR: Scheduler logic #6399

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/6398.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Scheduler logic
1 change: 1 addition & 0 deletions doc/changelog.d/6399.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Scheduler logic
4 changes: 2 additions & 2 deletions doc/source/Resources/pyaedt_settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ log:
# Settings related to Linux systems running LSF scheduler
lsf:
# Command to launch in the LSF Scheduler
custom_lsf_command: null
custom_lsf_command: ''
# Command to launch the task in the LSF Scheduler
lsf_aedt_command: 'ansysedt'
# Number of LSF cores
lsf_num_cores: 2
lsf_num_cores: 4
# Operating system string
lsf_osrel: null
# LSF queue name
Expand Down
709 changes: 596 additions & 113 deletions src/ansys/aedt/core/generic/scheduler.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/ansys/aedt/core/generic/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"remote_rpc_session_temp_folder",
"block_figure_plot",
"skip_license_check",
"num_cores",
]
ALLOWED_AEDT_ENV_VAR_SETTINGS = [
"ANSYSEM_FEATURE_F335896_MECHANICAL_STRUCTURAL_SOLN_TYPE_ENABLE",
Expand Down
8 changes: 4 additions & 4 deletions src/ansys/aedt/core/misc/Job_Settings_Template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $begin 'AddEntries'
\ \ \ \ NumCoresPerDistributedTask={{cores_per_task}}\
\ \ \ \ LimitTasksPerNodeEnabled=false\
\ \ \ \ NumMaxTasksPerNode={{max_tasks_per_node}}\
\ \ \ \ NumGpus={{num_gpu}}\
\ \ \ \ NumGpus={{num_gpus}}\
\ \ \ $end \'TasksAndCoresBlock\'\
\ \ \ $begin \'RAMConstrainedBlock\'\
\ \ \ \ IsExclusive=false\
Expand All @@ -35,7 +35,7 @@ $begin 'AddEntries'
\ \ \ \ RAMLimit={{ram_limit}}\
\ \ \ \ NumNodes={{num_nodes}}\
\ \ \ \ NumCores={{num_cores}}\
\ \ \ \ NumGpus={{num_gpu}}\
\ \ \ \ NumGpus={{num_gpus}}\
\ \ \ $end \'NodesAndCoresBlock\'\
\ \ \ $begin \'NodeListBlock\'\
\ \ \ \ $begin \'MachineListVec\'\
Expand Down Expand Up @@ -64,8 +64,8 @@ $begin 'AddEntries'
\ \ \ OverwriteFiles=false\
\ \ $end \'ArchiveOptions\'\
\ \ $begin \'SharedDirectories\'\
\ \ \ WindowsPaths[0:]\
\ \ \ LinuxPaths[0:]\
\ \ \ WindowsPaths[{{shared_directory_windows}}]\
\ \ \ LinuxPaths[{{shared_directory_linux}}]\
\ \ $end \'SharedDirectories\'\
\ \ $begin \'MultiStepJobSettings\'\
\ \ \ SelectedOption=\'\'\
Expand Down
Loading