From 26abc17010453bc70a04fe7770cb4a7f4f812126 Mon Sep 17 00:00:00 2001 From: KyL0N Date: Tue, 16 Jan 2024 22:06:27 +0900 Subject: [PATCH] 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 568c411af..0b917b734 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