28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
|
From 5dd02993e8cc2ce309157736b95bb572f274a3fd Mon Sep 17 00:00:00 2001
|
||
|
From: Michael Yang <mxyng@pm.me>
|
||
|
Date: Wed, 20 Sep 2023 14:19:52 -0700
|
||
|
Subject: [PATCH] copy cuda runtime libraries
|
||
|
|
||
|
---
|
||
|
CMakeLists.txt | 4 ++++
|
||
|
1 file changed, 4 insertions(+)
|
||
|
|
||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 824d9f2..dd24137 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -274,6 +274,10 @@ if (LLAMA_CUBLAS)
|
||
|
set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS} CUDA::cudart CUDA::cublas CUDA::cublasLt)
|
||
|
endif()
|
||
|
|
||
|
+ configure_file(${CUDAToolkit_LIBRARY_DIR}/libcudart.so ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/libcudart.so.${CUDAToolkit_VERSION_MAJOR}.0 COPYONLY)
|
||
|
+ configure_file(${CUDAToolkit_LIBRARY_DIR}/libcublas.so ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/libcublas.so.${CUDAToolkit_VERSION_MAJOR} COPYONLY)
|
||
|
+ configure_file(${CUDAToolkit_LIBRARY_DIR}/libcublasLt.so ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/libcublasLt.so.${CUDAToolkit_VERSION_MAJOR} COPYONLY)
|
||
|
+
|
||
|
if (NOT DEFINED CMAKE_CUDA_ARCHITECTURES)
|
||
|
# 52 == lowest CUDA 12 standard
|
||
|
# 60 == f16 CUDA intrinsics
|
||
|
--
|
||
|
2.42.0
|
||
|
|