Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,9 @@ include(cmake/utils/CCache.cmake)

include(CheckCXXCompilerFlag)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
set(CMAKE_CUDA_STANDARD 20)
set(CMAKE_CUDA_STANDARD 17)

# Module rules
include(cmake/modules/CUDA.cmake)
Expand Down
4 changes: 2 additions & 2 deletions cmake/utils/FindLLVM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ macro(find_llvm use_llvm)
# compiler-appropriate form so the probe works under MSVC as well.
if(NOT CMAKE_CXX_STANDARD)
if(MSVC)
set(CMAKE_REQUIRED_FLAGS "/std:c++20")
set(CMAKE_REQUIRED_FLAGS "/std:c++17")
else()
set(CMAKE_REQUIRED_FLAGS "-std=c++20")
set(CMAKE_REQUIRED_FLAGS "-std=c++17")
endif()
endif()
check_cxx_source_compiles("
Expand Down
14 changes: 5 additions & 9 deletions docs/install/from_source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,11 @@ Apache TVM requires the following dependencies:
- CMake (>= 3.24.0)
- LLVM (recommended >= 15)
- Git
- A recent C++ compiler supporting C++ 20, at the minimum
- GCC 10
- Clang 10
- Apple Clang 14
- Visual Studio 2022

Optional dependencies that use newer C++20 standard library facilities, such
as ``std::format``, may require a newer standard library (for example GCC 13
or newer on Linux).
- A recent C++ compiler supporting C++ 17, at the minimum
- GCC 7.1
- Clang 5.0
- Apple Clang 9.3
- Visual Studio 2019 (v16.7)
- Python (>= 3.10)
- (Optional) Conda (Strongly Recommended)

Expand Down