Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chameleon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
Chameleon
Commits
faffa860
Commit
faffa860
authored
6 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Simplify the choice of the runtime system before integrating the new ones
parent
c0c86d69
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!131
Simplify the choice of the runtime system before integrating the new ones
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
CMakeLists.txt
+21
-40
21 additions, 40 deletions
CMakeLists.txt
doc/orgmode/chapters/installing.org
+2
-6
2 additions, 6 deletions
doc/orgmode/chapters/installing.org
with
25 additions
and
48 deletions
.gitlab-ci.yml
+
2
−
2
View file @
faffa860
...
@@ -78,7 +78,7 @@ build_quark:
...
@@ -78,7 +78,7 @@ build_quark:
-
build
-
build
-
chameleon_quark.log
-
chameleon_quark.log
variables
:
variables
:
BUILD_OPTIONS
:
"
-DCHAMELEON_SCHED
_
QUARK
=ON
"
BUILD_OPTIONS
:
"
-DCHAMELEON_SCHED
=
QUARK"
VERSION
:
quark
VERSION
:
quark
build_parsec
:
build_parsec
:
...
@@ -90,7 +90,7 @@ build_parsec:
...
@@ -90,7 +90,7 @@ build_parsec:
-
build
-
build
-
chameleon_parsec.log
-
chameleon_parsec.log
variables
:
variables
:
BUILD_OPTIONS
:
"
-DCHAMELEON_SCHED
_
PARSEC
=ON
"
BUILD_OPTIONS
:
"
-DCHAMELEON_SCHED
=
PARSEC"
VERSION
:
parsec
VERSION
:
parsec
test_starpu_branches
:
test_starpu_branches
:
...
...
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
21
−
40
View file @
faffa860
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
# @date 2012-07-13
# @date 2012-07-13
#
#
###
###
cmake_minimum_required
(
VERSION
2.8
)
cmake_minimum_required
(
VERSION
3.3
)
project
(
CHAMELEON Fortran C CXX
)
project
(
CHAMELEON Fortran C CXX
)
# directly make an error if in-source build
# directly make an error if in-source build
...
@@ -108,50 +108,31 @@ option(CHAMELEON_USE_MIGRATE
...
@@ -108,50 +108,31 @@ option(CHAMELEON_USE_MIGRATE
# -----------------------------
# -----------------------------
# Create a list of possible runtime
# Create a list of possible runtime
set
(
CHAMELEON_SCHED_list
"PARSEC"
"STARPU"
"QUARK"
)
set
(
CHAMELEON_SCHED_list PARSEC STARPU QUARK
CACHE INTERNAL
"List of available runtimes"
)
# Initially PaRSEC runtime is enabled
set
(
CHAMELEON_SCHED_PARSEC OFF CACHE INTERNAL
option
(
CHAMELEON_SCHED_PARSEC
"Enable PaRSEC scheduler as the default runtime
"Enable PaRSEC scheduler as the default runtime
(Conflict with other CHAMELEON_SCHED_* options)"
)
(Conflict with other CHAMELEON_SCHED_* options)"
OFF
)
set
(
CHAMELEON_SCHED_STARPU OFF CACHE INTERNAL
option
(
CHAMELEON_SCHED_STARPU
"Enable StarPU scheduler as the default runtime
"Enable StarPU scheduler as the default runtime
(Conflict with other CHAMELEON_SCHED_* options)"
OFF
)
(Conflict with other CHAMELEON_SCHED_* options)"
)
option
(
CHAMELEON_SCHED_QUARK
set
(
CHAMELEON_SCHED_QUARK
OFF CACHE INTERNAL
"Enable Quark scheduler as the default runtime
"Enable Quark scheduler as the default runtime
(Conflict with other CHAMELEON_SCHED_* options)"
OFF
)
(Conflict with other CHAMELEON_SCHED_* options)"
)
# For now, we are able to compile only one runtime at a time, so we disable combinations of runtimes
set
(
CHAMELEON_SCHED STARPU
if
(
CHAMELEON_SCHED_QUARK
)
CACHE STRING
"Choose the chameleon internal runtime from
${
CHAMELEON_SCHED_list
}
"
)
set
(
CHAMELEON_SCHED_STARPU OFF
)
set_property
(
CACHE CHAMELEON_SCHED PROPERTY STRINGS
${
CHAMELEON_SCHED_list
}
)
set
(
CHAMELEON_SCHED_PARSEC OFF
)
elseif
(
CHAMELEON_SCHED_STARPU
)
if
(
NOT
${
CHAMELEON_SCHED
}
IN_LIST CHAMELEON_SCHED_list
)
set
(
CHAMELEON_SCHED_QUARK OFF
)
message
(
FATAL_ERROR
"CHAMELEON_SCHED must be one of
${
CHAMELEON_SCHED_list
}
(
${
CHAMELEON_SCHED
}
is incorrect)"
)
set
(
CHAMELEON_SCHED_PARSEC OFF
)
elseif
(
CHAMELEON_SCHED_PARSEC
)
set
(
CHAMELEON_SCHED_QUARK OFF
)
set
(
CHAMELEON_SCHED_STARPU OFF
)
endif
()
endif
()
set
(
CHAMELEON_SCHED_
${
CHAMELEON_SCHED
}
ON
)
# Set default to StarPU if nothing specific is required by the user
# Set default to StarPU if nothing specific is required by the user
if
(
NOT CHAMELEON_SCHED_STARPU AND NOT CHAMELEON_SCHED_PARSEC AND NOT CHAMELEON_SCHED_QUARK
)
message
(
"--
${
BoldGreen
}
CHAMELEON_SCHED is set to use
${
CHAMELEON_SCHED
}
runtime"
)
set
(
CHAMELEON_SCHED_STARPU ON
)
endif
()
if
(
CHAMELEON_SCHED_STARPU
)
message
(
"--
${
BoldGreen
}
CHAMELEON_SCHED_STARPU is set to ON: CHAMELEON uses StarPU runtime
\n
"
" To use CHAMELEON with Quark runtime: set CHAMELEON_SCHED_QUARK to ON
\n
"
" To use CHAMELEON with PaRSEC runtime: set CHAMELEON_SCHED_PARSEC to ON
\n
"
" (CHAMELEON_SCHED_STARPU will be disabled)
${
ColourReset
}
"
)
elseif
(
CHAMELEON_SCHED_QUARK
)
message
(
"--
${
BoldGreen
}
CHAMELEON_SCHED_QUARK is set to ON: CHAMELEON uses Quark runtime
\n
"
" To use CHAMELEON with StarPU runtime: set CHAMELEON_SCHED_STARPU to ON
\n
"
" To use CHAMELEON with PaRSEC runtime: set CHAMELEON_SCHED_PARSEC to ON
\n
"
" (CHAMELEON_SCHED_QUARK will be disabled)
${
ColourReset
}
"
)
elseif
(
CHAMELEON_SCHED_PARSEC
)
message
(
"--
${
BoldGreen
}
CHAMELEON_SCHED_PARSEC is set to ON: CHAMELEON uses PaRSEC runtime
\n
"
" To use CHAMELEON with StarPU runtime: set CHAMELEON_SCHED_STARPU to ON
\n
"
" To use CHAMELEON with Quark runtime: set CHAMELEON_SCHED_QUARK to ON
\n
"
" (CHAMELEON_SCHED_PARSEC will be disabled)
${
ColourReset
}
"
)
endif
()
# Check that one, and only one, SCHED option is set to ON
# Check that one, and only one, SCHED option is set to ON
# count number of runtime sets to ON
# count number of runtime sets to ON
...
...
This diff is collapsed.
Click to expand it.
doc/orgmode/chapters/installing.org
+
2
−
6
View file @
faffa860
...
@@ -359,12 +359,8 @@ we encourage users to use [[sec:spack][Spack]].
...
@@ -359,12 +359,8 @@ we encourage users to use [[sec:spack][Spack]].
LAPACKE - QUARK - SIMGRID - STARPU - TMG.
LAPACKE - QUARK - SIMGRID - STARPU - TMG.
**** Chameleon specific options
**** Chameleon specific options
* *CHAMELEON_SCHED_STARPU=ON|OFF* (default ON): to link with
* *CHAMELEON_SCHED=STARPU|PARSEC|QUARK* (default STARPU): to link
StarPU library (runtime system)
respectively with StarPU, PaRSEC, or Quark library (runtime system)
* *CHAMELEON_SCHED_PARSEC=ON|OFF* (default OFF): to link with
PARSEC library (runtime system)
* *CHAMELEON_SCHED_QUARK=ON|OFF* (default OFF): to link with QUARK
library (runtime system)
* *CHAMELEON_USE_MPI=ON|OFF* (default OFF): to link with MPI
* *CHAMELEON_USE_MPI=ON|OFF* (default OFF): to link with MPI
library (message passing implementation for use of multiple
library (message passing implementation for use of multiple
nodes with distributed memory), can only be used with StarPU
nodes with distributed memory), can only be used with StarPU
...
...
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