From 6b4f7b2ac1ff4f77985430618c41e6e24ba929dd Mon Sep 17 00:00:00 2001 From: Chen Xi Date: Thu, 18 Jul 2024 07:13:01 +0000 Subject: [PATCH] fix some typo Signed-off-by: Chen Xi --- ggml/src/ggml-sycl/dpct/helper.hpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ggml/src/ggml-sycl/dpct/helper.hpp b/ggml/src/ggml-sycl/dpct/helper.hpp index fef5e2d8d..55f003a35 100644 --- a/ggml/src/ggml-sycl/dpct/helper.hpp +++ b/ggml/src/ggml-sycl/dpct/helper.hpp @@ -255,7 +255,7 @@ namespace dpct void set_pitch(size_t pitch) { _pitch = pitch; } size_t get_x() { return _x; } - void set_x(size_t x) { _x = x; }; + void set_x(size_t x) { _x = x; } size_t get_y() { return _y; } void set_y(size_t y) { _y = y; } @@ -978,7 +978,6 @@ namespace dpct static bool compare_backend(std::string &backend1, std::string &backend2) { return convert_backend_index(backend1) < convert_backend_index(backend2); } - dev_mgr() { sycl::device default_device = @@ -992,17 +991,17 @@ namespace dpct auto Platforms = sycl::platform::get_platforms(); // Keep track of the number of devices per backend - std::map DeviceNums; + std::map DeviceNums; std::map> backend_devices; auto preferred_platform_name = get_preferred_gpu_platform_name(); while (!Platforms.empty()) { auto Platform = Platforms.back(); Platforms.pop_back(); - auto platform_name = Platform.get_info(); - if (platform_name.compare(preferred_platform_name) != 0) { - continue; - } + auto platform_name = Platform.get_info(); + if (platform_name.compare(preferred_platform_name) != 0) { + continue; + } auto devices = Platform.get_devices(); std::string backend_type = get_device_backend_and_type(devices[0]); for (const auto &device : devices) { @@ -1016,7 +1015,6 @@ namespace dpct } std::sort(keys.begin(), keys.end(), compare_backend); - for (auto &key : keys) { std::vector devs = backend_devices[key]; std::sort(devs.begin(), devs.end(), compare_dev);