| author | wenzelm |
| Tue, 06 Sep 2022 21:06:20 +0200 | |
| changeset 76074 | 2456721602b2 |
| parent 75629 | 11e233ba53c8 |
| permissions | -rw-r--r-- |
|
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
1 |
/* Title: Pure/Admin/ci_build_benchmark.scala |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
2 |
Author: Lars Hupel and Fabian Huch, TU Munich |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
3 |
|
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
4 |
CI benchmark build profile. |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
5 |
*/ |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
6 |
|
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
7 |
package isabelle |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
8 |
|
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
9 |
|
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
10 |
object CI_Build_Benchmark {
|
| 75629 | 11 |
val isabelle_tool = |
12 |
Isabelle_Tool("ci_build_benchmark", "builds Isabelle benchmarks + timing group",
|
|
13 |
Scala_Project.here, { args =>
|
|
|
75628
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
14 |
val getopts = Getopts("""
|
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
15 |
Usage: isabelle ci_build_benchmark |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
16 |
|
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
17 |
Builds Isabelle benchmark and timing sessions. |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
18 |
""") |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
19 |
getopts(args) |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
20 |
|
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
21 |
val selection = Sessions.Selection(session_groups = List("timing"))
|
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
22 |
val profile = CI_Profile.Profile(threads = 6, jobs = 1, numa = false) |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
23 |
val config = CI_Profile.Build_Config(documents = false, |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
24 |
select = List(Path.explode("$ISABELLE_HOME/src/Benchmarks")), selection = selection)
|
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
25 |
|
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
26 |
CI_Profile.build(profile, config) |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
27 |
}) |
|
6a5e4f17f285
switched to statically compiled ci profile;
Fabian Huch <huch@in.tum.de>
parents:
diff
changeset
|
28 |
} |