revert format
This commit is contained in:
parent
e1eabdc2e4
commit
8a3d501cda
1 changed files with 606 additions and 605 deletions
|
@ -556,7 +556,7 @@ namespace dpct
|
|||
Use 3200000 kHz as memory_clock_rate default value. \
|
||||
Use 64 bits as memory_bus_width default value.")
|
||||
#else
|
||||
#warning "get_device_info: querying memory_clock_rate and \
|
||||
#warning "get_device_info: querying memory_clock_rate and \
|
||||
memory_bus_width are not supported by the compiler used. \
|
||||
Use 3200000 kHz as memory_clock_rate default value. \
|
||||
Use 64 bits as memory_bus_width default value."
|
||||
|
@ -666,7 +666,7 @@ namespace dpct
|
|||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
#pragma message("Querying the number of bytes of free memory is not supported")
|
||||
#else
|
||||
#warning "Querying the number of bytes of free memory is not supported"
|
||||
#warning "Querying the number of bytes of free memory is not supported"
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
@ -803,6 +803,7 @@ namespace dpct
|
|||
mutable mutex_type m_mutex;
|
||||
};
|
||||
|
||||
|
||||
/// device manager
|
||||
class dev_mgr
|
||||
{
|
||||
|
@ -2831,21 +2832,21 @@ namespace dpct
|
|||
_device_ptr(memory_ptr) {}
|
||||
|
||||
void allocate_device(sycl::queue &q) {
|
||||
#ifndef DPCT_USM_LEVEL_NONE
|
||||
#ifndef DPCT_USM_LEVEL_NONE
|
||||
if (Memory == shared) {
|
||||
_device_ptr = (value_t *)sycl::malloc_shared(_size, q.get_device(),
|
||||
q.get_context());
|
||||
return;
|
||||
}
|
||||
#ifdef SYCL_EXT_ONEAPI_USM_DEVICE_READ_ONLY
|
||||
#ifdef SYCL_EXT_ONEAPI_USM_DEVICE_READ_ONLY
|
||||
if (Memory == constant) {
|
||||
_device_ptr = (value_t *)sycl::malloc_device(
|
||||
_size, q.get_device(), q.get_context(),
|
||||
sycl::ext::oneapi::property::usm::device_read_only());
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
_device_ptr = (value_t *)detail::dpct_malloc(_size, q);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue