Open aidanheerdegen opened 1 year ago
An option that generates a PBS script would be very useful. i.e. $ qsub -q <queue> -P <project> <pbs-script-generated-by-payu>
An option that generates a PBS script would be very useful
Yes it would, but payu
doesn't work that way. For example, payu run
submits a PBS job that calls payu-run
within it, and passes state information to the payu-run
call through environment variables, so things like the current run number.
My thought was to just include a -I
flag to make it interactive as a first basic step.
Is it technically possible for Payu to generate a PBS script?
I guess it could but the environment information is passed in command line arguments, so it would require writing all that stuff to a script. I don't think this gives a much better outcome than an interactive session with the working directory populated and the relevant command printed to stdout, so you can copy and paste and run it directly. Plus it would require a lot more effort.
@harshula wanted to run a model directly, without
payu
running it.I provided the following instructions:
payu run
and copy the PBS submissionqsub line
and cancel (^c
) or delete the job (qdel
)payu-run
command) and append-I
to run the command interactively and wait for the job to startpayu-run
command from the PBS submit, e.g.g/data/hh5/public/apps/miniconda3/envs/analysis3-23.01/bin/python3.9 /g/data3/hh5/public/apps/miniconda3/envs/analysis3-23.01/bin/payu-run
mpirun
command is printed toSTDOUT
cancel the job (^c
) and copy and paste the actualmpirun
command, e.g.These steps could be easily automated, which would be a useful service and make it really easy to run the configuration directly, for debugging purposes.