diff options
author | Howard Su <howard0su@gmail.com> | 2023-06-17 23:46:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-17 18:46:15 +0300 |
commit | 3d59ec5935ea1d33e9d51060a8dd737169b9b89b (patch) | |
tree | f81193b70a4a54d28ec1c25a6326d3ab1c847538 /ggml-cuda.cu | |
parent | 0711a5f6dce7f04c2a791b14bc47f7d4cb545408 (diff) |
ggml : fix warnings under MSVC (#1908)
Diffstat (limited to 'ggml-cuda.cu')
-rw-r--r-- | ggml-cuda.cu | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ggml-cuda.cu b/ggml-cuda.cu index 7edd1a9..fed2a7c 100644 --- a/ggml-cuda.cu +++ b/ggml-cuda.cu @@ -13,6 +13,10 @@ #include "ggml-cuda.h" #include "ggml.h" +#if defined(_MSC_VER) +#pragma warning(disable: 4244 4267) // possible loss of data +#endif + static_assert(sizeof(half) == sizeof(ggml_fp16_t), "wrong fp16 size"); #define CUDA_CHECK(err) \ |