rename function
This commit is contained in:
parent
8d09376e62
commit
f36726edd2
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ Following definition copied from DPCT head files, which are used by ggml-sycl.cp
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
std::string getDeviceTypeName(const sycl::device &Device) {
|
std::string get_device_type_name(const sycl::device &Device) {
|
||||||
auto DeviceType = Device.get_info<sycl::info::device::device_type>();
|
auto DeviceType = Device.get_info<sycl::info::device::device_type>();
|
||||||
switch (DeviceType) {
|
switch (DeviceType) {
|
||||||
case sycl::info::device_type::cpu:
|
case sycl::info::device_type::cpu:
|
||||||
|
@ -102,7 +102,7 @@ std::string getDeviceTypeName(const sycl::device &Device) {
|
||||||
std::string get_device_backend_and_type(const sycl::device &device) {
|
std::string get_device_backend_and_type(const sycl::device &device) {
|
||||||
std::stringstream device_type;
|
std::stringstream device_type;
|
||||||
sycl::backend backend = device.get_backend();
|
sycl::backend backend = device.get_backend();
|
||||||
device_type << backend << ":" << getDeviceTypeName(device);
|
device_type << backend << ":" << get_device_type_name(device);
|
||||||
return device_type.str();
|
return device_type.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue