Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
2ea0ef5b
Commit
2ea0ef5b
authored
Aug 16, 2017
by
Jens Korinth
Browse files
Log warning in case of empty dimensions in DSE
parent
679ac96d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/tapasco/jobs/Jobs.scala
View file @
2ea0ef5b
...
...
@@ -126,6 +126,14 @@ final case class DesignSpaceExplorationJob(
private
val
_platforms
:
Option
[
Seq
[
String
]]
=
None
,
features
:
Option
[
Seq
[
Feature
]]
=
None
,
debugMode
:
Option
[
String
]
=
None
)
extends
Job
(
"dse"
)
{
private
final
val
logger
=
de
.
tu_darmstadt
.
cs
.
esa
.
tapasco
.
Logging
.
logger
(
getClass
)
// warn if dimensions are completely empty
dimensions
match
{
case
DesignSpace
.
Dimensions
(
false
,
false
,
false
)
=>
logger
.
warn
(
"no dimensions enabled in exploration job - consider using a compose job instead"
)
case
_
=>
()
}
/** Returns the list of [[base.Architecture]] instances selected in this job. */
def
architectures
:
Set
[
Architecture
]
=
FileAssetManager
.
entities
.
architectures
filter
(
a
=>
_architectures
map
(
_
.
contains
(
a
.
name
))
getOrElse
true
)
...
...
Write
Preview
Supports
Markdown
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