Skip to content

Commit

Permalink
Update builder to do Halide 18 releases + HALIDE_MAIN -> 19.0.0 (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-johnson authored Jun 26, 2024
1 parent 897aafc commit 22a4473
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions master/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -88,29 +88,33 @@ LLVM_BRANCHES = {LLVM_MAIN: VersionedBranch(ref='main', version=Version(19, 0, 0
# (Note that there are older releases of Halide that we no longer bother to build/test regularly.)

HALIDE_MAIN = 'main'
HALIDE_RELEASE_18 = 'release_18'
HALIDE_RELEASE_17 = 'release_17'
HALIDE_RELEASE_16 = 'release_16'

_HALIDE_RELEASES = [
HALIDE_RELEASE_18,
HALIDE_RELEASE_17,
HALIDE_RELEASE_16,
]

HALIDE_BRANCHES = {HALIDE_MAIN: VersionedBranch(ref='main', version=Version(18, 0, 0)),
HALIDE_BRANCHES = {HALIDE_MAIN: VersionedBranch(ref='main', version=Version(19, 0, 0)),
HALIDE_RELEASE_18: VersionedBranch(ref='release/18.x', version=Version(18, 0, 0)),
HALIDE_RELEASE_17: VersionedBranch(ref='release/17.x', version=Version(17, 0, 2)),
HALIDE_RELEASE_16: VersionedBranch(ref='release/16.x', version=Version(16, 0, 6))}

# This lists the Halide branch(es) for which we want to build nightlies;
# it's usually desirable to constrain these to save buildbot time (esp on the slower bots)
# and avoid branches that aren't changing much (i.e. -- recent releases that aren't
# likely to need new updates soon).
HALIDE_NIGHTLIES = [HALIDE_MAIN, HALIDE_RELEASE_17]
HALIDE_NIGHTLIES = [HALIDE_MAIN, HALIDE_RELEASE_18, HALIDE_RELEASE_17]

# Given a halide branch, return the 'native' llvm version we expect to use with it.
# For halide release branches, this is the corresponding llvm release branch; for
# halide main, it's llvm main.
LLVM_FOR_HALIDE = {
HALIDE_MAIN: [LLVM_MAIN, LLVM_RELEASE_18, LLVM_RELEASE_17],
HALIDE_RELEASE_18: [LLVM_RELEASE_18],
HALIDE_RELEASE_17: [LLVM_RELEASE_17],
HALIDE_RELEASE_16: [LLVM_RELEASE_16],
}
Expand Down Expand Up @@ -358,7 +362,7 @@ class BuilderType:
# return (self.arch == 'x86'
# and self.bits == 64
# and self.os == 'linux'
# and self.halide_branch in [HALIDE_MAIN, HALIDE_RELEASE_17])
# and self.halide_branch in [HALIDE_MAIN, HALIDE_RELEASE_18, HALIDE_RELEASE_17])

def handles_webgpu(self):
# At the moment, the WebGPU team recommends the OSX versions of Dawn/Node
Expand Down Expand Up @@ -2024,9 +2028,11 @@ def prioritize_builders(buildmaster, builders):
return 2
if builder_type.llvm_branch in LLVM_FOR_HALIDE[HALIDE_RELEASE_17]:
return 3
if builder_type.llvm_branch in LLVM_FOR_HALIDE[HALIDE_MAIN]:
if builder_type.llvm_branch in LLVM_FOR_HALIDE[HALIDE_RELEASE_18]:
return 4
return 5
if builder_type.llvm_branch in LLVM_FOR_HALIDE[HALIDE_MAIN]:
return 5
return 6

return list(sorted(builders, key=importance))

Expand Down

0 comments on commit 22a4473

Please sign in to comment.