Skip to content

Commit 9a4a1af

Browse files
committed
Incorporating code review comments.
Signed-off-by: Gail Lyons <[email protected]>
1 parent a2c2138 commit 9a4a1af

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

sycl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ include(AddSYCLExecutable)
1414
set(SYCL_MAJOR_VERSION 2)
1515
set(SYCL_MINOR_VERSION 1)
1616
set(SYCL_PATCH_VERSION 0)
17-
set(SYCL_DEV_ABI_VERSION 5)
17+
set(SYCL_DEV_ABI_VERSION 4)
1818
if (SYCL_ADD_DEV_VERSION_POSTFIX)
1919
set(SYCL_VERSION_POSTFIX "-${SYCL_DEV_ABI_VERSION}")
2020
endif()

sycl/source/detail/device_impl.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -224,40 +224,28 @@ bool device_impl::has(aspect Aspect) const {
224224
switch (Aspect) {
225225
case aspect::host:
226226
return is_host();
227-
break;
228227
case aspect::cpu:
229228
return is_cpu();
230-
break;
231229
case aspect::gpu:
232230
return is_gpu();
233-
break;
234231
case aspect::accelerator:
235232
return is_accelerator();
236-
break;
237233
case aspect::fp16:
238234
return has_extension("cl_khr_fp16");
239-
break;
240235
case aspect::fp64:
241236
return has_extension("cl_khr_fp64");
242-
break;
243237
case aspect::int64_base_atomics:
244238
return has_extension("cl_khr_int64_base_atomics");
245-
break;
246239
case aspect::int64_extended_atomics:
247240
return has_extension("cl_khr_int64_extended_atomics");
248-
break;
249241
case aspect::image:
250242
return get_info<info::device::image_support>();
251-
break;
252243
case aspect::online_compiler:
253244
return get_info<info::device::is_compiler_available>();
254-
break;
255245
case aspect::online_linker:
256246
return get_info<info::device::is_linker_available>();
257-
break;
258247
case aspect::queue_profiling:
259248
return get_info<info::device::queue_profiling>();
260-
break;
261249
default:
262250
throw runtime_error("This device aspect has not been implemented yet.",
263251
PI_INVALID_DEVICE);

0 commit comments

Comments
 (0)