From 3e798a01454f535ccbbc3d2a58ae859681f37daf Mon Sep 17 00:00:00 2001 From: Steven Lyubomirsky Date: Thu, 1 Sep 2022 20:04:33 -0400 Subject: [PATCH 1/2] Update the minimum CMake version --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 188f9fb1c7a8..e961c6d2d992 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.2) +cmake_minimum_required(VERSION 3.18) project(tvm C CXX) # Utility functions From 1c3f9f0dc5b5827ac9ac34c767841bffc09ae046 Mon Sep 17 00:00:00 2001 From: Steven Lyubomirsky Date: Thu, 1 Sep 2022 21:00:03 -0400 Subject: [PATCH 2/2] Add note about CMake version in installation docs --- docs/install/from_source.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/install/from_source.rst b/docs/install/from_source.rst index 63d8aab33623..33328c586760 100644 --- a/docs/install/from_source.rst +++ b/docs/install/from_source.rst @@ -64,7 +64,7 @@ The minimal building requirements for the ``TVM`` libraries are: - Clang 5.0 - Apple Clang 9.3 - Visual Studio 2019 (v16.7) - - CMake 3.10 or higher + - CMake 3.18 or higher - We highly recommend to build with LLVM to enable all the features. - If you want to use CUDA, CUDA toolkit version >= 8.0 is required. If you are upgrading from an older version, make sure you purge the older version and reboot after installation. - On macOS, you may want to install `Homebrew `_ to easily install and manage dependencies. @@ -78,6 +78,9 @@ linux operating systems, execute (in a terminal): sudo apt-get update sudo apt-get install -y python3 python3-dev python3-setuptools gcc libtinfo-dev zlib1g-dev build-essential cmake libedit-dev libxml2-dev + +Note that the version of CMake on apt may not be sufficiently up to date; it may be necessary to install it directly from `Kitware's third-party APT repository `_. + Use Homebrew to install the required dependencies for macOS running either the Intel or M1 processors. You must follow the post-installation steps specified by Homebrew to ensure the dependencies are correctly installed and configured: