From 26abc17010453bc70a04fe7770cb4a7f4f812126 Mon Sep 17 00:00:00 2001 From: KyL0N Date: Tue, 16 Jan 2024 22:06:27 +0900 Subject: [PATCH 1/3] cuda: fix compile error in jetson platform --- ggml-cuda.cu | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ggml-cuda.cu b/ggml-cuda.cu index 568c411afd3ee..0b917b7346603 100644 --- a/ggml-cuda.cu +++ b/ggml-cuda.cu @@ -12,9 +12,6 @@ #include #include #include -#include "ggml-cuda.h" -#include "ggml.h" -#include "ggml-backend-impl.h" #if defined(GGML_USE_HIPBLAS) #include @@ -118,6 +115,10 @@ #endif // defined(GGML_USE_HIPBLAS) +#include "ggml-cuda.h" +#include "ggml.h" +#include "ggml-backend-impl.h" + #define CUDART_HMAX 11070 // CUDA 11.7, min. ver. for which __hmax and __hmax2 are known to work (may be higher than needed) #define CC_PASCAL 600 From beb1c932b98db66d1c2aa98c0726120cda5f58b2 Mon Sep 17 00:00:00 2001 From: Kylin <56434533+KyL0N@users.noreply.github.com> Date: Sat, 20 Jan 2024 14:10:17 +0800 Subject: [PATCH 2/3] cuda: update comment in ggml-cuda.cu --- ggml-cuda.cu | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml-cuda.cu b/ggml-cuda.cu index 0b917b7346603..5dcbb532887b2 100644 --- a/ggml-cuda.cu +++ b/ggml-cuda.cu @@ -115,6 +115,7 @@ #endif // defined(GGML_USE_HIPBLAS) +// ggml-cuda need half type so keep ggml headers include at last #include "ggml-cuda.h" #include "ggml.h" #include "ggml-backend-impl.h" From 847019e39a60e76ed599f3c3521e11705ad9772b Mon Sep 17 00:00:00 2001 From: Kylin <56434533+KyL0N@users.noreply.github.com> Date: Sat, 20 Jan 2024 14:41:40 +0800 Subject: [PATCH 3/3] cuda: update ggml-cuda.cu comment --- ggml-cuda.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml-cuda.cu b/ggml-cuda.cu index 5dcbb532887b2..cfd010a77b485 100644 --- a/ggml-cuda.cu +++ b/ggml-cuda.cu @@ -115,7 +115,7 @@ #endif // defined(GGML_USE_HIPBLAS) -// ggml-cuda need half type so keep ggml headers include at last +// ggml-cuda need half type so keep ggml headers include at last #include "ggml-cuda.h" #include "ggml.h" #include "ggml-backend-impl.h"