Maple
From ScientificComputing
Revision as of 15:08, 29 November 2016 by Sfux (talk | contribs) (Created page with "{{Application}}")
Contents
Category
Mathematics, NumericsDescription
Maple is a symbolic and numeric computing environment, and is also a multi-paradigm programming language. Developed by Maplesoft, Maple also covers other aspects of technical computing, including visualization, data analysis, matrix computation, and connectivity. A toolbox, MapleSim, adds functionality for multidomain physical modeling and code generationAvailable versions (Euler, old software stack)
Legacy versions | Supported versions | New versions |
---|---|---|
17, 2016 | 2019.1 |
Please note that this page refers to installations from the old software stack. There are two software stacks on Euler. Newer versions of software are found in the new software stack.
Environment modules (Euler, old software stack)
Version | Module load command | Additional modules loaded automatically |
---|---|---|
2019.1 | module load new maple/2019.1 |
Please note that this page refers to installations from the old software stack. There are two software stacks on Euler. Newer versions of software are found in the new software stack.
Interactive session
You can start an interactive Maple session on a login node by loading the maple module and starting Maple with the command maple[sfux@eu-login-18 ~]$ module load maple/2019.1 [sfux@eu-login-18 ~]$ maple |\^/| Maple 2019 (X86 64 LINUX) ._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2019 \ MAPLE / All rights reserved. Maple is a trademark of <____ ____> Waterloo Maple Inc. | Type ? for help. > bernoulli(2); memory used=8.6MB, alloc=11.3MB, time=0.10 1/6 >Please note that interactive sessions should only be used for short testing or pre- and post-processing. Calculations that need more resources must be submitted to the batch system.
How to submit a job
You can submit a Maple job (test.inp) to the batch system with the follwoing command:sbatch [Slurm options] --wrap="maple test.inp"Here you need to replace [Slurm options] with Slurm parameters for the resource requirements of the job. Please find a documentation about the parameters of sbatch on the wiki page about the batch system.
Example
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.