Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
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
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
ccf7d71e
Commit
ccf7d71e
authored
1 year ago
by
yaskovet
Browse files
Options
Downloads
Patches
Plain Diff
Add missing vector_dist methods for DCPSE on GPU
parent
dbff3f2a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#5703
passed
1 year ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Vector/vector_dist_kernel.hpp
+56
-0
56 additions, 0 deletions
src/Vector/vector_dist_kernel.hpp
src/Vector/vector_dist_subset.hpp
+21
-0
21 additions, 0 deletions
src/Vector/vector_dist_subset.hpp
with
77 additions
and
0 deletions
src/Vector/vector_dist_kernel.hpp
+
56
−
0
View file @
ccf7d71e
...
...
@@ -167,6 +167,62 @@ public:
return
v_pos
.
template
get
<
0
>(
vec_key
.
getKey
());
}
/*! \brief Get the position of an element
*
* see the vector_dist iterator usage to get an element key
*
* \param vec_key element
*
* \return the position of the element in space
*
*/
__device__
__host__
inline
auto
getPosOrig
(
int
vec_key
)
->
decltype
(
v_pos
.
template
get
<
0
>(
vec_key
))
{
return
v_pos
.
template
get
<
0
>(
vec_key
);
}
/*! \brief Get the position of an element
*
* see the vector_dist iterator usage to get an element key
*
* \param vec_key element
*
* \return the position of the element in space
*
*/
__device__
__host__
inline
auto
getPosOrig
(
const
vect_dist_key_dx
&
vec_key
)
->
decltype
(
v_pos
.
template
get
<
0
>(
vec_key
.
getKey
()))
{
return
v_pos
.
template
get
<
0
>(
vec_key
.
getKey
());
}
/*! \brief Get the position of an element
*
* see the vector_dist iterator usage to get an element key
*
* \param vec_key element
*
* \return the position of the element in space
*
*/
__device__
__host__
inline
auto
getPosOrig
(
int
vec_key
)
const
->
decltype
(
v_pos
.
template
get
<
0
>(
vec_key
))
{
return
v_pos
.
template
get
<
0
>(
vec_key
);
}
/*! \brief Get the position of an element
*
* see the vector_dist iterator usage to get an element key
*
* \param vec_key element
*
* \return the position of the element in space
*
*/
__device__
__host__
inline
auto
getPosOrig
(
const
vect_dist_key_dx
&
vec_key
)
const
->
decltype
(
v_pos
.
template
get
<
0
>(
vec_key
.
getKey
()))
{
return
v_pos
.
template
get
<
0
>(
vec_key
.
getKey
());
}
/*! \brief Get the property of an element
*
* see the vector_dist iterator usage to get an element key
...
...
This diff is collapsed.
Click to expand it.
src/Vector/vector_dist_subset.hpp
+
21
−
0
View file @
ccf7d71e
...
...
@@ -269,6 +269,27 @@ public:
return
vd
.
getPos
(
vect_dist_key_dx
(
pid
.
template
get
<
0
>(
vec_key
.
getKey
())));
}
/*! \brief Move the memory from the device to host memory
*
* \tparam property to move use POS_PROP for position property
*
*/
template
<
unsigned
int
...
prp
>
inline
void
hostToDeviceProp
()
{
vd
.
template
hostToDeviceProp
<
prp
...>();
}
/*! \brief Move the memory from the device to host memory
*
* \tparam property to move use POS_PROP for position property
*
*/
inline
void
hostToDevicePos
()
{
vd
.
template
hostToDevicePos
<
0
>();
}
/*! \brief Get the position of an element
*
* see the vector_dist iterator usage to get an element key
...
...
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