mirror of
https://github.com/Niko1221/Strata.git
synced 2026-11-09 12:11:47 -10:00
tests/terminal/test_engine_manifest: read the CUDA architecture default from cmake/backends/cuda.cmake
This commit is contained in:
1 parent
e66450705e
commit
451f3e8a60
1 file changed
+2
-1
@@ -244,7 +244,8 @@ class Arch(unittest.TestCase):
|
||||
|
||||
sh = (ROOT / "packaging" / "build_dsv41_cuda.sh").read_text(encoding="utf-8")
|
||||
bat = (ROOT / "packaging" / "build_dsv41_windows.bat").read_text(encoding="utf-8")
|
||||
cmake = (ROOT / "CMakeLists.txt").read_text(encoding="utf-8")
|
||||
# CMakeLists.txt is cut into cmake/*.cmake macros (cleanup 5.4): the CUDA architecture default is in cmake/backends/cuda.cmake
|
||||
cmake = (ROOT / "CMakeLists.txt").read_text(encoding="utf-8") + (ROOT / "cmake" / "backends" / "cuda.cmake").read_text(encoding="utf-8")
|
||||
linux = re.search(r"^ARCH=\$\{ARCH:-([^}]+)\}", sh, re.M).group(1)
|
||||
windows = re.search(r'set "DSV41_ARCH=([^"]+)"', bat).group(1)
|
||||
self.assertEqual(linux, windows, "Windows and Linux ship the same DeepSeek architectures")
|
||||
|
||||
Reference in new issue
Block a user