Skip to content

Commit de83de0

Browse files
committed
group: avoid duplication between int8_t / cl_char
1 parent 5136993 commit de83de0

File tree

1 file changed

+39
-8
lines changed

1 file changed

+39
-8
lines changed

tests/group/group_async_work_group_copy.cpp

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,28 +93,59 @@ class TEST_NAME : public util::test_base {
9393
#endif
9494

9595
#ifdef INT8_MAX
96-
for_type_and_vectors<check_type, std::int8_t>(log, "std::int8_t");
96+
#if SYCL_CTS_ENABLE_OPENCL_INTEROP_TESTS
97+
if (!std::is_same<sycl::cl_char, std::int8_t>::value)
98+
#endif
99+
for_type_and_vectors<check_type, std::int8_t>(log, "std::int8_t");
97100
#endif
101+
98102
#ifdef INT16_MAX
99-
for_type_and_vectors<check_type, std::int16_t>(log, "std::int16_t");
103+
#if SYCL_CTS_ENABLE_OPENCL_INTEROP_TESTS
104+
if (!std::is_same<sycl::cl_short, std::int16_t>::value)
105+
#endif
106+
for_type_and_vectors<check_type, std::int16_t>(log, "std::int16_t");
100107
#endif
108+
101109
#ifdef INT32_MAX
102-
for_type_and_vectors<check_type, std::int32_t>(log, "std::int32_t");
110+
#if SYCL_CTS_ENABLE_OPENCL_INTEROP_TESTS
111+
if (!std::is_same<sycl::cl_int, std::int32_t>::value)
112+
#endif
113+
for_type_and_vectors<check_type, std::int32_t>(log, "std::int32_t");
103114
#endif
115+
104116
#ifdef INT64_MAX
105-
for_type_and_vectors<check_type, std::int64_t>(log, "std::int64_t");
117+
#if SYCL_CTS_ENABLE_OPENCL_INTEROP_TESTS
118+
if (!std::is_same<sycl::cl_long, std::int64_t>::value)
119+
#endif
120+
for_type_and_vectors<check_type, std::int64_t>(log, "std::int64_t");
106121
#endif
122+
107123
#ifdef UINT8_MAX
108-
for_type_and_vectors<check_type, std::uint8_t>(log, "std::uint8_t");
124+
#if SYCL_CTS_ENABLE_OPENCL_INTEROP_TESTS
125+
if (!std::is_same<sycl::cl_uchar, std::uint8_t>::value)
126+
#endif
127+
for_type_and_vectors<check_type, std::uint8_t>(log, "std::uint8_t");
109128
#endif
129+
110130
#ifdef UINT16_MAX
111-
for_type_and_vectors<check_type, std::uint16_t>(log, "std::uint16_t");
131+
#if SYCL_CTS_ENABLE_OPENCL_INTEROP_TESTS
132+
if (!std::is_same<sycl::cl_ushort, std::uint16_t>::value)
133+
#endif
134+
for_type_and_vectors<check_type, std::uint16_t>(log, "std::uint16_t");
112135
#endif
136+
113137
#ifdef UINT32_MAX
114-
for_type_and_vectors<check_type, std::uint32_t>(log, "std::uint32_t");
138+
#if SYCL_CTS_ENABLE_OPENCL_INTEROP_TESTS
139+
if (!std::is_same<sycl::cl_uint, std::uint32_t>::value)
140+
#endif
141+
for_type_and_vectors<check_type, std::uint32_t>(log, "std::uint32_t");
115142
#endif
143+
116144
#ifdef UINT64_MAX
117-
for_type_and_vectors<check_type, std::uint64_t>(log, "std::uint64_t");
145+
#if SYCL_CTS_ENABLE_OPENCL_INTEROP_TESTS
146+
if (!std::is_same<sycl::cl_ulong, std::uint64_t>::value)
147+
#endif
148+
for_type_and_vectors<check_type, std::uint64_t>(log, "std::uint64_t");
118149
#endif
119150
}
120151
};

0 commit comments

Comments
 (0)