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
2ee3cf33
Commit
2ee3cf33
authored
3 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Applied code formatting script
parent
a7621709
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/main.c
+2
-1
2 additions, 1 deletion
examples/main.c
src/engine.c
+2
-2
2 additions, 2 deletions
src/engine.c
with
4 additions
and
3 deletions
examples/main.c
+
2
−
1
View file @
2ee3cf33
...
...
@@ -278,7 +278,8 @@ int main(int argc, char *argv[]) {
OPT_BOOLEAN
(
'a'
,
"pin"
,
&
with_aff
,
"Pin runners using processor affinity."
,
NULL
,
0
,
0
),
OPT_BOOLEAN
(
0
,
"interleave"
,
&
with_interleave
,
"Interleave memory allocations across NUMA regions."
,
NULL
,
0
,
0
),
"Interleave memory allocations across NUMA regions."
,
NULL
,
0
,
0
),
OPT_BOOLEAN
(
'd'
,
"dry-run"
,
&
dry_run
,
"Dry run. Read the parameter file, allocates memory but does "
"not read the particles from ICs. Exits before the start of "
...
...
This diff is collapsed.
Click to expand it.
src/engine.c
+
2
−
2
View file @
2ee3cf33
...
...
@@ -2715,7 +2715,7 @@ void engine_unpin(void) {
#endif
}
/**
/**
* @brief Define a NUMA memory placement policy of interleave across the
* available NUMA nodes rather than having memory in the local node, which
* means we have a lot of memory associated with the main thread NUMA node, so
...
...
@@ -2761,7 +2761,7 @@ void engine_numa_policies(int rank, int verbose) {
}
/* And set. */
set_mempolicy
(
MPOL_INTERLEAVE
,
nodemask
->
maskp
,
nodemask
->
size
+
1
);
set_mempolicy
(
MPOL_INTERLEAVE
,
nodemask
->
maskp
,
nodemask
->
size
+
1
);
numa_free_nodemask
(
nodemask
);
#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