Skip to content
Snippets Groups Projects
Commit 9430e0f6 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Merge pull request #97 from bmerry/zeroinit-memcpy

Zero-initialize all fields of Memcpy*D
parents cf145f5f 2682e650
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -1737,13 +1737,8 @@ namespace pycuda
struct memcpy_2d : public CUDA_MEMCPY2D
{
memcpy_2d()
memcpy_2d() : CUDA_MEMCPY2D()
{
srcXInBytes = 0;
srcY = 0;
dstXInBytes = 0;
dstY = 0;
}
MEMCPY_SETTERS;
......@@ -1764,20 +1759,8 @@ namespace pycuda
#if CUDAPP_CUDA_VERSION >= 2000
struct memcpy_3d : public CUDA_MEMCPY3D
{
memcpy_3d()
memcpy_3d() : CUDA_MEMCPY3D()
{
reserved0 = 0;
reserved1 = 0;
srcXInBytes = 0;
srcY = 0;
srcZ = 0;
srcLOD = 0;
dstXInBytes = 0;
dstY = 0;
dstZ = 0;
dstLOD = 0;
}
MEMCPY_SETTERS;
......@@ -1796,17 +1779,8 @@ namespace pycuda
#if CUDAPP_CUDA_VERSION >= 4000
struct memcpy_3d_peer : public CUDA_MEMCPY3D_PEER
{
memcpy_3d_peer()
memcpy_3d_peer() : CUDA_MEMCPY3D_PEER()
{
srcXInBytes = 0;
srcY = 0;
srcZ = 0;
srcLOD = 0;
dstXInBytes = 0;
dstY = 0;
dstZ = 0;
dstLOD = 0;
}
MEMCPY_SETTERS;
......
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