折腾来了N久,这个问题终于搞定了,链接在此:cmake, undefined reference cuCtxDetach, cuMemGetInfo_v2, cuCtxCreate_v2, cuInit

其实就只需要在CMakeLists.txt的target_link_libraries加上cuda就行,也即:

target_link_libraries(tset cuda)
Logo

一站式 AI 云服务平台

更多推荐