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
80932b47
Commit
80932b47
authored
5 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing compilation without GPU
parent
45a0f1ab
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/Vector/vector_dist.hpp
+51
-1
51 additions, 1 deletion
src/Vector/vector_dist.hpp
with
51 additions
and
1 deletion
src/Vector/vector_dist.hpp
+
51
−
1
View file @
80932b47
...
...
@@ -219,6 +219,12 @@ struct cell_list_selector<vector,comp_host>
}
};
#ifdef CUDA_GPU
typedef
vector_dist_ker
<
dim
,
St
,
prop
,
layout_base
>
vdlk_type
;
#else
typedef
int
vdlk_type
;
#endif
/*! \brief Distributed vector
*
* This class represent a distributed vector, the distribution of the structure
...
...
@@ -260,7 +266,7 @@ template<unsigned int dim,
typename
Memory
=
HeapMemory
,
template
<
typename
>
class
layout_base
=
memory_traits_lin
>
class
vector_dist
:
public
vector_dist_comm
<
dim
,
St
,
prop
,
Decomposition
,
Memory
,
layout_base
>
,
private
vector_dist_ker_list
<
v
ector_dist_ker
<
dim
,
St
,
prop
,
layout_bas
e
>
>
private
vector_dist_ker_list
<
v
dlk_typ
e
>
{
public:
...
...
@@ -2200,7 +2206,9 @@ public:
this
->
template
map_list_
<
prp
...>(
v_pos
,
v_prp
,
g_m
,
opt
);
#ifdef CUDA_GPU
this
->
update
(
this
->
toKernel
());
#endif
#ifdef SE_CLASS3
se3
.
map_post
();
...
...
@@ -2227,7 +2235,9 @@ public:
this
->
template
map_
<
obp
>(
v_pos
,
v_prp
,
g_m
,
opt
);
#ifdef CUDA_GPU
this
->
update
(
this
->
toKernel
());
#endif
#ifdef SE_CLASS3
se3
.
map_post
();
...
...
@@ -2257,7 +2267,9 @@ public:
this
->
template
ghost_get_
<
GHOST_SYNC
,
prp
...>(
v_pos
,
v_prp
,
g_m
,
opt
);
#ifdef CUDA_GPU
this
->
update
(
this
->
toKernel
());
#endif
#ifdef SE_CLASS3
...
...
@@ -2311,7 +2323,9 @@ public:
this
->
template
ghost_wait_
<
prp
...>(
v_pos
,
v_prp
,
g_m
,
opt
);
#ifdef CUDA_GPU
this
->
update
(
this
->
toKernel
());
#endif
#ifdef SE_CLASS3
...
...
@@ -2557,7 +2571,9 @@ public:
g_m
=
rs
;
#ifdef CUDA_GPU
this
->
update
(
this
->
toKernel
());
#endif
}
/*! \brief Output particle position and properties
...
...
@@ -2997,6 +3013,40 @@ public:
boost
::
mpl
::
int_
<
prp
>
>::
type
,
prp
>::
compare
(
v_prp
,
tol
,
near
,
silent
);
}
#else
/*! \brief Move the memory from the device to host memory
*
* \tparam property to move use POS_PROP for position property
*
*/
template
<
unsigned
int
...
prp
>
void
deviceToHostProp
()
{}
/*! \brief Move the memory from the device to host memory
*
* \tparam property to move use POS_PROP for position property
*
*/
void
deviceToHostPos
()
{}
/*! \brief Move the memory from the device to host memory
*
* \tparam property to move use POS_PROP for position property
*
*/
template
<
unsigned
int
...
prp
>
void
hostToDeviceProp
()
{}
/*! \brief Move the memory from the device to host memory
*
* \tparam property to move use POS_PROP for position property
*
*/
void
hostToDevicePos
()
{}
#endif
...
...
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