Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL] remove global variables #7710

Merged
merged 10 commits into from
Jun 15, 2024
Prev Previous commit
Next Next commit
remove duplicated extras
  • Loading branch information
airMeng committed Jun 14, 2024
commit c776fb8033e9b6e4dfc8c73d06c3385b0e6dfb2c
3 changes: 0 additions & 3 deletions ggml-sycl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11988,9 +11988,6 @@ static size_t ggml_nbytes_split(const struct ggml_tensor * tensor, int nrows_spl
return nrows_split*ggml_row_size(tensor->type, tensor->ne[0]);
}

static ggml_tensor_extra_gpu * g_temp_tensor_extras = nullptr;
static size_t g_temp_tensor_extra_index = 0;

void ggml_sycl_set_main_device(const int main_device) try {
if (dpct::get_current_device_id() == main_device) return;
check_allow_gpu_index(main_device);
Expand Down
Loading