Closed DylanWake closed 2 years ago
在windows环境下从CLion或Visual Studio导入项目, 编译项目工程的时候, cmake 生成结束后报错无法获得编译器信息。 这里是原始日志(CLion, VS 里的报错相同):
//P.S. 在同样的环境下我其它的CUDA项目都能够正常的编译
"D:\Program Files\Jetbrains\CLion 2022.1\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug "-DCMAKE_MAKE_PROGRAM=D:/Program Files/Jetbrains/CLion 2022.1/bin/ninja/win/ninja.exe" -G Ninja -S D:\Projects\CLionProjects\oneflow -B D:\Projects\CLionProjects\oneflow\cmake-build-debug -- Found CUDAToolkit: D:/Program Files/NVIDIA/CUDA_115_Dev/include (found suitable version "11.5.50", minimum required is "11.5") -- CMAKE_BUILD_TYPE: Debug CMake Warning at CMakeLists.txt:118 (message): Unknown compiler "MSVC". -- USE_CXX11_ABI: OFF -- RPC backend enabled: gRPC -- RPC backend enabled: local -- Found CUDAToolkit: D:/Program Files/NVIDIA/CUDA_115_Dev/include (found version "11.5.50") -- CUDAToolkit_FOUND: TRUE -- CUDAToolkit_VERSION: 11.5.50 -- CUDAToolkit_VERSION_MAJOR: 11 -- CUDAToolkit_VERSION_MINOR: 5 -- CUDAToolkit_VERSION_PATCH: 50 -- CUDAToolkit_BIN_DIR: D:/Program Files/NVIDIA/CUDA_115_Dev/bin -- CUDAToolkit_INCLUDE_DIRS: D:/Program Files/NVIDIA/CUDA_115_Dev/include -- CUDAToolkit_LIBRARY_DIR: D:/Program Files/NVIDIA/CUDA_115_Dev/lib/x64 -- CUDAToolkit_LIBRARY_ROOT: -- CUDAToolkit_TARGET_DIR: D:/Program Files/NVIDIA/CUDA_115_Dev -- CUDAToolkit_NVCC_EXECUTABLE: D:/Program Files/NVIDIA/CUDA_115_Dev/bin/nvcc.exe -- CUDA_VERSION: 11.5.50 -- VENDOR_CUDA_LIBRARIES: CUDA::cublas_static;CUDA::curand_static;CUDA::cublasLt_static;CUDA::nvjpeg_static;CUDA::nppig_static;CUDA::nppc_static;CUDA::culibos -- CMAKE_CUDA_COMPILER: D:/Program Files/NVIDIA/CUDA_115_Dev/bin/nvcc.exe -- Found cuDNN: v8.3.1 (include: D:/Program Files/NVIDIA/CUDA_115_Dev/include, library: D:/Program Files/NVIDIA/CUDNN_115/libcudnn_cnn_infer.so;D:/Program Files/NVIDIA/CUDNN_115/libcudnn_cnn_train.so;D:/Program Files/NVIDIA/CUDNN_115/libcudnn_ops_infer.so;D:/Program Files/NVIDIA/CUDNN_115/libcudnn_ops_train.so) -- Module support is disabled. -- Version: 9.0.0 -- Build type: Debug -- CXX_STANDARD: 14 -- Required features: cxx_variadic_templates INSTALL TARGETS - target fmt has PUBLIC_HEADER files but no PUBLIC_HEADER DESTINATION. INFO ROCM_SOURCE_DIR = -- Kineto: FMT_SOURCE_DIR = D:/Projects/CLionProjects/oneflow/cmake-build-debug/_deps/fmt-src -- Kineto: FMT_INCLUDE_DIR = D:/Projects/CLionProjects/oneflow/cmake-build-debug/_deps/fmt-src/include INFO CUPTI_INCLUDE_DIR = D:/Program Files/NVIDIA/CUDA_115_Dev/extras/CUPTI/include INFO ROCTRACER_INCLUDE_DIR = /include/roctracer -- Could NOT find Unwind (missing: Unwind_INCLUDE_DIR Unwind_LIBRARY Unwind_PLATFORM_LIBRARY) -- Using the single-header code from D:/Projects/CLionProjects/oneflow/cmake-build-debug/_deps/json-src/single_include/ -- Project 'string_view_lite', package 'string-view-lite' version: '1.6.0' -- Found Blas Lib: C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017/windows/mkl/lib/intel64_win/mkl_core_dll.libC:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017/windows/mkl/lib/intel64_win/mkl_sequential_dll.libC:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017/windows/mkl/lib/intel64_win/mkl_intel_lp64_dll.lib -- oneflow_third_party_libs: protobuf_imported;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/grpc/lib/grpc++_unsecure.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/grpc/lib/grpc_unsecure.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/grpc/lib/gpr.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/grpc/lib/upb.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/grpc/lib/address_sorting.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/grpc/lib/cares.lib;C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017/windows/mkl/lib/intel64_win/mkl_core_dll.lib;C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017/windows/mkl/lib/intel64_win/mkl_sequential_dll.lib;C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017/windows/mkl/lib/intel64_win/mkl_intel_lp64_dll.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/opencv/lib/libopencv_imgproc.a;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/opencv/lib/libopencv_imgcodecs.a;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/opencv/lib/libopencv_core.a;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/opencv/share/OpenCV/3rdparty/lib/libIlmImf.a;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/opencv/share/OpenCV/3rdparty/lib/liblibjasper.a;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/opencv/share/OpenCV/3rdparty/lib/liblibpng.a;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/opencv/share/OpenCV/3rdparty/lib/liblibtiff.a;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/opencv/share/OpenCV/3rdparty/lib/liblibwebp.a;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/cocoapi/lib/libcocoapi_static.a;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/absl/lib/absl_spinlock_wait.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/absl/lib/absl_dynamic_annotations.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/absl/lib/absl_malloc_internal.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/absl/lib/absl_throw_delegate.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/absl/lib/absl_int128.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/absl/lib/absl_strings.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/absl/lib/absl_str_format_internal.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/absl/lib/absl_time.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/absl/lib/absl_bad_optional_access.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/absl/lib/absl_base.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/openssl/lib/ssl.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/openssl/lib/crypto.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/flatbuffers/lib/libflatbuffers.a;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/lz4/lib/liblz4.a;nlohmann_json::nlohmann_json;string-view-lite;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/re2/lib/libre2.a;zlib_imported;ShLwApi.Lib;Ws2_32.lib;D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/nccl/lib/libnccl_static.lib;D:/Program Files/NVIDIA/CUDNN_115/libcudnn_cnn_infer.so;D:/Program Files/NVIDIA/CUDNN_115/libcudnn_cnn_train.so;D:/Program Files/NVIDIA/CUDNN_115/libcudnn_ops_infer.so;D:/Program Files/NVIDIA/CUDNN_115/libcudnn_ops_train.so;CUDA::cublas_static;CUDA::curand_static;CUDA::cublasLt_static;CUDA::nvjpeg_static;CUDA::nppig_static;CUDA::nppc_static;CUDA::culibos -- CMAKE_CUDA_ARCHITECTURES: 60-real;61-real;70-real;75-real;80-real;86-real;80-virtual -- CUDA_NVCC_FLAGS: -t4 -- CMAKE_CXX_COMPILER_VERSION: 19.29.30145.0 -- Found Python3: D:/Program Files/Python3.10/python.exe (found version "3.10.4") found components: Interpreter -- Python3 specified. Version found: 3.10.4 -- Using Python executable: D:/Program Files/Python3.10/python.exe -- Installing necessary Python packages... -- PIP_INDEX_MIRROR: Ignoring opencv-python: markers 'python_version < "3.9" and sys_platform != "darwin" and platform_machine != "aarch64"' don't match your environment Ignoring dataclasses: markers 'python_version < "3.7"' don't match your environment Requirement already satisfied: black==19.10b0 in c:\users\dylan\appdata\roaming\python\python310\site-packages (from -r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 1)) (19.10b0) Requirement already satisfied: click==8.0.0 in c:\users\dylan\appdata\roaming\python\python310\site-packages (from -r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 2)) (8.0.0) Requirement already satisfied: numpy>=1.17.0 in d:\program files\python3.10\lib\site-packages (from -r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 3)) (1.22.3) Requirement already satisfied: protobuf<4.0,>=3.9.2 in d:\program files\python3.10\lib\site-packages (from -r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 4)) (3.20.1) Requirement already satisfied: wheel in d:\program files\python3.10\lib\site-packages (from -r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 5)) (0.37.1) Requirement already satisfied: tqdm in d:\program files\python3.10\lib\site-packages (from -r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 6)) (4.64.0) Requirement already satisfied: requests in d:\program files\python3.10\lib\site-packages (from -r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 7)) (2.27.1) Requirement already satisfied: jinja2 in c:\users\dylan\appdata\roaming\python\python310\site-packages (from -r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 8)) (3.1.2) Requirement already satisfied: opencv-python in d:\program files\python3.10\lib\site-packages (from -r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 9)) (4.5.5.64) Requirement already satisfied: PyYAML>=5.1 in d:\program files\python3.10\lib\site-packages (from -r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 11)) (6.0) Requirement already satisfied: pillow in d:\program files\python3.10\lib\site-packages (from -r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 12)) (9.1.0) Requirement already satisfied: cmakelang==0.6.13 in c:\users\dylan\appdata\roaming\python\python310\site-packages (from -r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 14)) (0.6.13) Requirement already satisfied: pytest-xdist in c:\users\dylan\appdata\roaming\python\python310\site-packages (from -r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 15)) (2.5.0) Requirement already satisfied: rich in c:\users\dylan\appdata\roaming\python\python310\site-packages (from -r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 16)) (12.5.1) Requirement already satisfied: attrs>=18.1.0 in d:\program files\python3.10\lib\site-packages (from black==19.10b0->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 1)) (21.4.0) Requirement already satisfied: appdirs in d:\program files\python3.10\lib\site-packages (from black==19.10b0->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 1)) (1.4.4) Requirement already satisfied: regex in c:\users\dylan\appdata\roaming\python\python310\site-packages (from black==19.10b0->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 1)) (2022.7.25) Requirement already satisfied: pathspec<1,>=0.6 in c:\users\dylan\appdata\roaming\python\python310\site-packages (from black==19.10b0->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 1)) (0.9.0) Requirement already satisfied: toml>=0.9.4 in d:\program files\python3.10\lib\site-packages (from black==19.10b0->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 1)) (0.10.2) Requirement already satisfied: typed-ast>=1.4.0 in c:\users\dylan\appdata\roaming\python\python310\site-packages (from black==19.10b0->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 1)) (1.5.4) Requirement already satisfied: colorama in d:\program files\python3.10\lib\site-packages (from click==8.0.0->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 2)) (0.4.4) Requirement already satisfied: six>=1.13.0 in d:\program files\python3.10\lib\site-packages (from cmakelang==0.6.13->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 14)) (1.16.0) Requirement already satisfied: certifi>=2017.4.17 in d:\program files\python3.10\lib\site-packages (from requests->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 7)) (2021.10.8) Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\program files\python3.10\lib\site-packages (from requests->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 7)) (1.26.9) Requirement already satisfied: charset-normalizer~=2.0.0 in d:\program files\python3.10\lib\site-packages (from requests->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 7)) (2.0.12) Requirement already satisfied: idna<4,>=2.5 in d:\program files\python3.10\lib\site-packages (from requests->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 7)) (3.3) Requirement already satisfied: MarkupSafe>=2.0 in c:\users\dylan\appdata\roaming\python\python310\site-packages (from jinja2->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 8)) (2.1.1) Requirement already satisfied: pytest-forked in c:\users\dylan\appdata\roaming\python\python310\site-packages (from pytest-xdist->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 15)) (1.4.0) Requirement already satisfied: pytest>=6.2.0 in d:\program files\python3.10\lib\site-packages (from pytest-xdist->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 15)) (7.1.2) Requirement already satisfied: execnet>=1.1 in c:\users\dylan\appdata\roaming\python\python310\site-packages (from pytest-xdist->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 15)) (1.9.0) Requirement already satisfied: pygments<3.0.0,>=2.6.0 in c:\users\dylan\appdata\roaming\python\python310\site-packages (from rich->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 16)) (2.12.0) Requirement already satisfied: commonmark<0.10.0,>=0.9.0 in c:\users\dylan\appdata\roaming\python\python310\site-packages (from rich->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 16)) (0.9.1) Requirement already satisfied: atomicwrites>=1.0 in d:\program files\python3.10\lib\site-packages (from pytest>=6.2.0->pytest-xdist->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 15)) (1.4.0) Requirement already satisfied: tomli>=1.0.0 in d:\program files\python3.10\lib\site-packages (from pytest>=6.2.0->pytest-xdist->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 15)) (2.0.1) Requirement already satisfied: iniconfig in d:\program files\python3.10\lib\site-packages (from pytest>=6.2.0->pytest-xdist->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 15)) (1.1.1) Requirement already satisfied: packaging in d:\program files\python3.10\lib\site-packages (from pytest>=6.2.0->pytest-xdist->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 15)) (21.3) Requirement already satisfied: py>=1.8.2 in d:\program files\python3.10\lib\site-packages (from pytest>=6.2.0->pytest-xdist->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 15)) (1.11.0) Requirement already satisfied: pluggy<2.0,>=0.12 in d:\program files\python3.10\lib\site-packages (from pytest>=6.2.0->pytest-xdist->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 15)) (1.0.0) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in d:\program files\python3.10\lib\site-packages (from packaging->pytest>=6.2.0->pytest-xdist->-r D:/Projects/CLionProjects/oneflow/dev-requirements.txt (line 15)) (3.0.8) WARNING: You are using pip version 22.0.4; however, version 22.2.1 is available. You should consider upgrading via the 'D:\Program Files\Python3.10\python.exe -m pip install --upgrade pip' command. -- Python packages are installed. -- Found Python3: D:/Program Files/Python3.10/libs/python310.lib (found version "3.10.4") found components: Development NumPy Interpreter Development.Module Development.Embed -- Found python include directory D:/Program Files/Python3.10/include -- Found numpy include directory D:/Program Files/Python3.10/Lib/site-packages/numpy/core/include -- pybind11 v2.7.0 CMake Warning (dev) at D:/Program Files/Jetbrains/CLion 2022.1/bin/cmake/win/share/cmake-3.22/Modules/CMakeDependentOption.cmake:84 (message): Policy CMP0127 is not set: cmake_dependent_option() supports full Condition Syntax. Run "cmake --help-policy CMP0127" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): cmake-build-debug/_deps/pybind11-src/CMakeLists.txt:98 (cmake_dependent_option) This warning is for project developers. Use -Wno-dev to suppress it. -- RUN_CLANG_TIDY_ARGS: --build_dir;D:/Projects/CLionProjects/oneflow/cmake-build-debug -- LLVM_MONO_REPO_URL: https://github.com/llvm/llvm-project/archive/6d6268dcbf0f48e43f6f9fe46b3a28c29ba63c7d.zip -- LLVM_MONO_REPO_MD5: 334997b4879aba15d9323a732356cf2a -- Populating llvm_monorepo -- Configuring done -- Generating done -- Build files have been written to: D:/Projects/CLionProjects/oneflow/cmake-build-debug/oneflow/ir/llvm_monorepo-subbuild ninja: no work to do. -- bolt project is disabled -- clang project is disabled -- clang-tools-extra project is disabled -- compiler-rt project is disabled -- cross-project-tests project is disabled -- libc project is disabled -- libclc project is disabled -- libcxx project is disabled -- libcxxabi project is disabled -- libunwind project is disabled -- lld project is disabled -- lldb project is disabled -- mlir project is enabled -- openmp project is disabled -- polly project is disabled -- pstl project is disabled -- flang project is disabled -- OneFlowTableGen project is enabled -- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) -- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR) -- Warning: LLVM will be built thread-unsafe because atomic builtins are missing -- Native target architecture is X86 -- Threads enabled. -- Doxygen disabled. -- Go bindings disabled. -- Ninja version: 1.10.2 -- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) -- OCaml bindings disabled. -- LLVM host triple: x86_64-pc-windows-msvc -- LLVM default target triple: x86_64-pc-windows-msvc -- Using Debug VC++ CRT: MDd -- LLVMHello ignored -- Loadable modules not supported on this platform. -- Targeting NVPTX -- Targeting X86 -- BugpointPasses ignored -- Loadable modules not supported on this platform. -- Using the single-header code from D:/Projects/CLionProjects/oneflow/cmake-build-debug/oneflow/ir/llvm_monorepo-build/_deps/json-src/single_include/ -- Configuring done -- Generating done -- Build files have been written to: D:/Projects/CLionProjects/oneflow/cmake-build-debug/oneflow/ir/llvm_monorepo-build [0/2] cmd.exe /C "cd /D D:\Projects\CLionProjects\oneflow\cmake-build-debug\oneflow\ir\llvm_monorepo-build\tools\mlir && "D:\Program Files\Jetbrains\CLion 2022.1\bin\cmake\win\bin\cmake.exe" -DCMAKE_INSTALL_COMPONENT="mlir-headers" -P D:/Projects/CLionProjects/oneflow/cmake-build-debug/oneflow/ir/llvm_monorepo-build/cmake_install.cmake" -- Install configuration: "Debug" [1/2] cmd.exe /C "cd /D D:\Projects\CLionProjects\oneflow\cmake-build-debug\oneflow\ir\llvm_monorepo-build\tools\OneFlowTableGen && "D:\Program Files\Jetbrains\CLion 2022.1\bin\cmake\win\bin\cmake.exe" -DCMAKE_INSTALL_COMPONENT=OneFlowTableGen -P D:/Projects/CLionProjects/oneflow/cmake-build-debug/oneflow/ir/llvm_monorepo-build/cmake_install.cmake" -- Install configuration: "Debug" -- Configuring done -- Generating done -- Build files have been written to: D:/Projects/CLionProjects/oneflow/cmake-build-debug Cannot get compiler information: Compiler exited with error code 1: "D:\Program Files\NVIDIA\CUDA_115_Dev\bin\nvcc.exe" -DCOMPILER_MSVC -DEIGEN_NO_AUTOMATIC_RESIZING -DEIGEN_NO_MALLOC -DEIGEN_USE_GPU -DGOOGLE_GLOG_DLL_DECL= -DGOOGLE_LOGGING -DHALF_ENABLE_CPP11_USER_LITERALS=0 -DLANG_CXX11 -DNOGDI -DNOMINMAX -DOF_CPU_THREADING_RUNTIME=OF_RUNTIME_SEQ -DOF_LAYER_NORM_USE_FAST_MATH -DOF_SOFTMAX_USE_FAST_MATH -DOS_WIN -DPLATFORM_WINDOWS -DRPC_BACKEND_GRPC -DRPC_BACKEND_LOCAL -DTHRUST_IGNORE_CUB_VERSION_CHECK -DWIN32 -DWIN32_LEAN_AND_MEAN -DWIN64 -DWITH_COCOAPI -DWITH_CUDA -D_GLIBCXX_USE_CXX11_ABI=0 -D_ITERATOR_DEBUG_LEVEL=0 -D_MBCS -D_WIN32_WINNT=0x0A00 -D__VERSION__=\"MSVC\" -Doneflow_EXPORTS -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/zlib/include -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/protobuf/include -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/grpc/include -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/_deps/glog-build -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/libjpeg-turbo/include -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/opencv/include -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/libpng/include -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/eigen/include/eigen3 -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/cocoapi/include -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/half/include -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/absl/include -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/openssl/include -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/flatbuffers/include -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/lz4/include -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/re2/include "-isystem=D:/Program Files/NVIDIA/CUDA_115_Dev/include" -isystem=D:/Projects/CLionProjects/oneflow/cmake-build-debug/third_party_install/nccl/include -t 4 "-Xcompiler=-Zi -Ob0 -Od /RTC1" --generate-code=arch=compute_60,code=[sm_60] --generate-code=arch=compute_61,code=[sm_61] --generate-code=arch=compute_70,code=[sm_70] --generate-code=arch=compute_75,code=[sm_75] --generate-code=arch=compute_80,code=[sm_80] --generate-code=arch=compute_86,code=[sm_86] --generate-code=arch=compute_80,code=[compute_80] -Xcompiler=-MDd /bigobj /nologo /EHsc /GF /FC /MP /Gm- -Xcompiler -Wno-deprecated-gpu-targets cross-execution-space-call -Xcudafe --diag_suppress=declared_but_not_referenced -std=c++14 --dryrun C:\Users\Dylan\AppData\Local\Temp\compiler-file742615462538100574.cu [Failed to reload]
您好,OneFlow目前不支持在Windows环境下编译、安装、使用
Summary
在windows环境下从CLion或Visual Studio导入项目, 编译项目工程的时候, cmake 生成结束后报错无法获得编译器信息。 这里是原始日志(CLion, VS 里的报错相同):
//P.S. 在同样的环境下我其它的CUDA项目都能够正常的编译
Code to reproduce bug
System Information