Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_data
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_data
Commits
c46dc01e
Commit
c46dc01e
authored
Sep 05, 2018
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fix for tranfer host to device
parent
a8b2bfa3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/Grid/grid_common.hpp
src/Grid/grid_common.hpp
+1
-1
src/Grid/map_grid.hpp
src/Grid/map_grid.hpp
+1
-1
src/Vector/map_vector.hpp
src/Vector/map_vector.hpp
+1
-1
No files found.
src/Grid/grid_common.hpp
View file @
c46dc01e
...
...
@@ -50,7 +50,7 @@ struct call_recursive_host_device_if_vector
T_ker
*
ptr_tt
=
static_cast
<
T_ker
*>
(
tmp
.
getPointer
());
for
(
size_t
i
=
start
;
i
<
stop
;
i
++
)
for
(
size_t
i
=
start
;
i
<
=
stop
;
i
++
)
{
ptr_tt
[
i
]
=
ptr
[
i
].
toKernel
();
}
...
...
src/Grid/map_grid.hpp
View file @
c46dc01e
...
...
@@ -213,7 +213,7 @@ public:
*/
template
<
unsigned
int
...
prp
>
void
hostToDevice
(
size_t
start
,
size_t
stop
)
{
this
->
data_
.
mem
->
hostToDevice
(
start
,
stop
);
this
->
data_
.
mem
->
hostToDevice
(
start
*
sizeof
(
T
),(
stop
+
1
)
*
sizeof
(
T
)
);
}
/*! \brief It return the properties arrays.
...
...
src/Vector/map_vector.hpp
View file @
c46dc01e
...
...
@@ -1527,7 +1527,7 @@ namespace openfpm
*/
template
<
unsigned
int
...
prp
>
void
hostToDevice
()
{
base
.
template
hostToDevice
<
prp
...>(
0
,
v_size
);
base
.
template
hostToDevice
<
prp
...>(
0
,
v_size
-
1
);
}
/*! \brief Synchronize the memory buffer in the device with the memory in the host
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment