C++使用Libtorch,用到CUDA,报这个错误 Target "cmTC_a31e0" requires the language dialect "CUDA23" . But the current compiler "NVIDIA" does not support this, or CMake does not know the flags to enable it.
解决方案:
c++版本问题,请从23调至20及以下。
具体原因有待深入研究。
C++使用Libtorch,用到CUDA,报这个错误 Target "cmTC_a31e0" requires the language dialect "CUDA23" . But the current compiler "NVIDIA" does not support this, or CMake does not know the flags to enable it.
解决方案:
c++版本问题,请从23调至20及以下。
具体原因有待深入研究。