Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_backend_cuda
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Charles Villard
aidge_backend_cuda
Commits
3ed75e8c
Commit
3ed75e8c
authored
2 weeks ago
by
Benjamin Halimi
Committed by
Maxence Naud
1 week ago
Browse files
Options
Downloads
Patches
Plain Diff
remove default values in source
parent
4657d0a9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/data/TensorImpl.cu
+2
-2
2 additions, 2 deletions
src/data/TensorImpl.cu
with
2 additions
and
2 deletions
src/data/TensorImpl.cu
+
2
−
2
View file @
3ed75e8c
...
...
@@ -36,7 +36,7 @@ cudaCopyToH_kernel(const SRC_T* srcData,
}
}
template
<
typename
SRC_T
,
typename
std
::
enable_if
<!
std
::
is_same
<
half_float
::
half
,
SRC_T
>
::
value
>::
type
*
=
nullptr
>
template
<
typename
SRC_T
,
typename
std
::
enable_if
<!
std
::
is_same
<
half_float
::
half
,
SRC_T
>
::
value
>::
type
*>
void
Aidge
::
thrust_copy
(
const
SRC_T
*
srcData
,
half_float
::
half
*
dstData
,
size_t
size
)
{
cudaCopyToH_kernel
<
SRC_T
><<<
(
size
+
255
)
/
256
,
256
>>>
...
...
@@ -58,7 +58,7 @@ cudaCopyFromH_kernel(const __half* srcData,
}
}
template
<
typename
DST_T
,
typename
std
::
enable_if
<!
std
::
is_same
<
half_float
::
half
,
DST_T
>
::
value
>::
type
*
=
nullptr
>
template
<
typename
DST_T
,
typename
std
::
enable_if
<!
std
::
is_same
<
half_float
::
half
,
DST_T
>
::
value
>::
type
*>
void
Aidge
::
thrust_copy
(
const
half_float
::
half
*
srcData
,
DST_T
*
dstData
,
size_t
size
)
{
cudaCopyFromH_kernel
<
DST_T
><<<
(
size
+
255
)
/
256
,
256
>>>
...
...
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