24#ifndef MORPHEUS_DENSEVECTOR_KERNELS_COPY_IMPL_HPP
25#define MORPHEUS_DENSEVECTOR_KERNELS_COPY_IMPL_HPP
27#if defined(MORPHEUS_ENABLE_HIP)
28#include <impl/Morpheus_HIPUtils.hpp>
29#elif defined(MORPHEUS_ENABLE_CUDA)
30#include <impl/Morpheus_CudaUtils.hpp>
37template <
typename ValueType,
typename IndexType,
typename SizeType>
38__global__
void copy_by_key_kernel(SizeType n,
const IndexType* keys,
39 const ValueType* src, ValueType* dst) {
40 const SizeType tid = blockDim.x * blockIdx.x + threadIdx.x;
43 dst[tid] = src[keys[tid]];
Generic Morpheus interfaces.
Definition: dummy.cpp:24