Outils pour utilisateurs

Outils du site


logiciels:octave

Octave

GNU Octave is a high-level interpreted language, primarily intended for numerical computations. It provides capabilities for the numerical solution of linear and nonlinear problems, and for performing other numerical experiments. It also provides extensive graphics capabilities for data visualization and manipulation. Octave is normally used through its interactive command line interface, but it can also be used to write non-interactive programs. The Octave language is quite similar to Matlab so that most programs are easily portable.

Octave peut fonctionner en mode parallèle (MPI) mais le plugin associé n'est pas installé

Utilisation en mode batch

Vous devez préparer un fichier de commande octave,

Exemple :

  1. Création d'un script Octave, fichier hello.m
    [status, host] = system('hostname');
    printf('Hello world from %s\n', host);
    
    A = [1 3 5; 2 5 1; 2 3 8]
    inv(A)
    det(A)
  2. Création d'un fichier batch hello.sbatch
    #!/bin/bash 
    #SBATCH --job-name=hello_octave
    #SBATCH --partition=rapide
    #SBATCH --qos=rapide
    
    octave --silent --eval hello
  3. Soumission du travail
    sbatch hello.sbatch
logiciels/octave.txt · Dernière modification: 2014/10/07 21:57 de montap01