@@ -93,28 +93,59 @@ class TEST_NAME : public util::test_base {
93
93
#endif
94
94
95
95
#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" );
97
100
#endif
101
+
98
102
#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" );
100
107
#endif
108
+
101
109
#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" );
103
114
#endif
115
+
104
116
#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" );
106
121
#endif
122
+
107
123
#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" );
109
128
#endif
129
+
110
130
#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" );
112
135
#endif
136
+
113
137
#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" );
115
142
#endif
143
+
116
144
#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" );
118
149
#endif
119
150
}
120
151
};
0 commit comments