use same struct size for cuda and non cuda (+1 squashed commits)
Squashed commits: [6eee8e2f] use same struct size for cuda and non cuda
This commit is contained in:
parent
94e68fe474
commit
e49d398f73
2 changed files with 4 additions and 3 deletions
|
@ -1532,7 +1532,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs, generation_o
|
|||
}
|
||||
if (kcpp_params->seed <= 0 || kcpp_params->seed==0xFFFFFFFF)
|
||||
{
|
||||
kcpp_params->seed = (((uint32_t)time(NULL)) % 1000000);
|
||||
kcpp_params->seed = (((uint32_t)time(NULL)) % 1000000u);
|
||||
}
|
||||
|
||||
// tokenize the prompt
|
||||
|
|
5
llama.h
5
llama.h
|
@ -4,9 +4,10 @@
|
|||
#include "ggml.h"
|
||||
#ifdef GGML_USE_CUBLAS
|
||||
#include "ggml-cuda.h"
|
||||
#define LLAMA_MAX_DEVICES GGML_CUDA_MAX_DEVICES
|
||||
#define LLAMA_MAX_DEVICES 16
|
||||
#else
|
||||
#define LLAMA_MAX_DEVICES 1
|
||||
//just max it out, same as GGML_CUDA_MAX_DEVICES
|
||||
#define LLAMA_MAX_DEVICES 16
|
||||
#endif // GGML_USE_CUBLAS
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue