Ptxas fatal : Unresolved extern function '__cudaCDP2EventRecord'

Hi, I’m trying to add some event based timing on my CUDA program. cudaEventRecord() seems not to work and the compilation gives the error message:

ptxas fatal : Unresolved extern function ‘__cudaCDP2EventRecord’

I’m having latest (12.1) cuda on Ubuntu.

Br
Vesa