Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hydra-image-processor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
OpenSource
hydra-image-processor
Commits
4e5d5a94
Commit
4e5d5a94
authored
6 years ago
by
Eric Wait
Browse files
Options
Downloads
Patches
Plain Diff
Kernel operator= is now uncommented
parent
d347e794
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/c/Cuda/Kernel.cu
+8
-8
8 additions, 8 deletions
src/c/Cuda/Kernel.cu
src/c/Cuda/Kernel.cuh
+1
-1
1 addition, 1 deletion
src/c/Cuda/Kernel.cuh
with
9 additions
and
9 deletions
src/c/Cuda/Kernel.cu
+
8
−
8
View file @
4e5d5a94
...
...
@@ -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*/
)
{
...
...
This diff is collapsed.
Click to expand it.
src/c/Cuda/Kernel.cuh
+
1
−
1
View file @
4e5d5a94
...
...
@@ -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
;
}
...
...
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