12 #ifndef PLSSVM_BACKENDS_HIP_DETAIL_FILL_KERNEL_HPP_
13 #define PLSSVM_BACKENDS_HIP_DETAIL_FILL_KERNEL_HPP_
16 #include "hip/hip_runtime.h"
17 #include "hip/hip_runtime_api.h"
30 template <
typename value_type,
typename size_type>
31 __global__
void fill_array(value_type *data, value_type value, size_type pos, size_type count) {
32 const unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x;
35 data[pos + idx] = value;
Namespace containing HIP backend specific implementation details. Should not directly be used by user...
Definition: device_ptr.hip.hpp:18
__global__ void fill_array(value_type *data, value_type value, size_type pos, size_type count)
Fill the array data with count values value starting at position pos.
Definition: fill_kernel.hip.hpp:31