Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
cf0b83ef
Commit
cf0b83ef
authored
Jan 29, 2016
by
Matthieu Schaller
Browse files
Removed multi-dt policy. It is now the default. fixdt has to be explicitly switched on.
parent
fc847208
Changes
3
Hide whitespace changes
Inline
Side-by-side
examples/Makefile.am
View file @
cf0b83ef
...
...
@@ -45,7 +45,7 @@ endif
# Sources for swift
swift_SOURCES
=
main.c
swift_CFLAGS
=
$(MYFLAGS)
$(AM_CFLAGS)
-DENGINE_POLICY
=
"
engine_policy_multistep |
engine_policy_keep
$(ENGINE_POLICY_SETAFFINITY)
"
swift_CFLAGS
=
$(MYFLAGS)
$(AM_CFLAGS)
-DENGINE_POLICY
=
"engine_policy_keep
$(ENGINE_POLICY_SETAFFINITY)
"
swift_LDADD
=
../src/.libs/libswiftsim.a
$(HDF5_LDFLAGS)
$(HDF5_LIBS)
swift_fixdt_SOURCES
=
main.c
...
...
@@ -54,7 +54,7 @@ swift_fixdt_LDADD = ../src/.libs/libswiftsim.a $(HDF5_LDFLAGS) $(HDF5_LIBS)
# Sources for swift_mpi, do we need an affinity policy for MPI?
swift_mpi_SOURCES
=
main.c
swift_mpi_CFLAGS
=
$(MYFLAGS)
$(AM_CFLAGS)
$(MPI_FLAGS)
-DENGINE_POLICY
=
"
engine_policy_multistep |
engine_policy_keep"
swift_mpi_CFLAGS
=
$(MYFLAGS)
$(AM_CFLAGS)
$(MPI_FLAGS)
-DENGINE_POLICY
=
"engine_policy_keep"
swift_mpi_LDADD
=
../src/.libs/libswiftsim_mpi.a
$(HDF5_LDFLAGS)
$(HDF5_LIBS)
$(MPI_LIBS)
swift_fixdt_mpi_SOURCES
=
main.c
...
...
src/engine.c
View file @
cf0b83ef
...
...
@@ -57,7 +57,7 @@
const
char
*
engine_policy_names
[
10
]
=
{
"none"
,
"rand"
,
"steal"
,
"keep"
,
"block"
,
"fix_dt"
,
"multi_dt"
,
"cpu_tight"
,
"mpi"
,
"numa_affinity"
};
"fix_dt"
,
"cpu_tight"
,
"mpi"
,
"numa_affinity"
};
/** The rank of the engine as a global variable (for messages). */
int
engine_rank
;
...
...
src/engine.h
View file @
cf0b83ef
...
...
@@ -46,10 +46,9 @@ enum engine_policy {
engine_policy_keep
=
4
,
engine_policy_block
=
8
,
engine_policy_fixdt
=
16
,
engine_policy_multistep
=
32
,
engine_policy_cputight
=
64
,
engine_policy_mpi
=
128
,
engine_policy_setaffinity
=
256
engine_policy_cputight
=
32
,
engine_policy_mpi
=
64
,
engine_policy_setaffinity
=
128
};
extern
const
char
*
engine_policy_names
[];
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment