24#ifndef MORPHEUS_COO_KERNELS_MATRIXOPERATIONS_IMPL_HPP
25#define MORPHEUS_COO_KERNELS_MATRIXOPERATIONS_IMPL_HPP
27#include <Morpheus_Macros.hpp>
28#if defined(MORPHEUS_ENABLE_CUDA) || defined(MORPHEUS_ENABLE_HIP)
34template <
typename ValueType,
typename IndexType,
typename SizeType>
35__global__
void update_coo_diagonal_kernel(
const SizeType nnnz,
37 const IndexType* J, ValueType* V,
38 const ValueType* diagonal) {
39 const SizeType tid = blockDim.x * blockIdx.x + threadIdx.x;
40 if (tid >= nnnz)
return;
42 if (I[tid] == J[tid]) V[tid] = diagonal[J[tid]];
Generic Morpheus interfaces.
Definition: dummy.cpp:24