Skip to content

error when bazel compile torch_tensorrt on win10 #1650

Closed
@zhanghuqiang

Description

@zhanghuqiang

❓ Question

when command " bazel build //:libtorchtrt --compilation_mode opt", the error comes

ERROR: C:/users/zhang/downloads/tensorrt-main/core/runtime/BUILD:13:11: Compiling core/runtime/TRTEngineProfiler.cpp failed: (Exit 2): cl.exe failed: error executing command (from target //core/runtime:runtime) D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX64\x64\cl.exe /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN3 2_WINNT=0x0601 /D_CRT_SECURE_NO_DEPRECATE ... (remaining 48 arguments skipped)

What you have already tried

Environment

Build information about Torch-TensorRT can be found by turning on debug messages

  • PyTorch Version (e.g., 1.0):1.13
  • CPU Architecture: AMD5600x
  • OS (e.g., Linux):win10
  • How you installed PyTorch (conda, pip, libtorch, source):
  • Build command you used (if compiling from source):
  • Are you using local sources or building from archives:
  • Python version:
  • CUDA version:11.7
  • GPU models and configuration:2060
  • Any other relevant information: visual studio2019

Additional context

Metadata

Metadata

Assignees

Labels

No Activitychannel: windowsbugs, questions, & RFEs around WindowsquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions