Skip to content

VS 17.4 upgrade causes linker problems building TorchSharp #858

Closed

Description

Upgrading to v17.4 of Visual Studio leads to a C++ compiler bug that has yet to be fixed. Solutions include using a pre-17.4 version of VS, or modifying a header file in the PyTorch Distribution as described herein:

https://stackoverflow.com/questions/74366357/updating-to-visual-studio-17-4-0-yields-linker-errors-related-to-tls

This is a C++ compiler bug, combined with a particular code pattern used in a PyTorch distribution header file, so there is nothing to do in the TorchSharp code base besides tracking it.

@GeorgeS2019, I believe you ran into this issue some time ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions