Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:hpc:software:matlab [2018/09/13 14:55]
vrintala
en:hpc:software:matlab [2018/09/13 15:04] (current)
vrintala
Line 57: Line 57:
 parpool(pc, str2num(getenv('SLURM_CPUS_ON_NODE'))) parpool(pc, str2num(getenv('SLURM_CPUS_ON_NODE')))
  
 +% Example parallel task
 fileID = fopen(strcat('example.output.txt.',getenv('SLURM_JOB_ID')),'w'); fileID = fopen(strcat('example.output.txt.',getenv('SLURM_JOB_ID')),'w');
  
 fprintf(fileID, 'Random samples Time Approximate pi value\n\n'); fprintf(fileID, 'Random samples Time Approximate pi value\n\n');
  
-% Example parallel task 
 for k = [1 2 10] for k = [1 2 10]
  
 
/opt/webdata/webroot/wiki/data/pages/en/hpc/software/matlab.txt · Last modified: 2018/09/13 15:04 by vrintala
[unknown button type]
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki