Skip to content

Commit 068ca81

Browse files
authored
[BUILD] Remove TRITON_BUILD_TUTORIALS from CMakeLists (triton-lang#6082)
This option is not used anywhere
1 parent 4b175a5 commit 068ca81

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ include(CTest)
1818
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
1919

2020
# Options
21-
option(TRITON_BUILD_TUTORIALS "Build C++ Triton tutorials" ON)
2221
option(TRITON_BUILD_PYTHON_MODULE "Build Python Triton bindings" OFF)
2322
option(TRITON_BUILD_PROTON "Build the Triton Proton profiler" ON)
2423
option(TRITON_BUILD_UT "Build C++ Triton Unit Tests" ON)

python/setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,8 @@ def build_extension(self, ext):
431431
"-DCMAKE_MAKE_PROGRAM=" +
432432
ninja_dir, # Pass explicit path to ninja otherwise cmake may cache a temporary path
433433
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON", "-DLLVM_ENABLE_WERROR=ON",
434-
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=" + extdir, "-DTRITON_BUILD_TUTORIALS=OFF",
435-
"-DTRITON_BUILD_PYTHON_MODULE=ON", "-DPython3_EXECUTABLE:FILEPATH=" + sys.executable,
436-
"-DPython3_INCLUDE_DIR=" + python_include_dir,
434+
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=" + extdir, "-DTRITON_BUILD_PYTHON_MODULE=ON",
435+
"-DPython3_EXECUTABLE:FILEPATH=" + sys.executable, "-DPython3_INCLUDE_DIR=" + python_include_dir,
437436
"-DTRITON_CODEGEN_BACKENDS=" + ';'.join([b.name for b in backends if not b.is_external]),
438437
"-DTRITON_PLUGIN_DIRS=" + ';'.join([b.src_dir for b in backends if b.is_external])
439438
]
@@ -479,7 +478,6 @@ def build_extension(self, ext):
479478
# environment variables we will pass through to cmake
480479
passthrough_args = [
481480
"TRITON_BUILD_PROTON",
482-
"TRITON_BUILD_TUTORIALS",
483481
"TRITON_BUILD_WITH_CCACHE",
484482
"TRITON_PARALLEL_LINK_JOBS",
485483
]

0 commit comments

Comments
 (0)