mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-05 21:49:03 +00:00
Merge branch 'fix' into speculative
This commit is contained in:
commit
45de284f3d
1 changed files with 3 additions and 2 deletions
|
@ -1421,8 +1421,9 @@ static bool assign_layers_to_device(
|
||||||
if (n_m < static_cast<uint32_t>(std::floor(W * vec_z_gpu[m]))) {
|
if (n_m < static_cast<uint32_t>(std::floor(W * vec_z_gpu[m]))) {
|
||||||
// if there is still free GPU memory
|
// if there is still free GPU memory
|
||||||
has_free_gpu_memory = true;
|
has_free_gpu_memory = true;
|
||||||
} else if (w_m > n_m) {
|
}
|
||||||
// if the GPU is overloaded
|
if (w_m > n_m) {
|
||||||
|
// if layers are offloaded to CPU
|
||||||
has_gpu_overload = true;
|
has_gpu_overload = true;
|
||||||
}
|
}
|
||||||
} else if (!in_set(m, M4)) {
|
} else if (!in_set(m, M4)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue