Skip to content

Commit bcfe978

Browse files
committed
correct the device info format
1 parent 286f861 commit bcfe978

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ggml/src/ggml-sycl/common.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void print_device_detail_part1(int id, sycl::device &device, std::string device_
8585

8686
auto global_mem_size = prop.get_global_mem_size()/1000000;
8787

88-
fprintf(stderr, "|%2d|%19s|%4s|%39s|%14luM|\n", id, device_type.c_str(), version.c_str(),
88+
fprintf(stderr, "|%2d|%19s|%5s|%39s|%14luM|\n", id, device_type.c_str(), version.c_str(),
8989
name.c_str(), global_mem_size);
9090
}
9191

@@ -107,8 +107,8 @@ void ggml_backend_sycl_print_sycl_devices() {
107107
std::map<std::string, size_t> DeviceNums;
108108
fprintf(stderr, "found %d SYCL devices:\n", device_count);
109109
fprintf(stderr, "Part1:\n");
110-
fprintf(stderr, "|ID| Device Type| Ver| Name|Global mem size|\n");
111-
fprintf(stderr, "|--|-------------------|----|---------------------------------------|---------------|\n");
110+
fprintf(stderr, "|ID| Device Type| Ver| Name|Global mem size|\n");
111+
fprintf(stderr, "|--|-------------------|-----|---------------------------------------|---------------|\n");
112112
for (int id = 0; id < device_count; ++id) {
113113
sycl::device device = dpct::dev_mgr::instance().get_device(id);
114114
sycl::backend backend = device.get_backend();

0 commit comments

Comments
 (0)