📄 mkp4pg
字号:
#!/usr/bin/perl## Usage:# mkp4pg <pgname> <ncpu> <first_proc> <path># where,# <pgname> = name of input P4 procgroup from PBS# <ncpu> = # of cpus per node (currently ignored and set to 1)# <first_proc> = mpi_dnaml_mon -- if you want to run monitor# = mpi_fastDNAml -- if you do not# <path> = absolute path to directory containing executables## print $ARGV[0]; $p4pgin = $ARGV[0];# $ncpu = $ARGV[1]; $ncpu = 1; $mon = $ARGV[2]; $path = $ARGV[3]; if(open(FILE,$p4pgin)) { $line = <FILE>; $line =~ s/\n//; print $line," 0\n"; if($mon =~ /mpi_dnaml_mon/) { $line = <FILE>; $line =~ s/\n//; print $line," 1 ",$path,"/mpi_fastDNAml\n"; } $line = <FILE>; $line =~ s/\n//; print $line," 1 ",$path,"/mpi_foreman\n"; while( $line = <FILE> ) { $line =~ s/\n//; print $line," ",$ncpu," ",$path,"/mpi_worker\n"; } } else { print STDERR "file ",$p4pgin," not found\n"; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -