@@ -212,57 +212,9 @@ context_impl::get_info<info::context::atomic_fence_scope_capabilities>() const {
212212 return CapabilityList;
213213}
214214
215- #ifndef __INTEL_PREVIEW_BREAKING_CHANGES
216- template <>
217- typename info::platform::version::return_type
218- context_impl::get_backend_info<info::platform::version>() const {
219- if (getBackend () != backend::opencl) {
220- throw sycl::exception (errc::backend_mismatch,
221- " the info::platform::version info descriptor can "
222- " only be queried with an OpenCL backend" );
223- }
224- return MDevices[0 ]->get_platform ().get_info <info::platform::version>();
225- }
226- #endif
227-
228215device select_device (DSelectorInvocableType DeviceSelectorInvocable,
229216 std::vector<device> &Devices);
230217
231- #ifndef __INTEL_PREVIEW_BREAKING_CHANGES
232- template <>
233- typename info::device::version::return_type
234- context_impl::get_backend_info<info::device::version>() const {
235- if (getBackend () != backend::opencl) {
236- throw sycl::exception (errc::backend_mismatch,
237- " the info::device::version info descriptor can only "
238- " be queried with an OpenCL backend" );
239- }
240- auto Devices = get_info<info::context::devices>();
241- if (Devices.empty ()) {
242- return " No available device" ;
243- }
244- // Use default selector to pick a device.
245- return select_device (default_selector_v, Devices)
246- .get_info <info::device::version>();
247- }
248- #endif
249-
250- #ifndef __INTEL_PREVIEW_BREAKING_CHANGES
251- template <>
252- typename info::device::backend_version::return_type
253- context_impl::get_backend_info<info::device::backend_version>() const {
254- if (getBackend () != backend::ext_oneapi_level_zero) {
255- throw sycl::exception (errc::backend_mismatch,
256- " the info::device::backend_version info descriptor "
257- " can only be queried with a Level Zero backend" );
258- }
259- return " " ;
260- // Currently The Level Zero backend does not define the value of this
261- // information descriptor and implementations are encouraged to return the
262- // empty string as per specification.
263- }
264- #endif
265-
266218device_impl *
267219context_impl::findMatchingDeviceImpl (ur_device_handle_t &DeviceUR) const {
268220 for (device_impl *D : MDevices)
0 commit comments