thrust error at matrix assembly

I’m using PGI compiler. GPU gave the following error 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?

Thanks,