[petsc-dev] Apparent bug with PGI on Titan with each thread calling a serial LU solve

Mark Adams mfadams at lbl.gov
Wed May 7 14:47:32 CDT 2014


Barry, made the LU solver "thread safe" in that each thread calls a serial
solve, for Ed (cc'ed).

Ed has a test code (attached) that can be run with 16 threads (aprun -n 1
-d 16) and NUM_OPENMP_THREADS=16.  This code seems to work with Intel
compilers but fails with PGI.

I've appended a stack trace.  Any ideas?

Mark
Note, the line numbers are not quite right in tpetsc.F90 but the rest look
OK.

#11 tpetsc () at
/autofs/na3_home1/adams/petsc/src/ksp/ksp/examples/tutorials/tpetsc.F90:144
(at 0x0000000000422afa)
#10 matcreateseqaij_ () at
/autofs/na3_home1/adams/petsc/src/mat/impls/aij/seq/ftn-custom/zaijf.c:14
(at 0x0000000000474e95)
#9 MatCreateSeqAIJ () at
/autofs/na3_home1/adams/petsc/src/mat/impls/aij/seq/aij.c:3574 (at
0x000000000053c8b1)
#8 MatSetType () at
/autofs/na3_home1/adams/petsc/src/mat/interface/matreg.c:71 (at
0x000000000050b292)
#7 MatCreate_SeqAIJ () at
/autofs/na3_home1/adams/petsc/src/mat/impls/aij/seq/aij.c:4129 (at
0x000000000053f24a)
#6 MatCreate_SeqAIJ_Inode () at
/autofs/na3_home1/adams/petsc/src/mat/impls/aij/seq/inode2.c:99 (at
0x000000000058b205)
#5 PetscOptionsEnd_Private () at
/autofs/na3_home1/adams/petsc/src/sys/objects/aoptions.c:516 (at
0x000000000043fc25)
#4 PetscFreeAlign () at
/autofs/na3_home1/adams/petsc/src/sys/memory/mal.c:72 (at
0x0000000000483f89)
#3 free () from /dsl/lib64/libc-2.11.3.so (at 0x00002aaab5bcc4fc)
#2 malloc_printerr () from /dsl/lib64/libc-2.11.3.so (at 0x00002aaab5bc7558)
#1 __libc_message () from /dsl/lib64/libc-2.11.3.so (at 0x00002aaab5bc1e2f)
#0 abort () from /dsl/lib64/libc-2.11.3.so (at 0x00002aaab5b85fb0)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140507/ee09abe5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tpetsc.F90
Type: application/octet-stream
Size: 9986 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140507/ee09abe5/attachment.obj>


More information about the petsc-dev mailing list