From: Kylin Date: Sat, 20 Jan 2024 07:01:46 +0000 (+0800) Subject: cuda : fix compile error in jetson platform (llama/4975) X-Git-Tag: upstream/1.7.4~1087 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=74da3e17572d0b1e9d4e4923fd8550df4c040df5;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp cuda : fix compile error in jetson platform (llama/4975) * cuda: fix compile error in jetson platform * cuda: update comment in ggml-cuda.cu * cuda: update ggml-cuda.cu comment --- diff --git a/ggml-cuda.cu b/ggml-cuda.cu index b2211d85..ec3837fb 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,11 @@ #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" + #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