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
1 Like
sakaia
2
I also met this problem on CUDA 12.5. cudaEventRecord is not successfully link on __global__ function. Is there any solution to solve this problem?
you’ll need to specify -rdc=true
or equivalent at compilation and link stages. godbolt example. This is often the case when using the device runtime API.
1 Like