HPC cluster with exceed on demand visualization tool
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Aishwarya Venkatesh
 el 23 de Jul. de 2019
  
    
    
    
    
    Respondida: Saurabh Chaudhary
 el 19 de Jul. de 2022
            Hi all,
I am working with fitrgp function in matlab and doing some computations for large datasets. The computation time is really too much(parfor doesnot seems to be helping much). So i have installed HPC cluster with exceed on demand as visualization tool. But the question is how to do job submission in HPC cluster for the scripts written in matlab, in order to reduce the computational time?  It would be great, if you guys could give some suggestions.
Thanks a lot in advance!!!!
0 comentarios
Respuestas (2)
  Sahithi Kanumarlapudi
    
 el 5 de Ag. de 2019
        If your matlab code is in the file ‘myScript.m’, you might use a job submissions script like: 
#!/bin/bash 
#SBATCH -t 2:00 
#SBATCH -N 1 
#SBATCH -n 12 
#SBATCH -mem-per-cpu 1024 
#SBATCH -L matlab 
. ~/.profile 
module load matlab 
matlab -nodisplay -nosplash -r "run('myScript.m'); exit" > myScript.out
0 comentarios
  Saurabh Chaudhary
 el 19 de Jul. de 2022
        you can make the slurm file like this, and save the file xyx_slurm.sl and in order to run it enter sbatch xyz_slurm.sl in terminal 
#!/bin/bash 
#SBATCH --job-name=matlab_test
#SBATCH --time=0-03:00         # adjust this to match the walltime of your job
#SBATCH --nodes=1      
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1      # adjust this if you are using parallel commands
#SBATCH --mem=4000             # adjust this according to the memory requirement per node you need
#SBATCH --partition=small
# Choose a version of MATLAB by loading a module:
module load matlab/R2022a
matlab -nodisplay -nosplash -softwareopengl < /pathofyourdirectory/cosplot.m
0 comentarios
Ver también
Categorías
				Más información sobre Third-Party Cluster Configuration en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!