|
44 | 44 | // CHECK_BLOCKEXCHANGE_WARPSTRIPEDTOBLOCKED: cub::BlockExchange<int, 128, 4>(temp_storage).WarpStripedToBlocked(thread_data/*int(&)[4]*/, thread_data/*int(&)[4]*/); |
45 | 45 | // CHECK_BLOCKEXCHANGE_WARPSTRIPEDTOBLOCKED: Is migrated to: |
46 | 46 | // CHECK_BLOCKEXCHANGE_WARPSTRIPEDTOBLOCKED: dpct::group::exchange<int, 4>(temp_storage).sub_group_striped_to_blocked(sycl::ext::oneapi::this_work_item::get_nd_item<3>(), thread_data, thread_data); |
| 47 | + |
| 48 | +// RUN: dpct --cuda-include-path="%cuda-path/include" --query-api-mapping=cub::BlockLoad::Load | FileCheck %s -check-prefix=CHECK_BLOCKLOAD_LOAD |
| 49 | +// CHECK_BLOCKLOAD_LOAD: CUDA API: |
| 50 | +// CHECK_BLOCKLOAD_LOAD: __shared__ typename cub::BlockLoad<int, 128, 4, cub::BLOCK_LOAD_DIRECT>::TempStorage temp_storage; |
| 51 | +// CHECK_BLOCKLOAD_LOAD: cub::BlockLoad<int, 128, 4, cub::BLOCK_LOAD_DIRECT>(temp_storage).Load(src/*int **/, thread_data/*int(&)[4]*/); |
| 52 | +// CHECK_BLOCKLOAD_LOAD: cub::BlockLoad<int, 128, 4, cub::BLOCK_LOAD_DIRECT>(temp_storage).Load(src/*int **/, thread_data/*int(&)[4]*/, end/*int*/); |
| 53 | +// CHECK_BLOCKLOAD_LOAD: cub::BlockLoad<int, 128, 4, cub::BLOCK_LOAD_DIRECT>(temp_storage).Load(src/*int **/, thread_data/*int(&)[4]*/, end/*int*/, default_value/*int*/); |
| 54 | +// CHECK_BLOCKLOAD_LOAD: Is migrated to: |
| 55 | +// CHECK_BLOCKLOAD_LOAD: auto item_ct1 = sycl::ext::oneapi::this_work_item::get_nd_item<3>(); |
| 56 | +// CHECK_BLOCKLOAD_LOAD: dpct::group::group_load<int, 4, dpct::group::group_load_algorithm::blocked>(temp_storage).load(item_ct1, src, thread_data); |
| 57 | +// CHECK_BLOCKLOAD_LOAD: dpct::group::group_load<int, 4, dpct::group::group_load_algorithm::blocked>(temp_storage).load(item_ct1, src, thread_data, end); |
| 58 | +// CHECK_BLOCKLOAD_LOAD: dpct::group::group_load<int, 4, dpct::group::group_load_algorithm::blocked>(temp_storage).load(item_ct1, src, thread_data, end, default_value); |
| 59 | + |
| 60 | +// RUN: dpct --cuda-include-path="%cuda-path/include" --query-api-mapping=cub::BlockStore::Store | FileCheck %s -check-prefix=CHECK_BLOCKSTORE_STORE |
| 61 | +// CHECK_BLOCKSTORE_STORE: CUDA API: |
| 62 | +// CHECK_BLOCKSTORE_STORE: __shared__ typename cub::BlockStore<int, 128, 4, cub::BLOCK_STORE_DIRECT>::TempStorage temp_storage; |
| 63 | +// CHECK_BLOCKSTORE_STORE: cub::BlockStore<int, 128, 4, cub::BLOCK_STORE_DIRECT>(temp_storage).Store(dst/*int **/, thread_data/*int(&)[4]*/); |
| 64 | +// CHECK_BLOCKSTORE_STORE: cub::BlockStore<int, 128, 4, cub::BLOCK_STORE_DIRECT>(temp_storage).Store(dst/*int **/, thread_data/*int(&)[4]*/, end/*int*/); |
| 65 | +// CHECK_BLOCKSTORE_STORE: Is migrated to: |
| 66 | +// CHECK_BLOCKSTORE_STORE: auto item_ct1 = sycl::ext::oneapi::this_work_item::get_nd_item<3>(); |
| 67 | +// CHECK_BLOCKSTORE_STORE: dpct::group::group_store<int, 4, dpct::group::group_store_algorithm::blocked>(temp_storage).store(item_ct1, dst, thread_data); |
| 68 | +// CHECK_BLOCKSTORE_STORE: dpct::group::group_store<int, 4, dpct::group::group_store_algorithm::blocked>(temp_storage).store(item_ct1, dst, thread_data, end); |
0 commit comments