Thread View: ahn.tech.linux
3 messages
3 total messages
Started by Antonella
Thu, 09 Jan 2003 12:01
ALGORITMO
Author: Antonella
Date: Thu, 09 Jan 2003 12:01
Date: Thu, 09 Jan 2003 12:01
15 lines
1663 bytes
1663 bytes
Algoritmo di calcolo parallelo :prodotto matrice matrice:C=C+AB che effettua il ciclo a blocchi: cij=0 FOR K=1,N FOR J=1,N FOR I=1,N CIJ=CIJ+AIK*BKJ ENDFOR ENDFOR ENDFOR NEL LINGUAGGIO C ,EFFETTUANDO UNA COMUNICAZIONE TRA I PROCESSORI CON LA ROUTINE MPI_Bcast GRAZIE � MOLTO URGENTE
R: ALGORITMO
Author: Antonella
Date: Thu, 09 Jan 2003 21:29
Date: Thu, 09 Jan 2003 21:29
23 lines
1925 bytes
1925 bytes
Antonella <antonella.macchia@virgilio.it> wrote in message bwdT9.4395$0v.111221@news1.tin.it... > Algoritmo di calcolo parallelo :prodotto matrice matrice:C=C+AB che effettua > il ciclo a blocchi: > > cij=0 > FOR K=1,N > FOR J=1,N > FOR I=1,N > CIJ=CIJ+AIK*BKJ > ENDFOR > ENDFOR > ENDFOR > NEL LINGUAGGIO C ,EFFETTUANDO UNA COMUNICAZIONE TRA I PROCESSORI CON LA > ROUTINE > MPI_Bcast > GRAZIE � MOLTO URGENTE > > > >
Re: ALGORITMO
Author: Aiutatore Cybernetico
Date: Fri, 10 Jan 2003 19:59
Date: Fri, 10 Jan 2003 19:59
42 lines
2426 bytes
2426 bytes
On Thu, 09 Jan 2003 21:29:52 GMT, "Antonella"
<antonella.macchia@virgilio.it> wrote:
> > Algoritmo di calcolo parallelo :prodotto matrice matrice:C=C+AB che
> > effettua il ciclo a blocchi:
Non ho capito nulla.
> > cij=0
Suppongo che 'cij' sarebbe c[i][j]. Non ho voglia di controllare cosa
faccia il programma. Lo scrivo in C++ e devi avere A e B inizializzate.
int c[i][j] = { 0 };
> > FOR K=1,N
> > FOR J=1,N
> > FOR I=1,N
> > CIJ=CIJ+AIK*BKJ
> > ENDFOR
> > ENDFOR
> > ENDFOR
for (int k=1; k<N; k++)
for (int j=1; j<N; j++)
for (int i=1; i<N; i++)
c[i][j] += ( a[i][k] * b[k][j] );
> > NEL LINGUAGGIO C ,EFFETTUANDO UNA COMUNICAZIONE TRA I PROCESSORI CON LA
> > ROUTINE
> > MPI_Bcast
Ah, be' certo. Una comunicazione tra i process*or*i con la routine che?
> > GRAZIE � MOLTO URGENTE
Sara' anche urgente, ma non e' italiano! :-P
E poi sono crosspostato in mezzo mondo. Nun se fa'!
Greetings from Italy!
C.H. ( Cyber Helper )
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads