Skip to content

Commit 8208f46

Browse files
committed
Changed namespace for ext_intel_free_memory
Signed-off-by: Rauf, Rana <[email protected]>
1 parent ab4d276 commit 8208f46

File tree

6 files changed

+7
-10
lines changed

6 files changed

+7
-10
lines changed

sycl/doc/extensions/supported/sycl_ext_intel_device_info.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ The extension supports this query in version 4 and later.
366366

367367
| Device Descriptors | Return Type | Description |
368368
| ------------------ | ----------- | ----------- |
369-
| info\:\:device\:\:ext\_intel\_free\_memory | uint64\_t| Returns the memory avialble on the device in units of bytes.|
369+
| ext\:\:intel\:\:info\:\:device\:\:free\_memory | uint64\_t| Returns the memory avialble on the device in units of bytes.|
370370

371371

372372
## Aspects ##
@@ -384,7 +384,7 @@ An invalid object runtime error will be thrown if the device does not support as
384384
Then the free device memory can be obtained using the standard get\_info() interface.
385385

386386
if (dev.has(aspect::ext_intel_free_memory)) {
387-
auto FreeMemory = dev.get_info<info::device::ext_intel_free_memory>();
387+
auto FreeMemory = dev.get_info<ext::intel::info::device::free_memory>();
388388
}
389389

390390
# Deprecated queries #

sycl/include/sycl/info/device_traits.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ __SYCL_PARAM_TRAITS_SPEC(device, sub_group_independent_forward_progress, bool,
192192
PI_DEVICE_INFO_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS)
193193
__SYCL_PARAM_TRAITS_SPEC(device, ext_oneapi_srgb, bool,
194194
PI_DEVICE_INFO_IMAGE_SRGB)
195-
__SYCL_PARAM_TRAITS_SPEC(device, ext_intel_free_memory, pi_uint64,
196-
PI_EXT_INTEL_DEVICE_INFO_FREE_MEMORY)
197195
__SYCL_PARAM_TRAITS_SPEC(device, ext_intel_mem_channel, bool,
198196
PI_MEM_PROPERTIES_CHANNEL)
199197
__SYCL_PARAM_TRAITS_SPEC(device, ext_oneapi_bfloat16, bool,

sycl/include/sycl/info/ext_intel_device_traits.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ __SYCL_PARAM_TRAITS_SPEC(ext::intel, device, gpu_eu_count_per_subslice, pi_uint3
1111
__SYCL_PARAM_TRAITS_SPEC(ext::intel, device, gpu_hw_threads_per_eu, pi_uint32, PI_DEVICE_INFO_GPU_HW_THREADS_PER_EU)
1212
__SYCL_PARAM_TRAITS_SPEC(ext::intel, device, max_mem_bandwidth, pi_uint64, PI_DEVICE_INFO_MAX_MEM_BANDWIDTH)
1313
__SYCL_PARAM_TRAITS_SPEC(ext::intel, device, uuid, detail::uuid_type, PI_DEVICE_INFO_UUID)
14+
__SYCL_PARAM_TRAITS_SPEC(ext::intel, device, free_memory, pi_uint64, PI_EXT_INTEL_DEVICE_INFO_FREE_MEMORY)
1415
#ifdef __SYCL_PARAM_TRAITS_TEMPLATE_SPEC_NEEDS_UNDEF
1516
#undef __SYCL_PARAM_TRAITS_TEMPLATE_SPEC
1617
#undef __SYCL_PARAM_TRAITS_TEMPLATE_SPEC_NEEDS_UNDEF

sycl/source/detail/device_info.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,8 +1542,7 @@ get_device_info_host<info::device::ext_intel_device_info_uuid>() {
15421542
}
15431543

15441544
template <>
1545-
inline uint64_t
1546-
get_device_info_host<info::device::ext_intel_free_memory>() {
1545+
inline uint64_t get_device_info_host<ext::intel::info::device::free_memory>() {
15471546
throw runtime_error(
15481547
"Obtaining the device free memory is not supported on HOST device",
15491548
PI_ERROR_INVALID_DEVICE);

sycl/test/abi/sycl_symbols_linux.dump

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4153,6 +4153,7 @@ _ZNK4sycl3_V16device6is_cpuEv
41534153
_ZNK4sycl3_V16device6is_gpuEv
41544154
_ZNK4sycl3_V16device7is_hostEv
41554155
_ZNK4sycl3_V16device8get_infoINS0_3ext5intel4info6device10gpu_slicesEEENS0_6detail19is_device_info_descIT_E11return_typeEv
4156+
_ZNK4sycl3_V16device8get_infoINS0_3ext5intel4info6device11free_memoryEEENS0_6detail19is_device_info_descIT_E11return_typeEv
41564157
_ZNK4sycl3_V16device8get_infoINS0_3ext5intel4info6device11pci_addressEEENS0_6detail19is_device_info_descIT_E11return_typeEv
41574158
_ZNK4sycl3_V16device8get_infoINS0_3ext5intel4info6device12gpu_eu_countEEENS0_6detail19is_device_info_descIT_E11return_typeEv
41584159
_ZNK4sycl3_V16device8get_infoINS0_3ext5intel4info6device17gpu_eu_simd_widthEEENS0_6detail19is_device_info_descIT_E11return_typeEv
@@ -4214,7 +4215,6 @@ _ZNK4sycl3_V16device8get_infoINS0_4info6device20image_max_array_sizeEEENS0_6deta
42144215
_ZNK4sycl3_V16device8get_infoINS0_4info6device20max_write_image_argsEEENS0_6detail19is_device_info_descIT_E11return_typeEv
42154216
_ZNK4sycl3_V16device8get_infoINS0_4info6device20partition_propertiesEEENS0_6detail19is_device_info_descIT_E11return_typeEv
42164217
_ZNK4sycl3_V16device8get_infoINS0_4info6device20usm_host_allocationsEEENS0_6detail19is_device_info_descIT_E11return_typeEv
4217-
_ZNK4sycl3_V16device8get_infoINS0_4info6device21ext_intel_free_memoryEEENS0_6detail19is_device_info_descIT_E11return_typeEv
42184218
_ZNK4sycl3_V16device8get_infoINS0_4info6device21ext_intel_mem_channelEEENS0_6detail19is_device_info_descIT_E11return_typeEv
42194219
_ZNK4sycl3_V16device8get_infoINS0_4info6device21ext_intel_pci_addressEEENS0_6detail19is_device_info_descIT_E11return_typeEv
42204220
_ZNK4sycl3_V16device8get_infoINS0_4info6device21global_mem_cache_sizeEEENS0_6detail19is_device_info_descIT_E11return_typeEv

sycl/unittests/kernel-and-program/DeviceInfo.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ TEST_F(DeviceInfoTest, GetDeviceUUID) {
8787
return;
8888
}
8989

90-
auto UUID = Dev.get_info<info::device::ext_intel_device_info_uuid>();
90+
auto UUID = Dev.get_info<ext::intel::info::device::uuid>();
9191

9292
EXPECT_EQ(TestContext->UUIDInfoCalled, true)
9393
<< "Expect piDeviceGetInfo to be "
@@ -114,8 +114,7 @@ TEST_F(DeviceInfoTest, GetDeviceFreeMemory) {
114114
return;
115115
}
116116

117-
auto FreeMemory =
118-
Dev.get_info<info::device::ext_intel_free_memory>();
117+
auto FreeMemory = Dev.get_info<ext::intel::info::device::free_memory>();
119118

120119
EXPECT_EQ(TestContext->FreeMemoryInfoCalled, true)
121120
<< "Expect piDeviceGetInfo to be "

0 commit comments

Comments
 (0)