Difference between revisions of "Applications/Mono"

From HPC
Jump to: navigation , search
m (Compilation)
m (Usage Examples)
Line 14: Line 14:
 
==Usage Examples==
 
==Usage Examples==
  
===Module===
+
===Interactive Session===
 +
====Module====
 
<pre style="background-color: #000000; color: white; border: 2px solid black; font-family: monospace, sans-serif;">
 
<pre style="background-color: #000000; color: white; border: 2px solid black; font-family: monospace, sans-serif;">
 
[username@login01 ~]$ module add mono/5.2.0
 
[username@login01 ~]$ module add mono/5.2.0
 
</pre>
 
</pre>
  
===Compilation===
+
====Compilation====
 
<pre style="background-color: black; color: white; border: 2px solid black; font-family: monospace, sans-serif;">
 
<pre style="background-color: black; color: white; border: 2px solid black; font-family: monospace, sans-serif;">
  
Line 32: Line 33:
  
  
====Program Execution====
+
=====Program Execution=====
  
 
<pre style="background-color: black; color: white; border: 2px solid black; font-family: monospace, sans-serif;">
 
<pre style="background-color: black; color: white; border: 2px solid black; font-family: monospace, sans-serif;">
Line 43: Line 44:
 
[username@c025 ~]$ module add mono/5.2.0
 
[username@c025 ~]$ module add mono/5.2.0
 
[username@c025 ~]$ mono cDEMO.exe
 
[username@c025 ~]$ mono cDEMO.exe
 +
</pre>
 +
 +
===Batch Script===
 +
 +
The following shows an example of a batch script
 +
 +
<pre style="background-color: black; color: white; border: 2px solid black; font-family: monospace, sans-serif;">
 +
#!/bin/bash
 +
#SBATCH -J mono
 +
#SBATCH -N 1
 +
#SBATCH --ntasks-per-node 1
 +
#SBATCH -D /home/pysdlb/
 +
#SBATCH -o %N.%j.%a.out
 +
#SBATCH -e %N.%j.%a.err
 +
#SBATCH -p compute
 +
#SBATCH --exclusive
 +
 +
module add mono/5.2.0
 +
 +
mono cDEMO.exe
 
</pre>
 
</pre>
  

Revision as of 16:16, 16 November 2022

Application Details

  • Description: Mono is an open-source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime.
  • Version: 5.2.0,
  • Module: mono/4.4.1, mono/5.2.0, mono/5.12.0 and mono/5.16.0.220
  • Licence: MIT

Introduction

Mono is a software platform designed to allow developers to easily create cross-platform applications part of the .NET Foundation.

Sponsored by Microsoft, Mono is an open-source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime. A growing family of solutions and an active and enthusiastic contributing community is helping position Mono to become the leading choice for the development of cross-platform applications.

Usage Examples

Interactive Session

Module

[username@login01 ~]$ module add mono/5.2.0

Compilation


[username@login01 ~]$ interactive
salloc: Granted job allocation 3619674
Job ID 3619674 connecting to c025, please wait...
c025.vc-main

[username@c025 ~]$ module add mono/5.2.0
[username@c025 ~]$ mcs -out:cDEMO.exe cDEMO.cs


Program Execution

[username@login01 ~]$ interactive
salloc: Granted job allocation 3619674
Job ID 3619674 connecting to c025, please wait...
c025.vc-main

[username@c025 ~]$ module add mono/5.2.0
[username@c025 ~]$ mono cDEMO.exe

Batch Script

The following shows an example of a batch script

#!/bin/bash
#SBATCH -J mono
#SBATCH -N 1
#SBATCH --ntasks-per-node 1
#SBATCH -D /home/pysdlb/
#SBATCH -o %N.%j.%a.out
#SBATCH -e %N.%j.%a.err
#SBATCH -p compute
#SBATCH --exclusive

module add mono/5.2.0

mono cDEMO.exe

Further Information





Modules | Main Page | Further Topics