llama : make tensor_split ptr instead of array (#2272)

This commit is contained in:
Georgi Gerganov
2023-07-21 13:10:51 +03:00
committed by GitHub
parent 54e3bc76fe
commit ae178ab46b
4 changed files with 8 additions and 4 deletions

View File

@@ -2512,6 +2512,9 @@ void ggml_init_cublas() {
}
void ggml_cuda_set_tensor_split(const float * tensor_split) {
if (tensor_split == nullptr) {
return;
}
bool all_zero = true;
for (int i = 0; i < g_device_count; ++i) {
if (tensor_split[i] != 0.0f) {