src/Pure/Admin/ci_build_benchmark.scala
author wenzelm
Thu, 25 Aug 2022 11:29:55 +0200
changeset 75965 fe686d96d7ff
parent 75629 11e233ba53c8
permissions -rw-r--r--
unused (amending 3d723062dc70);
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
11e233ba53c8 minor tuning;
wenzelm
parents: 75628
diff changeset
    11
  val isabelle_tool =
11e233ba53c8 minor tuning;
wenzelm
parents: 75628
diff changeset
    12
    Isabelle_Tool("ci_build_benchmark", "builds Isabelle benchmarks + timing group",
11e233ba53c8 minor tuning;
wenzelm
parents: 75628
diff changeset
    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
}