From 22925c21b8736b6db949a9aecfbf5ccb61ae3c65 Mon Sep 17 00:00:00 2001 From: chalsliu <45041955+chalsliu@users.noreply.github.com> Date: Thu, 23 Feb 2023 15:06:16 +0800 Subject: [PATCH] Fix cutlass build error when cuda greater than 11 and with_python=off (#50763) --- cmake/external/cutlass.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/external/cutlass.cmake b/cmake/external/cutlass.cmake index 822b71c71d3..3b731e0c112 100644 --- a/cmake/external/cutlass.cmake +++ b/cmake/external/cutlass.cmake @@ -26,6 +26,10 @@ include_directories( add_definitions("-DPADDLE_WITH_CUTLASS") +if(NOT PYTHON_EXECUTABLE) + find_package(PythonInterp REQUIRED) +endif() + ExternalProject_Add( extern_cutlass ${EXTERNAL_PROJECT_LOG_ARGS} ${SHALLOW_CLONE} -- GitLab