| 65 | } |
| 66 | |
| 67 | void param_update_kernel_half(const float* input, sycl::half* output, int size) |
| 68 | { |
| 69 | auto item_ct1 = sycl::ext::oneapi::experimental::this_nd_item<3>(); |
| 70 | int id = item_ct1.get_group(2) * item_ct1.get_local_range(2) + item_ct1.get_local_id(2); |
| 71 | sycl::half2* output_cast = reinterpret_cast<sycl::half2*>(output); |
| 72 | if (id < size) { |
| 73 | float input_f = input[id]; |
| 74 | sycl::half2* input_h = reinterpret_cast<sycl::half2*>(&input_f); |
| 75 | output_cast[id] = *input_h; |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | void launch_param_update_half(const float* input, sycl::half* output, int size, sycl::queue* stream) |
| 80 | { |
no outgoing calls
no test coverage detected