Skip to content

Commit 313c8ca

Browse files
AlcpzAerialMantis
andcommitted
[SYCL][COMPAT] Commiting suggestions from code review
Co-authored-by: Gordon Brown <[email protected]>
1 parent fe6230b commit 313c8ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/include/syclcompat/device.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ class device_ext : public sycl::device {
221221
_saved_queue = _default_queue = _queues[0].get();
222222
}
223223

224-
bool is_native_host_atomic_supported() { return 0; }
224+
bool is_native_host_atomic_supported() { return false; }
225225
int get_major_version() const {
226226
return get_device_info().get_major_version();
227227
}
@@ -420,7 +420,7 @@ class dev_mgr {
420420
device_ext &cpu_device() const {
421421
std::lock_guard<std::mutex> lock(m_mutex);
422422
if (_cpu_device == -1) {
423-
throw std::runtime_error("no valid cpu device");
423+
throw std::runtime_error("[SYCLcompat] No valid cpu device");
424424
} else {
425425
return *_devs[_cpu_device];
426426
}

0 commit comments

Comments
 (0)