vcpkg install libtorch[cuda] -allow-unsupported-compiler

简介: vcpkg install libtorch[cuda] -allow-unsupported-compiler

在vcpkg中不懂如何使用 nvcc 的 -allow-unsupported-compiler,


所以直接注释了CUDA中对版本的检查代码.


C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include\crt\host_config.h


奇了怪了,我是用的是vs2022,但是还是被检查为不支持的编译器!!!


可以试一下改这个文件


D:\Libraries\vcpkg\scripts\cmake\vcpkg_execute_required_process.cmake


set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -allow-unsupported-compiler")
目录
相关文章
|
Linux Python
LINUX These critical programs are missing or too old: compiler python
LINUX These critical programs are missing or too old: compiler python
1192 0
LINUX These critical programs are missing or too old: compiler python
You need libtool version 1.5.14 or newer to build
You need libtool version 1.5.14 or newer to build
150 0
|
7月前
|
Shell Linux 网络安全
【Python】已完美解决:(pip提示升级)WARNING: There was an error checking the latest version of pip.,
【Python】已完美解决:(pip提示升级)WARNING: There was an error checking the latest version of pip.,
993 0
|
9月前
|
计算机视觉 Python
ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly
ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly
188 2
|
9月前
|
编译器 Linux C语言
CMake指定交叉编译指南:从编译器设置到验证 (CMake Cross-compilation Guide: From Compiler Setup to Verification)
CMake指定交叉编译指南:从编译器设置到验证 (CMake Cross-compilation Guide: From Compiler Setup to Verification)
2180 1
|
Python
python安装osgeo库并解决is not a supported wheel on this platform 问题
python安装osgeo库并解决is not a supported wheel on this platform 问题
2941 0
解决ERROR: Cannot uninstall ‘PyYAML‘. It is a distutils installed project and thus we cannot accuratel
解决ERROR: Cannot uninstall ‘PyYAML‘. It is a distutils installed project and thus we cannot accuratel
662 0
解决ERROR: Cannot uninstall ‘PyYAML‘. It is a distutils installed project and thus we cannot accuratel
|
并行计算 编译器 TensorFlow
win10 install tensorflow error:Loaded runtime CuDNN library: 7102 but source was compiled with 7005
win10 install tensorflow error:Loaded runtime CuDNN library: 7102 but source was compiled with 7005
179 0
make menuconfig‘ requires the ncurses libraries.
make menuconfig‘ requires the ncurses libraries.
149 0
编译OpenJDK8:configure: Could not compile and link with freetype. This might be a 32/64-bit mismatch.
编译OpenJDK8:configure: Could not compile and link with freetype. This might be a 32/64-bit mismatch.
108 0