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
4a6b7dc3
Commit
4a6b7dc3
authored
9 years ago
by
Angus Lepper
Browse files
Options
Downloads
Patches
Plain Diff
engine_policy_setaffinity only if it's supported
parent
ebda2151
No related branches found
No related tags found
1 merge request
!63
OS X-flavoured build fixes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.ac
+3
-1
3 additions, 1 deletion
configure.ac
examples/Makefile.am
+10
-3
10 additions, 3 deletions
examples/Makefile.am
with
13 additions
and
4 deletions
configure.ac
+
3
−
1
View file @
4a6b7dc3
...
...
@@ -260,8 +260,10 @@ fi
AM_CONDITIONAL([HAVEPARALLELHDF5],[test "$have_parallel_hdf5" = "yes"])
# Check for setaffinity.
AC_CHECK_FUNC(
pthread_setaffinity_np
, AC_DEFINE([HAVE_SETAFFINITY],[true],
AC_CHECK_FUNC(pthread_setaffinity_np, AC_DEFINE([HAVE_SETAFFINITY],[true],
[Defined if pthread_setaffinity_np exists.]) )
AM_CONDITIONAL(HAVESETAFFINITY,
[test "$ac_cv_func_pthread_setaffinity_np" = "yes"])
# Check for timing functions needed by cycle.h.
AC_HEADER_TIME
...
...
This diff is collapsed.
Click to expand it.
examples/Makefile.am
+
10
−
3
View file @
4a6b7dc3
...
...
@@ -36,19 +36,26 @@ if HAVEMPI
bin_PROGRAMS
+=
swift_mpi swift_fixdt_mpi swift_mindt_mpi
endif
# engine_policy_setaffinity is available?
if
HAVESETAFFINITY
ENGINE_POLICY_SETAFFINITY
=
| engine_policy_setaffinity
else
ENGINE_POLICY_SETAFFINITY
=
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_multistep | engine_policy_keep
$(
ENGINE_POLICY_SETAFFINITY
)
"
swift_LDADD
=
../src/.libs/libswiftsim.a
$(
HDF5_LDFLAGS
)
$(
HDF5_LIBS
)
# Sources for swift_fixdt
swift_fixdt_SOURCES
=
main.c
swift_fixdt_CFLAGS
=
$(
MYFLAGS
)
$(
AM_CFLAGS
)
-DENGINE_POLICY
=
"engine_policy_fixdt | engine_policy_keep
| engine_policy_setaffinity
"
swift_fixdt_CFLAGS
=
$(
MYFLAGS
)
$(
AM_CFLAGS
)
-DENGINE_POLICY
=
"engine_policy_fixdt | engine_policy_keep
$(
ENGINE_POLICY_SETAFFINITY
)
"
swift_fixdt_LDADD
=
../src/.libs/libswiftsim.a
$(
HDF5_LDFLAGS
)
$(
HDF5_LIBS
)
# Sources for swift_mindt
swift_mindt_SOURCES
=
main.c
swift_mindt_CFLAGS
=
$(
MYFLAGS
)
$(
AM_CFLAGS
)
-DENGINE_POLICY
=
"engine_policy_keep
| engine_policy_setaffinity
"
swift_mindt_CFLAGS
=
$(
MYFLAGS
)
$(
AM_CFLAGS
)
-DENGINE_POLICY
=
"engine_policy_keep
$(
ENGINE_POLICY_SETAFFINITY
)
"
swift_mindt_LDADD
=
../src/.libs/libswiftsim.a
$(
HDF5_LDFLAGS
)
$(
HDF5_LIBS
)
# Sources for swift_mpi
...
...
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