|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Ming wang
Join Date: Mar 2024
Posts: 4
Rep Power: 2 ![]() |
Hey, my friends,
I need to run converge in a supercomputing environment, but I do not actually know what the command is in Linux for running a.cvg file, which is already well prepared in Windows. I found a command like'mpirun -n 16 -ppn 4 converge-intelmp’ *from 'Getting Started Guide', but how do I make it run the.cvg file I specified? Thanks for your help a lot!!! I have found a example of script: '' #!/bin/bash #SBATCH -J mycase #SBATCH -N 1 #SBATCH -t 10 chmod +x test.sh export RLM_LICENSE=50532@login03 export CONVERGE_ROOT=/home/CONVERGE/Convergent_Science export CONVERGE_PATH=$CONVERGE_ROOT/CONVERGE/3.0.17/bin source /home/CONVERGE/Convergent_Science/Environment/scripts/CONVERGE/CONVERGE-IntelMPI/3.0.17.sh mpirun $CONVERGE_PATH/converge-intelmpi '' After running the '.sh' script, it says that permission was denied, like 'home/CONVERGE/Convergent Science/C0NVERGE/3.0.17/bin/mpi/INTEL/inte164/bin/mpirun ![]() Last edited by vikoel; March 17, 2024 at 03:57. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Angela Wu
Join Date: Jan 2023
Posts: 49
Rep Power: 3 ![]() |
Hello Ming,
First, you need to export the .cvg file into a directory so that the directory contains the *.in and *.dat files of the case setup. You will also need to have your converge executable in the same directory. You should also have the converge module loaded for your flavor of MPI. Then the command 'mpirun -n 16 -ppn 4 converge-intelmpi' should work. If you're using the slurm script, make sure you also have in there module load cvg/3.*_mpich or whichever MPI you're using. And put the script in the same directory where your case is. If you need help with the the slurm script, you should contact your HPC administrator as they have a better idea what can and cannot be done on your HPC. Best, Angela |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Join Date: Dec 2023
Posts: 9
Rep Power: 2 ![]() |
Hey, I really do not understand what is going on behind the scenes when working on a cluster, but nonetheless maybe I can help you!
What works best for me is exporting the .in files to a directory (in the same version as on the cluster) and copying the entire directory to the cluster. Then change to that directory on your SSH terminal and run the bash script with: sbatch Converge_bash_example.bash I'll also post my bash script below for you! -- #!/usr/bin/bash #SBATCH --nodes=2 #SBATCH --ntasks=128 #SBATCH --partition=<partition> #SBATCH --error=slurm-%j.err #SBATCH --output=slurm-%j.out #SBATCH --time=168:00:00 module --ignore_cache load openmpi source /cm/shared/apps/ConvergentScience/Convergent_Science/Environment/scripts/CONVERGE/CONVERGE-MPICH/3.0.21.sh mpirun -np 128 converge-mpich super -- |
|
![]() |
![]() |
![]() |
![]() |
#4 | |
New Member
Ming wang
Join Date: Mar 2024
Posts: 4
Rep Power: 2 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Ming wang
Join Date: Mar 2024
Posts: 4
Rep Power: 2 ![]() |
Thank you, Laurens.
Your own bash script means a lot for me! I have written down the command line for my script, and everything is running successfully. |
|
![]() |
![]() |
![]() |
Tags |
command, linux |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM benchmarks on various hardware | eric | Hardware | 794 | Yesterday 12:04 |
sloshingTank3D6DoF failed to run in parallel | phsieh2005 | OpenFOAM Running, Solving & CFD | 1 | May 18, 2023 23:51 |
Ansys fluent parallel run Linux error | bineet_aero | FLUENT | 1 | November 22, 2019 06:47 |
Bath run with a macro (linux) | Hqjen | STAR-CCM+ | 4 | May 20, 2016 12:01 |
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker | rt08 | OpenFOAM Installation | 1 | February 28, 2016 19:00 |