how to run .cvg in LINUX!
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:permission denied'. |
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 |
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 -- |
Quote:
|
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. |
All times are GMT -4. The time now is 19:23. |