Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_pdata
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_pdata
Commits
80932b47
Commit
80932b47
authored
Jun 08, 2019
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing compilation without GPU
parent
45a0f1ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
1 deletion
+51
-1
src/Vector/vector_dist.hpp
src/Vector/vector_dist.hpp
+51
-1
No files found.
src/Vector/vector_dist.hpp
View file @
80932b47
...
@@ -219,6 +219,12 @@ struct cell_list_selector<vector,comp_host>
...
@@ -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
/*! \brief Distributed vector
*
*
* This class represent a distributed vector, the distribution of the structure
* This class represent a distributed vector, the distribution of the structure
...
@@ -260,7 +266,7 @@ template<unsigned int dim,
...
@@ -260,7 +266,7 @@ template<unsigned int dim,
typename
Memory
=
HeapMemory
,
typename
Memory
=
HeapMemory
,
template
<
typename
>
class
layout_base
=
memory_traits_lin
>
template
<
typename
>
class
layout_base
=
memory_traits_lin
>
class
vector_dist
:
public
vector_dist_comm
<
dim
,
St
,
prop
,
Decomposition
,
Memory
,
layout_base
>
,
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_base
>
>
private
vector_dist_ker_list
<
v
dlk_type
>
{
{
public:
public:
...
@@ -2200,7 +2206,9 @@ public:
...
@@ -2200,7 +2206,9 @@ public:
this
->
template
map_list_
<
prp
...>(
v_pos
,
v_prp
,
g_m
,
opt
);
this
->
template
map_list_
<
prp
...>(
v_pos
,
v_prp
,
g_m
,
opt
);
#ifdef CUDA_GPU
this
->
update
(
this
->
toKernel
());
this
->
update
(
this
->
toKernel
());
#endif
#ifdef SE_CLASS3
#ifdef SE_CLASS3
se3
.
map_post
();
se3
.
map_post
();
...
@@ -2227,7 +2235,9 @@ public:
...
@@ -2227,7 +2235,9 @@ public:
this
->
template
map_
<
obp
>(
v_pos
,
v_prp
,
g_m
,
opt
);
this
->
template
map_
<
obp
>(
v_pos
,
v_prp
,
g_m
,
opt
);
#ifdef CUDA_GPU
this
->
update
(
this
->
toKernel
());
this
->
update
(
this
->
toKernel
());
#endif
#ifdef SE_CLASS3
#ifdef SE_CLASS3
se3
.
map_post
();
se3
.
map_post
();
...
@@ -2257,7 +2267,9 @@ public:
...
@@ -2257,7 +2267,9 @@ public:
this
->
template
ghost_get_
<
GHOST_SYNC
,
prp
...>(
v_pos
,
v_prp
,
g_m
,
opt
);
this
->
template
ghost_get_
<
GHOST_SYNC
,
prp
...>(
v_pos
,
v_prp
,
g_m
,
opt
);
#ifdef CUDA_GPU
this
->
update
(
this
->
toKernel
());
this
->
update
(
this
->
toKernel
());
#endif
#ifdef SE_CLASS3
#ifdef SE_CLASS3
...
@@ -2311,7 +2323,9 @@ public:
...
@@ -2311,7 +2323,9 @@ public:
this
->
template
ghost_wait_
<
prp
...>(
v_pos
,
v_prp
,
g_m
,
opt
);
this
->
template
ghost_wait_
<
prp
...>(
v_pos
,
v_prp
,
g_m
,
opt
);
#ifdef CUDA_GPU
this
->
update
(
this
->
toKernel
());
this
->
update
(
this
->
toKernel
());
#endif
#ifdef SE_CLASS3
#ifdef SE_CLASS3
...
@@ -2557,7 +2571,9 @@ public:
...
@@ -2557,7 +2571,9 @@ public:
g_m
=
rs
;
g_m
=
rs
;
#ifdef CUDA_GPU
this
->
update
(
this
->
toKernel
());
this
->
update
(
this
->
toKernel
());
#endif
}
}
/*! \brief Output particle position and properties
/*! \brief Output particle position and properties
...
@@ -2997,6 +3013,40 @@ public:
...
@@ -2997,6 +3013,40 @@ public:
boost
::
mpl
::
int_
<
prp
>
>::
type
,
prp
>::
compare
(
v_prp
,
tol
,
near
,
silent
);
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
#endif
...
...
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