Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
iRMB
VirtualFluids
Commits
9a018cb6
Commit
9a018cb6
authored
2 years ago
by
Anna Wellmann
Browse files
Options
Downloads
Patches
Plain Diff
Reformat ExchangeData27 and ExchangeData27Test
parent
440a31a2
No related branches found
No related tags found
1 merge request
!104
Add Communication Hiding to GPU version
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/gpu/VirtualFluids_GPU/Communication/ExchangeData27.cpp
+72
-65
72 additions, 65 deletions
src/gpu/VirtualFluids_GPU/Communication/ExchangeData27.cpp
src/gpu/VirtualFluids_GPU/Communication/ExchangeData27Test.cpp
+3
-4
3 additions, 4 deletions
...pu/VirtualFluids_GPU/Communication/ExchangeData27Test.cpp
with
75 additions
and
69 deletions
src/gpu/VirtualFluids_GPU/Communication/ExchangeData27.cpp
+
72
−
65
View file @
9a018cb6
This diff is collapsed.
Click to expand it.
src/gpu/VirtualFluids_GPU/Communication/ExchangeData27Test.cpp
+
3
−
4
View file @
9a018cb6
...
...
@@ -31,7 +31,7 @@ protected:
int
level
=
0
;
int
numNodes
=
10
;
std
::
vector
<
real
>
recvFs
;
std
::
vector
<
real
>
sendFs
;
std
::
vector
<
real
>
sendFs
;
std
::
vector
<
ProcessNeighbor27
>
sendProcessNeighborHost
;
std
::
vector
<
ProcessNeighbor27
>
recvProcessNeighborHost
;
...
...
@@ -47,15 +47,14 @@ protected:
para
->
getParH
(
level
)
->
edgeNodesXtoZ
.
emplace_back
(
0
,
7
,
0
,
8
);
para
->
getParH
(
level
)
->
edgeNodesXtoZ
.
emplace_back
(
0
,
7
,
0
,
8
);
para
->
getParH
(
level
)
->
edgeNodesXtoZ
.
emplace_back
(
0
,
7
,
0
,
8
);
}
void
setUpRecvProcessNeighbors
(
int
numberOfNodesInRecv
)
void
setUpRecvProcessNeighbors
(
int
numberOfNodesInRecv
)
{
recvFs
.
resize
(
numberOfNodesInRecv
);
std
::
fill
(
recvFs
.
begin
(),
recvFs
.
end
(),
0.5
);
// 0.5s should not be copied
for
(
LBMSimulationParameter
::
EdgeNodePositions
edgeNode
:
para
->
getParH
(
level
)
->
edgeNodesXtoZ
)
{
if
(
edgeNode
.
indexInRecvBuffer
>
numberOfNodesInRecv
){
if
(
edgeNode
.
indexInRecvBuffer
>
numberOfNodesInRecv
)
{
continue
;
}
recvFs
[
edgeNode
.
indexInRecvBuffer
]
=
0.1
;
// 0.1s should be copied
...
...
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