call to cuStreamSynchronize returned error 702: Launch timeo

To whom it may concern,
I was trying to call C function with OpenACC directives in R through .C interface.

When C program(rowdistacc.c) is compiled and linked with following flags,
pgcc -acc -fPIC -c rowdistacc.c -o rowdistacc.o
pgcc -acc -shared -o rowdistacc.so rowdistacc.o

the C function called from R could accelerate the computation to the row distances of matrix.

However, when C program(rowdistacc.c) is compiled and linked with an extra flag -g,
pgcc -acc -fPIC -c -g rowdistacc.c -o rowdistacc.o
pgcc -acc -shared -o rowdistacc.so rowdistacc.o

calling this C function from R will have a runtime error as follows,
call to cuStreamSynchronize returned error 702: Launch timeout
call to cuMemFreeHost returned error 702: Launch timeout

Could you please explain how the -g triggers this runtime error?

Thanks in advance!

Bingxi

Not having seen the code in question, my guess is that we
have a bug.

I assume you can verify that if the library/object were linked statically
rather than dynamically, it works.

Please send an example of the failing code to trs@pgroup.com, and
we can determine if it is a problem we need to correct, or possibly a pilot error.

dave