Maple/Example

From ScientificComputing
Jump to: navigation, search

As an example for a Maple job, we are running a script that create a table with the exponents of the 48 known Mersenne prime numbers.

[sfux@eu-login-09-ng ~]$ ls
test.inp
[sfux@eu-login-09-ng ~]$ cat test.inp
with(NumberTheory):
interface(rtablesize=50):
DataSeries([seq(IthMersenne(i),i=1..48)],labels=[seq(1..48)]);
[sfux@eu-login-09-ng ~]$ module load new maple/2019.1
[sfux@eu-login-09-ng ~]$ bsub -n 1 -W 0:05 -R "rusage[mem=50]" maple test.inp
Generic job.
Job <33884023> is submitted to queue <normal.4h>.
[sfux@eu-login-09-ng ~]$ bjobs
JOBID      USER       STAT  QUEUE      FROM_HOST   EXEC_HOST   JOB_NAME   SUBMIT_TIME
33884023   leonhard   PEND  normal.4h  euler09                 * test.inp Dec 12 15:11
[sfux@eu-login-09-ng ~]$ bjobs
JOBID      USER       STAT  QUEUE      FROM_HOST   EXEC_HOST   JOB_NAME   SUBMIT_TIME
33884023   leonhard   PEND  normal.4h  euler09     e2119       * test.inp Dec 12 15:11
[sfux@eu-login-09-ng ~]$ bjobs
No unfinished job found
[sfux@eu-login-09-ng ~]$ grep -m 2 48 lsf.o33884023 | tail -n1
                                [48    57885161]

You can find the resource usage summary for the job in the LSF log file.