Skip to content

SofaCUDA (CUDA) for Visual Studio 2026 #5930

Description

@fredroy

Visual Studio 2026 is still not officially supported at this date (CUDA 13.1).

Here is the workaround to make SofaCUDA compiles with Cuda 13.1 (maybe other versions too) and Visual Studio 2026

Fix CMake detection (No CUDA toolset found)

Copy the contents of the directory
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.1\extras\visual_studio_integration\MSBuildExtensions
into
C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild\Microsoft\VC\v180\BuildCustomizations

(Here are the default install directories for both MSVC and CUDA, adapt to yours if it was customized)

Fix CMake error while trying to check nvcc compatibility

Add -allow-unsupported-compiler to the cmake variable CMAKE_CUDA_FLAGS

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions