Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SWIFT
SWIFTsim
Commits
dd0f4578
Commit
dd0f4578
authored
9 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
added a brief description of how the space is decomposed.
parent
85c3e1ff
No related branches found
No related tags found
1 merge request
!147
Pasc paper
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theory/paper_pasc/pasc_paper.tex
+14
-3
14 additions, 3 deletions
theory/paper_pasc/pasc_paper.tex
with
14 additions
and
3 deletions
theory/paper_pasc/pasc_paper.tex
+
14
−
3
View file @
dd0f4578
...
@@ -347,7 +347,8 @@ techniques easier, we chose to implement our own task scheduler
...
@@ -347,7 +347,8 @@ techniques easier, we chose to implement our own task scheduler
in
\swift
, which has since been back-ported as the general-purpose
in
\swift
, which has since been back-ported as the general-purpose
\qs
task scheduler
\cite
{
gonnet2013quicksched
}
.
\qs
task scheduler
\cite
{
gonnet2013quicksched
}
.
This also allowed us to extend the scheduler with the concept of
This also allowed us to extend the scheduler with the concept of
task conflicts.
task conflicts and integrate the asynchronous communication
scheme described below.
Despite its advantages, and the variety of implementations,
Despite its advantages, and the variety of implementations,
task-based parallelism is rarely used in
task-based parallelism is rarely used in
...
@@ -360,9 +361,19 @@ which is usually not an option for large and complex codebases.
...
@@ -360,9 +361,19 @@ which is usually not an option for large and complex codebases.
Since we were re-implementing
\swift
from scratch, this was not an issue.
Since we were re-implementing
\swift
from scratch, this was not an issue.
The tree-based neighbour-finding described above was replaced with a more
The tree-based neighbour-finding described above was replaced with a more
task-friendly approach as described in
\cite
{
ref:Gonnet2015
}
.
task-friendly approach as described in
\cite
{
ref:Gonnet2015
}
, in which
the domain is first decomposed into a grid of
{
\em
cells
}
of edge length
larger or equal to the largest particle radius.
An initial set of interaction tasks is then defined over all neighbouring
pairs of cells such that if two particles are close enough to interact,
they are either in the same cell or they span a pair of neighbouring cells.
These initial interaction tasks are then refined by recursively
splitting cells that contain more than a certain number of particles
and replacing tasks that span a pair of split cells with tasks
spanning the neighboring sub-cells.
Particle interactions are computed within, and between pairs, of
Particle interactions are computed within, and between pairs, of
hierarchical
{
\em
cells
}
containing one or more particles.
hierarchical cells containing one or more particles.
The dependencies between the tasks are set following
The dependencies between the tasks are set following
equations
\eqn
{
rho
}
,
\eqn
{
dvdt
}
, and
\eqn
{
dudt
}
, i.e.~such that for any cell,
equations
\eqn
{
rho
}
,
\eqn
{
dvdt
}
, and
\eqn
{
dudt
}
, i.e.~such that for any cell,
all the tasks computing the particle densities therein must have
all the tasks computing the particle densities therein must have
...
...
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