"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "66d5a1804c56ffa4eb4df0b767818e6288b84831"
Unverified Commit 3b202420 authored by Nikita Shulga's avatar Nikita Shulga Committed by GitHub
Browse files

Build CUDA-11 Windows cmake using C++17 (#4945)

parent 1deb2ec2
...@@ -10,6 +10,11 @@ if(WITH_CUDA) ...@@ -10,6 +10,11 @@ if(WITH_CUDA)
add_definitions(-D__CUDA_NO_HALF_OPERATORS__) add_definitions(-D__CUDA_NO_HALF_OPERATORS__)
add_definitions(-DWITH_CUDA) add_definitions(-DWITH_CUDA)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --expt-relaxed-constexpr") set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --expt-relaxed-constexpr")
# CUDA-11.x can not be compiled using C++14 standard on Windows
string(REGEX MATCH "^[0-9]+" CUDA_MAJOR ${CMAKE_CUDA_COMPILER_VERSION})
if(${CUDA_MAJOR} GREATER 10 AND MSVC)
set(CMAKE_CXX_STANDARD 17)
endif()
endif() endif()
find_package(Python3 COMPONENTS Development) find_package(Python3 COMPONENTS Development)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment