I’m using PGI compiler. The following error was given at a PETSc matrix assembly process

terminate called after throwing an instance of ‘thrust::system::system_error’
what(): parallel_for failed: cudaErrorInvalidValue: invalid argument
[cgpu10:mpi_rank_0][error_sighandler] Caught error: Aborted (signal 6)

Do you know the reason?


Hi jingchen,

Do you know the reason?

Sorry, I don’t. Though the error seems to indicate that a parallel_for is being called with an invalid argument. You may want to contact the PETsc folks to see if they know.

Note that the Thrust portion of the code would have been compiled with CUDA nvcc, not the PGI compilers.