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!