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:
Concedo 2024-01-03 16:03:36 +08:00
parent 94e68fe474
commit e49d398f73
2 changed files with 4 additions and 3 deletions

View file

@ -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