pytorch / pytorch/pytorch.github.io

you need C++17 to compile pytorch

Open
#1,794 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
285
Forks
317
PR merge metrics
No merged PRs in 30d

Description

   I compiled a CUDA project with the libtorch lib -----"libtorch-win-shared-with-deps-2.5.0+cu124" in visual studio 2002 IDE under WIN11 , but the issue " C1189, you need C++17 to compile pytorch "occured ,but i had set the language to std c++17 

屏幕截图 2024-10-24 184346

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, project file, or test is provided. Start by reproducing the C1189 error with libtorch-win-shared-with-deps-2.5.0+cu124 in Visual Studio under Windows 11, then verify the effective C++ language setting used by the CUDA project; done means the project compiles with C++17 or the required configuration is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, pytorch
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.