天天看點

g++ error cuda_runtime_api.h: No such file or directory

g++ error cuda_runtime_api.h: No such file or directory

我是這樣解決的,找到 mmdetection/mmdet/ops/utils/src/compiling_info.cpp 檔案裡定義的頭檔案

g++ error cuda_runtime_api.h: No such file or directory

把包含的 cuda_runtime_api.h 頭檔案帶上絕對路徑就行了!