|
7 | 7 | //===----------------------------------------------------------------------===//
|
8 | 8 | // REQUIRES: gpu
|
9 | 9 | // UNSUPPORTED: cuda || hip
|
| 10 | +<<<<<<< HEAD |
| 11 | +======= |
| 12 | +// TODO: esimd_emulator fails due to unimplemented 'single_task()' method |
| 13 | +// XFAIL: esimd_emulator |
| 14 | +>>>>>>> 3c06ec209 ([ESIMD] Add smoke test for pack_mask/unpack_mask APIs. (#826)) |
10 | 15 | // RUN: %clangxx -fsycl %s -fsycl-device-code-split=per_kernel -o %t.out
|
11 | 16 | // RUN: %GPU_RUN_PLACEHOLDER %t.out
|
12 | 17 | //
|
|
15 | 20 | #include "../esimd_test_utils.hpp"
|
16 | 21 |
|
17 | 22 | #include <CL/sycl.hpp>
|
| 23 | +<<<<<<< HEAD |
18 | 24 | #include <sycl/ext/intel/esimd.hpp>
|
| 25 | +======= |
| 26 | +#include <sycl/ext/intel/experimental/esimd.hpp> |
| 27 | +>>>>>>> 3c06ec209 ([ESIMD] Add smoke test for pack_mask/unpack_mask APIs. (#826)) |
19 | 28 |
|
20 | 29 | #include <iostream>
|
21 | 30 |
|
22 | 31 | using namespace cl::sycl;
|
| 32 | +<<<<<<< HEAD |
23 | 33 | using namespace sycl::ext::intel;
|
24 | 34 | using namespace sycl::ext::intel::esimd;
|
| 35 | +======= |
| 36 | +using namespace sycl::ext::intel::experimental; |
| 37 | +using namespace sycl::ext::intel::experimental::esimd; |
| 38 | +>>>>>>> 3c06ec209 ([ESIMD] Add smoke test for pack_mask/unpack_mask APIs. (#826)) |
25 | 39 |
|
26 | 40 | template <int, int> struct test_id;
|
27 | 41 | using MaskRawElemT = typename simd_mask<1>::raw_element_type;
|
@@ -77,10 +91,17 @@ bool test_impl(queue q, const char *title, InitF init_f) {
|
77 | 91 | }
|
78 | 92 | }
|
79 | 93 | for (unsigned i = N; i < MAX_N; ++i) {
|
| 94 | +<<<<<<< HEAD |
80 | 95 | if (res_unpacked[i] != 0) {
|
81 | 96 | ++err_cnt;
|
82 | 97 | std::cout << " ERROR: non-zero lane " << i << ": 0x" << std::hex
|
83 | 98 | << res_unpacked[i] << std::dec << " in unpacked result\n";
|
| 99 | +======= |
| 100 | + if (test_data[i] != 0) { |
| 101 | + ++err_cnt; |
| 102 | + std::cout << " ERROR: non-zero lane " << i << ": 0x" << std::hex |
| 103 | + << test_data[i] << std::dec << "\n"; |
| 104 | +>>>>>>> 3c06ec209 ([ESIMD] Add smoke test for pack_mask/unpack_mask APIs. (#826)) |
84 | 105 | }
|
85 | 106 | }
|
86 | 107 | std::cout << (err_cnt > 0 ? " FAILED\n" : " Passed\n");
|
|
0 commit comments