ggml : fix warnings under MSVC (#1908)
This commit is contained in:
parent
0711a5f6dc
commit
3d59ec5935
3 changed files with 9 additions and 1 deletions
|
@ -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) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue