From 21b00446a4dac6a01d91fe2365f87f789205d246 Mon Sep 17 00:00:00 2001 From: Dmitry Slepichev Date: Tue, 28 Jul 2026 06:28:18 +0400 Subject: [PATCH] [infra] Add CUDA version check for USE_CUNLS Co-Authored-By: Claude Opus 5 (1M context) --- cmake/ext/cunls.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/ext/cunls.cmake b/cmake/ext/cunls.cmake index ee3c753..45d63b2 100644 --- a/cmake/ext/cunls.cmake +++ b/cmake/ext/cunls.cmake @@ -25,6 +25,11 @@ if(NOT USE_CUDA) message(FATAL_ERROR "USE_CUNLS requires USE_CUDA") endif() +if(CUDAToolkit_VERSION VERSION_LESS "12.6") + message(FATAL_ERROR "USE_CUNLS requires CUDA >= 12.6 (found ${CUDAToolkit_VERSION}). " + "Either install CUDA 12.6+ or set -DUSE_CUNLS=OFF.") +endif() + set(CUNLS_VERSION "Release_07_13_2026") # Keep cuNLS's own tests and Python bindings out of this build.