8
8
// Exclude PVC not to run same test cases twice (via the *_pvc.cpp variant).
9
9
// REQUIRES: gpu && !gpu-intel-pvc
10
10
// UNSUPPORTED: cuda || hip
11
- // RUN: %clangxx -fsycl %s -o %t.out
11
+ // RUN: %clangxx -fsycl-device-code-split=per_kernel -fsycl %s -o %t.out
12
12
// RUN: %GPU_RUN_PLACEHOLDER %t.out
13
13
14
14
// Tests various unary operations applied to simd objects.
@@ -174,7 +174,8 @@ int main(void) {
174
174
passed &= test<half, 1 >(mod_ops, q);
175
175
passed &= test<half, 32 >(mod_ops, q);
176
176
passed &= test<float , 32 >(mod_ops, q);
177
- passed &= test<double , 7 >(mod_ops, q);
177
+ if (dev.has (aspect::fp64))
178
+ passed &= test<double , 7 >(mod_ops, q);
178
179
179
180
auto signed_ops = esimd_test::OpSeq<UnOp, UnOp::minus, UnOp::plus>{};
180
181
passed &= test<char , 7 >(signed_ops, q);
@@ -183,7 +184,8 @@ int main(void) {
183
184
passed &= test<int64_t , 16 >(signed_ops, q);
184
185
passed &= test<half, 16 >(signed_ops, q);
185
186
passed &= test<float , 16 >(signed_ops, q);
186
- passed &= test<double , 16 >(signed_ops, q);
187
+ if (dev.has (aspect::fp64))
188
+ passed &= test<double , 16 >(signed_ops, q);
187
189
188
190
#ifdef USE_BF16
189
191
// TODO: the rest unary operations are not yet supported for bfloat16 on host.
0 commit comments