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

Kernel operator= is now uncommented

parent d347e794
No related branches found
No related tags found
No related merge requests found
......@@ -44,14 +44,14 @@ __device__ float Kernel::operator()(Vec<size_t> coordinate)
return val;
}
//__host__ Kernel& Kernel::operator=(const Kernel& other)
//{
// dims = other.dims;
// cudaKernel = other.cudaKernel;
// cleanUpDevice = other.cleanUpDevice;
//
// return *this;
//}
__host__ Kernel& Kernel::operator=(const Kernel& other)
{
dims = other.dims;
cudaKernel = other.cudaKernel;
cleanUpDevice = other.cleanUpDevice;
return *this;
}
__host__ void Kernel::load(Vec<size_t> dimensions, float* values, size_t startOffset/* = 0*/)
{
......
......@@ -14,7 +14,7 @@ public:
__host__ __device__ Kernel(Kernel& other);
__host__ __device__ ~Kernel() { init(); }
//__host__ Kernel& operator=(const Kernel& other);
__host__ Kernel& operator=(const Kernel& other);
__host__ void clean();
__host__ __device__ float* getDevicePtr() { return cudaKernel; }
......
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