Skip to content
Snippets Groups Projects
Commit cc139e89 authored by Eric Wait's avatar Eric Wait
Browse files

Cuda Sum now takes a const image pointer

parent 49b44075
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
#include "cuda_runtime.h"
template <class PixelTypeIn, class OutType>
__global__ void cudaSum(PixelTypeIn* arrayIn, OutType* arrayOut, size_t n)
__global__ void cudaSum(const PixelTypeIn* arrayIn, OutType* arrayOut, size_t n)
{
extern __shared__ unsigned char sharedMem[];
OutType* sums = (OutType*)sharedMem;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment