Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sycl/include/sycl/info/device_traits.def
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ __SYCL_PARAM_TRAITS_SPEC(device, preferred_vector_width_int, uint32_t,
UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_INT)
__SYCL_PARAM_TRAITS_SPEC(device, preferred_vector_width_long, uint32_t,
UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG)
__SYCL_PARAM_TRAITS_SPEC(device, preferred_vector_width_long_long, uint32_t,
UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG_LONG)
__SYCL_PARAM_TRAITS_SPEC(device, preferred_vector_width_float, uint32_t,
UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_FLOAT)
__SYCL_PARAM_TRAITS_SPEC(device, preferred_vector_width_double, uint32_t,
Expand All @@ -46,6 +48,8 @@ __SYCL_PARAM_TRAITS_SPEC(device, native_vector_width_int, uint32_t,
UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_INT)
__SYCL_PARAM_TRAITS_SPEC(device, native_vector_width_long, uint32_t,
UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG)
__SYCL_PARAM_TRAITS_SPEC(device, native_vector_width_long_long, uint32_t,
UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG_LONG)
__SYCL_PARAM_TRAITS_SPEC(device, native_vector_width_float, uint32_t,
UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_FLOAT)
__SYCL_PARAM_TRAITS_SPEC(device, native_vector_width_double, uint32_t,
Expand Down
2 changes: 2 additions & 0 deletions sycl/source/detail/ur_device_info_ret_types.inc
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ MAP(UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_CHAR, uint32_t)
MAP(UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_SHORT, uint32_t)
MAP(UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_INT, uint32_t)
MAP(UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG, uint32_t)
MAP(UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG_LONG, uint32_t)
MAP(UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_FLOAT, uint32_t)
MAP(UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_DOUBLE, uint32_t)
MAP(UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_HALF, uint32_t)
MAP(UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_CHAR, uint32_t)
MAP(UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_SHORT, uint32_t)
MAP(UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_INT, uint32_t)
MAP(UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG, uint32_t)
MAP(UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG_LONG, uint32_t)
MAP(UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_FLOAT, uint32_t)
MAP(UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_DOUBLE, uint32_t)
MAP(UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_HALF, uint32_t)
Expand Down
4 changes: 4 additions & 0 deletions sycl/test-e2e/Basic/info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ int main() {
dev, "Preferred vector width int");
print_info<info::device::preferred_vector_width_long, std::uint32_t>(
dev, "Preferred vector width long");
print_info<info::device::preferred_vector_width_long_long, std::uint32_t>(
dev, "Preferred vector width long long");
print_info<info::device::preferred_vector_width_float, std::uint32_t>(
dev, "Preferred vector width float");
print_info<info::device::preferred_vector_width_double, std::uint32_t>(
Expand All @@ -247,6 +249,8 @@ int main() {
dev, "Native vector width int");
print_info<info::device::native_vector_width_long, std::uint32_t>(
dev, "Native vector width long");
print_info<info::device::native_vector_width_long_long, std::uint32_t>(
dev, "Native vector width long long");
print_info<info::device::native_vector_width_float, std::uint32_t>(
dev, "Native vector width float");
print_info<info::device::native_vector_width_double, std::uint32_t>(
Expand Down
2 changes: 2 additions & 0 deletions sycl/test/abi/sycl_symbols_linux.dump
Original file line number Diff line number Diff line change
Expand Up @@ -3882,13 +3882,15 @@ _ZNK4sycl3_V16device13get_info_implINS0_4info6device29ext_oneapi_cuda_cluster_gr
_ZNK4sycl3_V16device13get_info_implINS0_4info6device29ext_oneapi_max_work_groups_1dEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
_ZNK4sycl3_V16device13get_info_implINS0_4info6device29ext_oneapi_max_work_groups_2dEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
_ZNK4sycl3_V16device13get_info_implINS0_4info6device29ext_oneapi_max_work_groups_3dEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
_ZNK4sycl3_V16device13get_info_implINS0_4info6device29native_vector_width_long_longEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
_ZNK4sycl3_V16device13get_info_implINS0_4info6device29preferred_vector_width_doubleEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
_ZNK4sycl3_V16device13get_info_implINS0_4info6device30partition_type_affinity_domainEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
_ZNK4sycl3_V16device13get_info_implINS0_4info6device31atomic_fence_order_capabilitiesEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
_ZNK4sycl3_V16device13get_info_implINS0_4info6device31atomic_fence_scope_capabilitiesEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
_ZNK4sycl3_V16device13get_info_implINS0_4info6device31ext_intel_gpu_hw_threads_per_euEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
_ZNK4sycl3_V16device13get_info_implINS0_4info6device32atomic_memory_order_capabilitiesEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
_ZNK4sycl3_V16device13get_info_implINS0_4info6device32atomic_memory_scope_capabilitiesEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
_ZNK4sycl3_V16device13get_info_implINS0_4info6device32preferred_vector_width_long_longEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
_ZNK4sycl3_V16device13get_info_implINS0_4info6device33ext_intel_gpu_subslices_per_sliceEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
_ZNK4sycl3_V16device13get_info_implINS0_4info6device33ext_oneapi_max_global_work_groupsEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
_ZNK4sycl3_V16device13get_info_implINS0_4info6device33usm_restricted_shared_allocationsEEENS0_6detail11ABINeutralTINS6_19is_device_info_descIT_E11return_typeEE4typeEv
Expand Down
2 changes: 2 additions & 0 deletions sycl/test/abi/sycl_symbols_windows.dump
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
??$get_info_impl@Unative_vector_width_half@device@info@_V1@sycl@@@device@_V1@sycl@@AEBAIXZ
??$get_info_impl@Unative_vector_width_int@device@info@_V1@sycl@@@device@_V1@sycl@@AEBAIXZ
??$get_info_impl@Unative_vector_width_long@device@info@_V1@sycl@@@device@_V1@sycl@@AEBAIXZ
??$get_info_impl@Unative_vector_width_long_long@device@info@_V1@sycl@@@device@_V1@sycl@@AEBAIXZ
??$get_info_impl@Unative_vector_width_short@device@info@_V1@sycl@@@device@_V1@sycl@@AEBAIXZ
??$get_info_impl@Unode_mask@device@info@intel@ext@_V1@sycl@@@device@_V1@sycl@@AEBAIXZ
??$get_info_impl@Unum_args@kernel@info@_V1@sycl@@@kernel@_V1@sycl@@AEBAIXZ
Expand All @@ -185,6 +186,7 @@
??$get_info_impl@Upreferred_vector_width_half@device@info@_V1@sycl@@@device@_V1@sycl@@AEBAIXZ
??$get_info_impl@Upreferred_vector_width_int@device@info@_V1@sycl@@@device@_V1@sycl@@AEBAIXZ
??$get_info_impl@Upreferred_vector_width_long@device@info@_V1@sycl@@@device@_V1@sycl@@AEBAIXZ
??$get_info_impl@Upreferred_vector_width_long_long@device@info@_V1@sycl@@@device@_V1@sycl@@AEBAIXZ
??$get_info_impl@Upreferred_vector_width_short@device@info@_V1@sycl@@@device@_V1@sycl@@AEBAIXZ
??$get_info_impl@Uprintf_buffer_size@device@info@_V1@sycl@@@device@_V1@sycl@@AEBA_KXZ
??$get_info_impl@Uprofile@device@info@_V1@sycl@@@device@_V1@sycl@@AEBA?AVstring@detail@12@XZ
Expand Down
4 changes: 4 additions & 0 deletions unified-runtime/include/unified-runtime/ur_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -2374,6 +2374,10 @@ typedef enum ur_device_info_t {
UR_DEVICE_INFO_LUID = 129,
/// [uint32_t][optional-query] return device Windows node mask
UR_DEVICE_INFO_NODE_MASK = 130,
/// [uint32_t] preferred vector width for long long
UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG_LONG = 131,
/// [uint32_t] native vector width for long long
UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG_LONG = 132,
/// [::ur_bool_t] Returns true if the device supports the use of
/// command-buffers.
UR_DEVICE_INFO_COMMAND_BUFFER_SUPPORT_EXP = 0x1000,
Expand Down
32 changes: 32 additions & 0 deletions unified-runtime/include/unified-runtime/ur_print.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3172,6 +3172,12 @@ inline std::ostream &operator<<(std::ostream &os, enum ur_device_info_t value) {
case UR_DEVICE_INFO_NODE_MASK:
os << "UR_DEVICE_INFO_NODE_MASK";
break;
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG_LONG:
os << "UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG_LONG";
break;
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG_LONG:
os << "UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG_LONG";
break;
case UR_DEVICE_INFO_COMMAND_BUFFER_SUPPORT_EXP:
os << "UR_DEVICE_INFO_COMMAND_BUFFER_SUPPORT_EXP";
break;
Expand Down Expand Up @@ -4986,6 +4992,32 @@ inline ur_result_t printTagged(std::ostream &os, const void *ptr,

os << ")";
} break;
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG_LONG: {
const uint32_t *tptr = (const uint32_t *)ptr;
if (sizeof(uint32_t) > size) {
os << "invalid size (is: " << size << ", expected: >=" << sizeof(uint32_t)
<< ")";
return UR_RESULT_ERROR_INVALID_SIZE;
}
os << (const void *)(tptr) << " (";

os << *tptr;

os << ")";
} break;
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG_LONG: {
const uint32_t *tptr = (const uint32_t *)ptr;
if (sizeof(uint32_t) > size) {
os << "invalid size (is: " << size << ", expected: >=" << sizeof(uint32_t)
<< ")";
return UR_RESULT_ERROR_INVALID_SIZE;
}
os << (const void *)(tptr) << " (";

os << *tptr;

os << ")";
} break;
case UR_DEVICE_INFO_COMMAND_BUFFER_SUPPORT_EXP: {
const ur_bool_t *tptr = (const ur_bool_t *)ptr;
if (sizeof(ur_bool_t) > size) {
Expand Down
4 changes: 4 additions & 0 deletions unified-runtime/scripts/core/device.yml
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ etors:
desc: "[uint8_t[]][optional-query] return device Windows LUID"
- name: NODE_MASK
desc: "[uint32_t][optional-query] return device Windows node mask"
- name: PREFERRED_VECTOR_WIDTH_LONG_LONG
desc: "[uint32_t] preferred vector width for long long"
- name: NATIVE_VECTOR_WIDTH_LONG_LONG
desc: "[uint32_t] native vector width for long long"
--- #--------------------------------------------------------------------------
type: function
desc: "Retrieves various information about device"
Expand Down
6 changes: 4 additions & 2 deletions unified-runtime/source/adapters/cuda/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_INT: {
return ReturnValue(1u);
}
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG: {
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG:
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG_LONG: {
return ReturnValue(1u);
}
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_FLOAT: {
Expand All @@ -150,7 +151,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_INT: {
return ReturnValue(1u);
}
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG: {
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG:
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG_LONG: {
return ReturnValue(1u);
}
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_FLOAT: {
Expand Down
6 changes: 4 additions & 2 deletions unified-runtime/source/adapters/hip/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_INT: {
return ReturnValue(1u);
}
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG: {
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG:
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG_LONG: {
return ReturnValue(1u);
}
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_FLOAT: {
Expand All @@ -158,7 +159,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_INT: {
return ReturnValue(1u);
}
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG: {
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG:
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG_LONG: {
return ReturnValue(1u);
}
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_FLOAT: {
Expand Down
2 changes: 2 additions & 0 deletions unified-runtime/source/adapters/level_zero/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -783,9 +783,11 @@ ur_result_t urDeviceGetInfo(
return ReturnValue(
Device->ZeDeviceVectorWidthPropertiesExt->preferred_vector_width_int);
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG:
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG_LONG:
return ReturnValue(
Device->ZeDeviceVectorWidthPropertiesExt->native_vector_width_long);
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG:
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG_LONG:
return ReturnValue(
Device->ZeDeviceVectorWidthPropertiesExt->preferred_vector_width_long);
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_FLOAT:
Expand Down
2 changes: 2 additions & 0 deletions unified-runtime/source/adapters/native_cpu/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_SHORT:
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_INT:
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG:
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG_LONG:
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_FLOAT:
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_DOUBLE:
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_HALF:
Expand All @@ -240,6 +241,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_INT:
return ReturnValue(uint32_t{8});
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG:
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG_LONG:
return ReturnValue(uint32_t{4});
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_FLOAT:
return ReturnValue(uint32_t{8});
Expand Down
2 changes: 2 additions & 0 deletions unified-runtime/source/adapters/offload/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
olInfo = OL_DEVICE_INFO_NATIVE_VECTOR_WIDTH_INT;
break;
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG:
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG_LONG:
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG:
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG_LONG:
olInfo = OL_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG;
break;
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_FLOAT:
Expand Down
6 changes: 4 additions & 2 deletions unified-runtime/source/adapters/opencl/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,

return UR_RESULT_SUCCESS;
}
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG: {
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG:
case UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG_LONG: {
CL_RETURN_ON_FAILURE(clGetDeviceInfo(hDevice->CLDevice,
CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG,
propSize, pPropValue, pPropSizeRet));
Expand Down Expand Up @@ -936,7 +937,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,

return UR_RESULT_SUCCESS;
}
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG: {
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG:
case UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG_LONG: {
CL_RETURN_ON_FAILURE(clGetDeviceInfo(hDevice->CLDevice,
CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG,
propSize, pPropValue, pPropSizeRet));
Expand Down
34 changes: 34 additions & 0 deletions unified-runtime/test/conformance/device/urDeviceGetInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,23 @@ TEST_P(urDeviceGetInfoTest, SuccessPreferredVectorWidthHalf) {
property_value);
}

TEST_P(urDeviceGetInfoTest, SuccessPreferredVectorWidthLongLong) {
size_t property_size = 0;
const ur_device_info_t property_name =
UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG_LONG;

ASSERT_SUCCESS_OR_OPTIONAL_QUERY(
urDeviceGetInfo(device, property_name, 0, nullptr, &property_size),
property_name);
ASSERT_EQ(property_size, sizeof(uint32_t));

uint32_t property_value = 0;
ASSERT_QUERY_RETURNS_VALUE(urDeviceGetInfo(device, property_name,
property_size, &property_value,
nullptr),
property_value);
}

TEST_P(urDeviceGetInfoTest, SuccessNativeVectorWidthChar) {
size_t property_size = 0;
const ur_device_info_t property_name =
Expand Down Expand Up @@ -444,6 +461,23 @@ TEST_P(urDeviceGetInfoTest, SuccessNativeVectorWidthHalf) {
property_value);
}

TEST_P(urDeviceGetInfoTest, SuccessNativeVectorWidthLongLong) {
size_t property_size = 0;
const ur_device_info_t property_name =
UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG_LONG;

ASSERT_SUCCESS_OR_OPTIONAL_QUERY(
urDeviceGetInfo(device, property_name, 0, nullptr, &property_size),
property_name);
ASSERT_EQ(property_size, sizeof(uint32_t));

uint32_t property_value = 0;
ASSERT_QUERY_RETURNS_VALUE(urDeviceGetInfo(device, property_name,
property_size, &property_value,
nullptr),
property_value);
}

TEST_P(urDeviceGetInfoTest, SuccessMaxClockFrequency) {
size_t property_size = 0;
const ur_device_info_t property_name = UR_DEVICE_INFO_MAX_CLOCK_FREQUENCY;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ ur_result_t GetDevicePreferredVectorWidthInt(ur_device_handle_t device,
uint32_t &pref_width);
ur_result_t GetDevicePreferredVectorWidthLong(ur_device_handle_t device,
uint32_t &pref_width);
ur_result_t GetDevicePreferredVectorWidthLongLong(ur_device_handle_t device,
uint32_t &pref_width);
ur_result_t GetDevicePreferredVectorWidthFloat(ur_device_handle_t device,
uint32_t &pref_width);
ur_result_t GetDevicePreferredVectorWidthDouble(ur_device_handle_t device,
Expand All @@ -257,6 +259,8 @@ ur_result_t GetDeviceNativeVectorWithInt(ur_device_handle_t device,
uint32_t &vec_width);
ur_result_t GetDeviceNativeVectorWithLong(ur_device_handle_t device,
uint32_t &vec_width);
ur_result_t GetDeviceNativeVectorWithLongLong(ur_device_handle_t device,
uint32_t &vec_width);
ur_result_t GetDeviceNativeVectorWithFloat(ur_device_handle_t device,
uint32_t &vec_width);
ur_result_t GetDeviceNativeVectorWithDouble(ur_device_handle_t device,
Expand Down
12 changes: 12 additions & 0 deletions unified-runtime/test/conformance/testing/source/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ ur_result_t GetDevicePreferredVectorWidthLong(ur_device_handle_t device,
device, UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG, pref_width);
}

ur_result_t GetDevicePreferredVectorWidthLongLong(ur_device_handle_t device,
uint32_t &pref_width) {
return GetDeviceInfo<uint32_t>(
device, UR_DEVICE_INFO_PREFERRED_VECTOR_WIDTH_LONG_LONG, pref_width);
}

ur_result_t GetDevicePreferredVectorWidthFloat(ur_device_handle_t device,
uint32_t &pref_width) {
return GetDeviceInfo<uint32_t>(
Expand Down Expand Up @@ -170,6 +176,12 @@ ur_result_t GetDeviceNativeVectorWithLong(ur_device_handle_t device,
device, UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG, vec_width);
}

ur_result_t GetDeviceNativeVectorWithLongLong(ur_device_handle_t device,
uint32_t &vec_width) {
return GetDeviceInfo<uint32_t>(
device, UR_DEVICE_INFO_NATIVE_VECTOR_WIDTH_LONG_LONG, vec_width);
}

ur_result_t GetDeviceNativeVectorWithFloat(ur_device_handle_t device,
uint32_t &vec_width) {
return GetDeviceInfo<uint32_t>(
Expand Down
6 changes: 6 additions & 0 deletions unified-runtime/tools/urinfo/urinfo.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading