Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung Nächste Überarbeitung Beide Seiten der Revision | ||
hlr:phoenix:nutzeranleitung [2020/04/09 15:00] raskrato [Ansys Job starten] |
hlr:phoenix:nutzeranleitung [2020/05/05 12:25] raskrato [Lehre] |
||
---|---|---|---|
Zeile 375: | Zeile 375: | ||
file.close | file.close | ||
</code> | </code> | ||
+ | |||
+ | ===== Lehre ===== | ||
+ | |||
+ | Für die Lehre existiert eine Queue: teaching und in Zukunft teaching_gpu. Diese Knoten verfügen nicht über eine funktionierende Infinity Band Verbindung sondern nutzen klassisches Ethernet für die MPI Kommunikation. Daher muss in der Jobfile angegeben werden, dass Ethernet genutzt werden soll. | ||
+ | |||
+ | <code>NUMBER_OF_CPU_CORES_TO_USE=16 | ||
+ | mpirun -n $NUMBER_OF_CPU_CORES_TO_USE --mca btl tcp,sm,self --mca btl_tcp_if_include eth0 /home/your_name/your_binary | ||
+ | </code> | ||
+ | |||
+ | Beispiel Jobfile: | ||
+ | |||
+ | <code>#!/bin/bash -l | ||
+ | |||
+ | #SBATCH --partition=visalt | ||
+ | #SBATCH --nodes=2 | ||
+ | #SBATCH --time=1:00:00 | ||
+ | #SBATCH --job-name=nearest | ||
+ | #SBATCH --ntasks-per-node=8 | ||
+ | #SBATCH --exclude=visalt01 | ||
+ | |||
+ | module load mpi/openmpi/2.1.0/gcc comp/gcc/6.3.0 | ||
+ | mpirun -n 16 --mca btl tcp,sm,self --mca btl_tcp_if_include eth0 /home/raskrato/alt/visalt/ptest</code> | ||
+ | |||
Zeile 615: | Zeile 638: | ||
==== Starting Ansys jobs ==== | ==== Starting Ansys jobs ==== | ||
- | We recommend use our new script, which converts your jobfile automaticly. Just write a normal jobfile and call this script and use > to save the output to a new file: | + | We recommend use our new script, which converts your jobfile automaticly. Just write a normal jobfile and call this script and use > to save the output to a new file. Here is an example for normal ansys file without any license checks:Â |
+ | Â | ||
+ | <code>#!/bin/bash -l | ||
+ | Â | ||
+ | #SBATCH --partition=standard | ||
+ | #SBATCH --nodes=1Â | ||
+ | #SBATCH --time=3:00:00Â | ||
+ | #SBATCH --job-name=TCTMÂ | ||
+ | #SBATCH --ntasks-per-node=20Â | ||
+ | Â | ||
+ | module load software/ansys/18.0Â | ||
+ | Â | ||
+ | Â | ||
+ | #######################Â | ||
+ | #### HIER VARIABEL ####Â | ||
+ | #######################Â | ||
+ | NUMPROCS=60Â | ||
+ | module load software/ansys/18.0Â | ||
+ | Â | ||
+ | cfx5solve -batch -chdir $working_dir -double -verbose -def $working_dir/Heater_pt_Loss.def -start-method 'IBM MPI Distributed Parallel' -par -part $NUMPROCS -par-host-list $ALLMACHINES -part-coupled -part-large -part-mode orcb -priority 0 -size 1.4 -size-part 1.4</code>Â | ||
+ | Â | ||
+ | Here is the code to add an license check: | ||
<code>/cluster/share/make_ansys_job_check_for_license.sh Script.sh NumberOfLicences1 LicenceType1 NumberOfLicences2 LincenceType2 ...</code> | <code>/cluster/share/make_ansys_job_check_for_license.sh Script.sh NumberOfLicences1 LicenceType1 NumberOfLicences2 LincenceType2 ...</code> |