@@ -13416,21 +13416,27 @@ void print_device_detail(int id, sycl::device &device, std::string device_type)
13416
13416
version += std::to_string(prop.get_minor_version());
13417
13417
13418
13418
device_type = std::regex_replace(device_type, std::regex("ext_oneapi_"), "");
13419
+ std::string name = std::string(prop.get_name());
13420
+ name = std::regex_replace(name, std::regex("\\(R\\)"), "");
13421
+ name = std::regex_replace(name, std::regex("\\(TM\\)"), "");
13419
13422
13420
- fprintf(stderr, "|%2d|%18s|%45s|%10s|%11d|%8d|%7d|%15lu|\n", id, device_type.c_str(),
13421
- prop.get_name(), version.c_str(), prop.get_max_compute_units(),
13423
+ auto global_mem_size = prop.get_global_mem_size()/1000000;
13424
+
13425
+ fprintf(stderr, "|%2d|%19s|%39s|%7s|%7d|%8d|%5d|%6luM|%21s|\n", id, device_type.c_str(),
13426
+ name.c_str(), version.c_str(), prop.get_max_compute_units(),
13422
13427
prop.get_max_work_group_size(), prop.get_max_sub_group_size(),
13423
- prop.get_global_mem_size ());
13428
+ global_mem_size, device.get_info<sycl::info::device::driver_version>().c_str ());
13424
13429
}
13425
13430
13426
13431
void ggml_backend_sycl_print_sycl_devices() {
13427
13432
GGML_SYCL_DEBUG("[SYCL] call ggml_backend_sycl_print_sycl_devices\n");
13428
13433
int device_count = dpct::dev_mgr::instance().device_count();
13429
13434
std::map<std::string, size_t> DeviceNums;
13430
13435
fprintf(stderr, "found %d SYCL devices:\n", device_count);
13431
- fprintf(stderr, "| | | |Compute |Max compute|Max work|Max sub| |\n");
13432
- fprintf(stderr, "|ID| Device Type| Name|capability|units |group |group |Global mem size|\n");
13433
- fprintf(stderr, "|--|------------------|---------------------------------------------|----------|-----------|--------|-------|---------------|\n");
13436
+ fprintf(stderr, "| | | | |Max | |Max |Global | |\n");
13437
+ fprintf(stderr, "| | | | |compute|Max work|sub |mem | |\n");
13438
+ fprintf(stderr, "|ID| Device Type| Name|Version|units |group |group|size | Driver version|\n");
13439
+ fprintf(stderr, "|--|-------------------|---------------------------------------|-------|-------|--------|-----|-------|---------------------|\n");
13434
13440
for (int id = 0; id < device_count; ++id) {
13435
13441
sycl::device device = dpct::dev_mgr::instance().get_device(id);
13436
13442
sycl::backend backend = device.get_backend();
0 commit comments