[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
assembly
- To: petsc-users@xxxxxxxxxxx
- Subject: assembly
- From: "Thomas Geenen" <geenen@xxxxxxxxx>
- Date: Sat, 2 Feb 2008 10:32:37 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=fZHFosLRx1/Xa3LYWAed07Y/hSPCLMtP60DhvL4/7R8=; b=fMRO/g2PZ9zm9GZCxrBK1VCwO6O19q7iWs+TStuyBWewILTpFgsbwo4GTq5iNqKxLX79IlzTxRBSHDJIBq2J341JNZjT5e6S2pVcpvM2YxXqcaoYzVEgecRJ0IIlYKe4W5Dh4oX1Xnn67xMHv5aE5/ii2KKndihzIFWcSkqC9WE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=A1EbUZo09UC2d53BSr3PZmRi/MCQ6iKvx2FvKaiyNsc3+gnyZ1gN+hnUIubae0EP7gn4e24yeSJ+KJLmptGmiUpbR9M3N/u4jHO5qK7T/6m3im+eOsnUGGke0L8aZdTYBiRJdI63pZuMF9U3gICh2JcKymX02BATqmo5YFvxznk=
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
Dear Petsc users,
I would like to understand what is slowing down the assembly phase of my matrix.
I create a matrix with MatCreateMPIAIJ i make a rough guess of the
number of off diagonal entries and then use a conservative value to
make sure I do not need extra mallocs. (the number of diagonal entries
is exact)
next i call MatSetValues and MatAssemblyBegin, MatAssemblyEnd.
The first time i call MatSetValues and MatAssemblyBegin,
MatAssemblyEnd it takes about 170 seconds
the second time 0.3 seconds.
I run it on 6 cpu's and I do fill quit a number of row-entries on the
"wrong" cpu. However thats also the case the second run. I checked
that there are no additional mallocs
MatGetInfo info.mallocs=0 both after MatSetValues and after
MatAssemblyBegin, MatAssemblyEnd.
cheers
Thomas