cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/wgd@corp.sse.tongji.edu.cn/Bridging-Text-Spotting/adet/layers/csrc/DeformAttn/ms_deform_attn_cpu.cpp:14:
/home/wgd@corp.sse.tongji.edu.cn/.conda/envs/Bridge/lib/python3.8/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file or directory
5 | #include
| ^~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
运行编译时 一直报错,尝试多种办法也无果,报错信息如下,能麻烦帮忙看看吗?
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/wgd@corp.sse.tongji.edu.cn/Bridging-Text-Spotting/adet/layers/csrc/DeformAttn/ms_deform_attn_cpu.cpp:14: /home/wgd@corp.sse.tongji.edu.cn/.conda/envs/Bridge/lib/python3.8/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file or directory 5 | #include
| ^
~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1