Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycuda
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
pycuda
Commits
9430e0f6
There was a problem fetching the pipeline mini graph.
Commit
9430e0f6
authored
9 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Plain Diff
Merge pull request #97 from bmerry/zeroinit-memcpy
Zero-initialize all fields of Memcpy*D
parents
cf145f5f
2682e650
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cpp/cuda.hpp
+3
-29
3 additions, 29 deletions
src/cpp/cuda.hpp
with
3 additions
and
29 deletions
src/cpp/cuda.hpp
+
3
−
29
View file @
9430e0f6
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment