Skip to content

Commit 2f7c27f

Browse files
committed
Include deprecation notices for bsub #42
1 parent f5eb59b commit 2f7c27f

5 files changed

Lines changed: 17 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ The following script options are available:
102102
| `-o <ARG>` | Trap the output (without errors) of `xtb` into a file called `<ARG>`. (Default: `auto`)
103103
| `-s` | Write a submit script instead of interactive execution (default: PBS). Resulting file needs to be submitted.
104104
| `-S` | Write submit script and directly submit it to the queue, requires setting a queueing system with `-Q`.
105-
| `-Q <ARG>` | Set a queueing system for which the submit script should be prepared, supported `pbs-gen`, `slurm-gen`, `bsub-gen`.
105+
| `-Q <ARG>` | Set a queueing system for which the submit script should be prepared, supported `pbs-gen`, `slurm-gen`, (`bsub-gen`).
106106
| `-P <ARG>` | Account to project or account `<ARG>`, only slurm, LSF (bsub).
107107
| `-M` | Use pre-installed modules instead of path settings, also needs specified module(s).
108108
| `-l <ARG>` | Specify a module to be used, will also invoke `-M`, may be specified multiple times to create a list, `<ARG>=purge` unloads all modules and `<ARG>=0` clears the list.
@@ -114,6 +114,8 @@ The following script options are available:
114114
| `-H` | Retrieve the man page of xtb of the original xtb distribution.
115115
| `-X` | Retrieve the man page of xcontrol of the original xtb distribution.
116116

117+
Please note that support for LSF (bsub) is now deprecated and will be removed in a future update.
118+
117119
## Included files and directories
118120

119121
The following files and/or directories come with this script:

configure/configure.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ ask_qsys_details ()
533533
{
534534
ask "What queueing system would you like to use?"
535535
message "Currently supported: pbs-gen, bsub-gen, slurm-gen, bsub-rwth, slurm-rwth"
536+
message "Please note that support for LSF (bsub) is now deprecated and will be removed in a future update."
536537
local test_queue
537538
test_queue=$(read_human_input)
538539
debug "test_queue=$test_queue"
@@ -756,6 +757,7 @@ print_settings ()
756757

757758
echo "## Set default queueing system for which the script should be written"
758759
echo "## (pbs-gen, bsub-gen, slurm-gen, or *-rwth [special cases, see source])"
760+
echo "## Please note that support for LSF (bsub) is now deprecated and will be removed in a future update."
759761
echo "# "
760762
if [[ -z $use_queue ]] ; then
761763
echo "# request_qsys=\"pbs-gen\""

guides/usage-opts.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ Command line: `-Q <ARG>`
7474
Configuration: `request_qsys=<ARG>`
7575

7676
In order for the `-s` and `-S` switches to work, a queueing system for which the submit script should be prepared must be set.
77-
Currently supported are `pbs-gen` (the default), `slurm-gen`, `slurm-rwth`, `bsub-gen`, and `bsub-rwth`
78-
The `*rwth` suffix will test a few more options and will set some constraints according to the recommendations of the RWTH IT centre
79-
(this is currently v0.4.0 maintained only as backwards compatibility and will be removed from future versions).
77+
Currently supported are `pbs-gen` (the default), `slurm-gen` and `slurm-rwth`.
78+
The support for `bsub-gen` and `bsub-rwth` is now discontinued and will be removed in a future version.
79+
The `*rwth` suffix will test a few more options and will set some constraints according to the recommendations of the RWTH IT centre.
80+
This is currently (as of v0.4.0) only included as backwards compatibility and will also be removed in future versions.
8081

8182
### Accounting
8283

runxtb.rc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363

6464
## Set default queueing system for which the script should be written.
6565
## Format <queue>-<special>
66-
## Recognised values for <queue>: pbs, bsub, slurm
66+
## Recognised values for <queue>: pbs, slurm, (bsub)
67+
## Please note that LSF (bsub) is now deprecated and will be removed in a future version.
6768
## Recognised values for <special>: gen, rwth (no effect for pbs) [special cases, see source code]
6869
#
6970
request_qsys="slurm-gen"

runxtb.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ write_submit_script ()
532532
local queue="$1" queue_short
533533
local output_file_local="$2" submitscript_filename
534534
[[ -z $queue ]] && fatal "No queueing systen selected. Abort."
535+
if [[ "$queue" =~ [Bb][Ss][Uu][Bb] ]] ; then
536+
message "Please note that support for LSF (bsub) is now deprecated and will be removed in a future update."
537+
fi
535538
queue_short="${queue%-*}"
536539
submitscript_filename="${output_file_local%.*}.${queue_short}.bash"
537540
debug "Selected queue: $queue; short: $queue_short"
@@ -812,7 +815,8 @@ while getopts :p:m:w:o:sSQ:P:Ml:iB:C:qhHX options ; do
812815
;;
813816
#hlp -Q <ARG> Select queueing system (Default: pbs-gen)
814817
#hlp Format: <queue>-<special>
815-
#hlp Recognised values for <queue>: pbs, bsub, slurm
818+
#hlp Recognised values for <queue>: pbs, slurm, (bsub)
819+
#hlp Please note that LSF (bsub) is now deprecated and will be removed in a future version.
816820
#hlp Recognised values for <special>: gen, rwth (no effect for pbs)
817821
Q)
818822
request_qsys="$OPTARG"
@@ -988,6 +992,7 @@ if [[ $run_interactive =~ ([Nn][Oo]|[Ss][Uu][Bb]) ]] ; then
988992
qsub_bin=$(command -v qusb 2>&1) || fatal "Command qsub was not found."
989993
submit_id="Submitted as $("$qsub_bin" "$submitscript" 2>&1)" || exit_status="$?"
990994
elif [[ $request_qsys =~ [Bb][Ss][Uu][Bb] ]] ; then
995+
message "Please note that support for LSF (bsub) is now deprecated and will be removed in a future update."
991996
bsub_bin=$(command -v busb 2>&1) || fatal "Command bsub was not found."
992997
submit_id="$("$bsub_bin" < "$submitscript" 2>&1 )" || exit_status="$?"
993998
submit_id="${submit_id#Info: }"

0 commit comments

Comments
 (0)