Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Chameleon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
faffa860
Commit
faffa860
authored
Dec 05, 2018
by
Mathieu Faverge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify the choice of the runtime system before integrating the new ones
parent
c0c86d69
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
48 deletions
+25
-48
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
CMakeLists.txt
CMakeLists.txt
+21
-40
doc/orgmode/chapters/installing.org
doc/orgmode/chapters/installing.org
+2
-6
No files found.
.gitlab-ci.yml
View file @
faffa860
...
...
@@ -78,7 +78,7 @@ build_quark:
-
build
-
chameleon_quark.log
variables
:
BUILD_OPTIONS
:
"
-DCHAMELEON_SCHED
_QUARK=ON
"
BUILD_OPTIONS
:
"
-DCHAMELEON_SCHED
=QUARK
"
VERSION
:
quark
build_parsec
:
...
...
@@ -90,7 +90,7 @@ build_parsec:
-
build
-
chameleon_parsec.log
variables
:
BUILD_OPTIONS
:
"
-DCHAMELEON_SCHED
_PARSEC=ON
"
BUILD_OPTIONS
:
"
-DCHAMELEON_SCHED
=PARSEC
"
VERSION
:
parsec
test_starpu_branches
:
...
...
CMakeLists.txt
View file @
faffa860
...
...
@@ -25,7 +25,7 @@
# @date 2012-07-13
#
###
cmake_minimum_required
(
VERSION
2.8
)
cmake_minimum_required
(
VERSION
3.3
)
project
(
CHAMELEON Fortran C CXX
)
# directly make an error if in-source build
...
...
@@ -108,50 +108,31 @@ option(CHAMELEON_USE_MIGRATE
# -----------------------------
# 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
option
(
CHAMELEON_SCHED_PARSEC
set
(
CHAMELEON_SCHED_PARSEC OFF CACHE INTERNAL
"Enable PaRSEC scheduler as the default runtime
(Conflict with other CHAMELEON_SCHED_* options)"
OFF
)
option
(
CHAMELEON_SCHED_STARPU
(Conflict with other CHAMELEON_SCHED_* options)"
)
set
(
CHAMELEON_SCHED_STARPU OFF CACHE INTERNAL
"Enable StarPU scheduler as the default runtime
(Conflict with other CHAMELEON_SCHED_* options)"
OFF
)
option
(
CHAMELEON_SCHED_QUARK
(Conflict with other CHAMELEON_SCHED_* options)"
)
set
(
CHAMELEON_SCHED_QUARK OFF CACHE INTERNAL
"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
if
(
CHAMELEON_SCHED_QUARK
)
set
(
CHAMELEON_SCHED_STARPU OFF
)
set
(
CHAMELEON_SCHED_PARSEC OFF
)
elseif
(
CHAMELEON_SCHED_STARPU
)
set
(
CHAMELEON_SCHED_QUARK OFF
)
set
(
CHAMELEON_SCHED_PARSEC OFF
)
elseif
(
CHAMELEON_SCHED_PARSEC
)
set
(
CHAMELEON_SCHED_QUARK OFF
)
set
(
CHAMELEON_SCHED_STARPU OFF
)
set
(
CHAMELEON_SCHED STARPU
CACHE STRING
"Choose the chameleon internal runtime from
${
CHAMELEON_SCHED_list
}
"
)
set_property
(
CACHE CHAMELEON_SCHED PROPERTY STRINGS
${
CHAMELEON_SCHED_list
}
)
if
(
NOT
${
CHAMELEON_SCHED
}
IN_LIST CHAMELEON_SCHED_list
)
message
(
FATAL_ERROR
"CHAMELEON_SCHED must be one of
${
CHAMELEON_SCHED_list
}
(
${
CHAMELEON_SCHED
}
is incorrect)"
)
endif
()
set
(
CHAMELEON_SCHED_
${
CHAMELEON_SCHED
}
ON
)
# 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
)
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
()
message
(
"--
${
BoldGreen
}
CHAMELEON_SCHED is set to use
${
CHAMELEON_SCHED
}
runtime"
)
# Check that one, and only one, SCHED option is set to ON
# count number of runtime sets to ON
...
...
doc/orgmode/chapters/installing.org
View file @
faffa860
...
...
@@ -359,12 +359,8 @@ we encourage users to use [[sec:spack][Spack]].
LAPACKE - QUARK - SIMGRID - STARPU - TMG.
**** Chameleon specific options
* *CHAMELEON_SCHED_STARPU=ON|OFF* (default ON): to link with
StarPU 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_SCHED=STARPU|PARSEC|QUARK* (default STARPU): to link
respectively with StarPU, PaRSEC, or Quark library (runtime system)
* *CHAMELEON_USE_MPI=ON|OFF* (default OFF): to link with MPI
library (message passing implementation for use of multiple
nodes with distributed memory), can only be used with StarPU
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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