Getting error: “nvlink error : Undefined reference to '_ZN8Strategy8backtestEPffffd'”

后端 未结 1 1523
悲哀的现实
悲哀的现实 2021-01-26 08:09

I am getting the following error when running make for my CUDA (v7.5) application:

nvlink error : Undefined reference to \'_ZN8Strategy8backtestEPdd         


        
相关标签:
1条回答
  • 2021-01-26 08:54

    Turns out objects passed to CUDA kernels cannot have virtual functions. See this thread.

    However, it seems that objects instantiated and used only within the kernel can have virtual functions.

    0 讨论(0)
提交回复
热议问题