10-20-2011
This one's not too hard. You're summing up all the subexpressions of I,k,j,l. Each iteration can be dine on a separate node and "reduced" to a single sum.
Perhaps the easiest way would be to parallelize the outermost loop, splitting the task among N processors and summing each result.
Do you have an MPI environment?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have the following code.
printf "Test Message Report" > report.txt
while read line
do
msgid=$(printf "%n" "$line" | cut -c1-6000| sed -e 's///g' -e 's|.*ex:Msg\(.*\)ex:Msg.*|\1|')
putdate=$(printf "%n" "$line" | cut -c1-6000| sed -e 's///g' -e 's|.*PutDate\(.*\)PutTime.*|\1|')... (9 Replies)
Discussion started by: gugs
9 Replies
2. Programming
Hi, I have a very large, very old FORTRAN code that I work with. The code is quite messy and I was wondering if I can speed up execution time by finding subroutines that code execution spends the most time in. Is there any kind of software I can use to see where the code spends most of the... (1 Reply)
Discussion started by: rks171
1 Replies
3. Emergency UNIX and Linux Support
Hello,
Error
awk: Internal software error in the tostring function on TS1101?05044400?.0085498227?0?.0011041461?.0034752266?.00397045?0?0?0?0?0?0?11/02/10?09/23/10???10?no??0??no?sct_det3_10_20110516_143936.txt
What it is
It is a unix shell script that contains an awk program as well as... (4 Replies)
Discussion started by: script_op2a
4 Replies
4. Programming
Hi,
I am new to this forum and do not know whether this is the appropriate place to post this question. Anyway am trying my luck.
I have a fortran program swanhcat.ftn, which is part of a wave modelling system. There is also a file hcat.nml which is required to run this program. The program's... (9 Replies)
Discussion started by: sandhyakg
9 Replies
5. Programming
I am using doxygen for documenting my fortran code.
I want to write some notes after the header in different parts of the subroutine. Any idea what the tags should be as anything I write after the header is not displayed
... (0 Replies)
Discussion started by: kristinu
0 Replies
6. Shell Programming and Scripting
egrep -v "#" ${SERVERS} | while read shosts
do
grep -Pi "|" ${LOGFILE} | egrep "${snhosts}" | egrep "NOTIFICATION:" | awk -F";" '{print $3}' | sort -n | uniq | while read CEXIST
do
... (6 Replies)
Discussion started by: SkySmart
6 Replies
7. Shell Programming and Scripting
Hello All,
Iam using below method to sort and compare files. First iam doing sorting and changing the same file and then doing comparing and taking the final result to another file.
sort -o temp.txt file1
mv temp.txt file1
sort -o temp.txt file2
mv temp.txt file2
sort -o temp.txt... (6 Replies)
Discussion started by: Vikram_Tanwar12
6 Replies
8. Programming
I have the code below and I want to remove the "go to" statements. Any idea how I can do it?
if (iorder == 0) then
tmincurrent = 1.0e11
if(ireverse == 0 .or. istop /= 1) then
do i = 1, 6
if ((side(i) /= sidelimit(i)) .and. (tminside(i) < tmincurrent)) then
... (1 Reply)
Discussion started by: kristinu
1 Replies
9. Shell Programming and Scripting
VARIABLE="jhovan 5259 5241 0 20:11 ? 00:00:00 /proc/self/exe --type=gpu-process --channel=5182.0.1597089149 --supports-dual-gpus=false --gpu-driver-bug-workarounds=2,45,57 --disable-accelerated-video-decode --gpu-vendor-id=0x80ee --gpu-device-id=0xbeef --gpu-driver-vendor... (3 Replies)
Discussion started by: SkySmart
3 Replies
LEARN ABOUT SUSE
ipcluster
IPCLUSTER(1) IPCLUSTER(1)
NAME
ipcluster - IPython parallel computing cluster control tool
SYNOPSIS
ipcluster {piexec,local,mpirun,pbs,ssh} [options]
DESCRIPTION
ipcluster is a control tool for IPython's parallel computing functions.
IPython cluster startup. This starts a controller and engines using various approaches. Use the IPYTHONDIR environment variable to change
your IPython directory from the default of .ipython or _ipython. The log and security subdirectories of your IPython directory will be used
by this script for log files and security files.
POSITIONAL ARGUMENTS
The first positional argument should be one of: {mpiexec, local, mpirun, pbs, ssh}, which are the available cluster types.
For detailed help on each, type "ipcluster TYPE --help". Briefly:
local run a local cluster
mpirun run a cluster using mpirun (mpiexec also works)
mpiexec run a cluster using mpiexec (mpirun also works)
pbs run a pbs cluster
ssh run a cluster using ssh, should have ssh-keys setup
OPTIONS
-h, --help
show help message and exit
EXAMPLE
ipcluster local -n 4
This command will start 4 IPython engines on the local computer.
SEE ALSO
ipython(1),ipcontroller(1),ipengine(1)
AUTHOR
ipcluster is a tool that ships with IPython, created by the IPython Development Team.
This manual page was written by Stephan Peijnik <debian@sp.or.at>, for the Debian project (but may be used by others). Modified by Fer-
nando Perez <Fernando.Perez@berkeley.edu> for inclusion in IPython.
October 28, 2008 IPCLUSTER(1)