CUDA: fix __builtin_assume for CUDA < 11.2
This commit is contained in:
parent
1f0bccb279
commit
2faad208ae
1 changed files with 8 additions and 1 deletions
|
@ -51,7 +51,14 @@ static_assert(sizeof(half) == sizeof(ggml_fp16_t), "wrong fp16 size");
|
|||
exit(1); \
|
||||
} \
|
||||
} while (0)
|
||||
#endif // CUDART_VERSION >= 11
|
||||
#endif // CUDART_VERSION >= 12000
|
||||
|
||||
// define nop for old CUDA versions to fix compilation issues
|
||||
#if CUDART_VERSION < 11020
|
||||
__device__ void __builtin_assume(bool exp) {
|
||||
(void) exp;
|
||||
}
|
||||
#endif // CUDART_VERSION < 11020
|
||||
|
||||
#ifdef GGML_CUDA_F16
|
||||
typedef half dfloat; // dequantize float
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue