Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions buildbot/osuosl/master/config/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -1646,6 +1646,54 @@ def _get_documentation_builders():
}
]

# Builders for ML-driven compiler optimizations.
def _get_ml_compiler_opt_builders():
common_extra_args = [
"-DCMAKE_BUILD_TYPE=Release",
"-DLLVM_CACHE_BUILD=ON",
"-DLLVM_ENABLE_ASSERTIONS=ON", ]

return [
# Development mode build bot: tensorflow C APIs are present, and
# we can dynamically load models, and produce training logs.
{'name': "ml-opt-dev-x86-64",
'mergeRequests': False,
'slavenames':["ml-opt-dev-x86-64-b1"],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the b1 suffix about?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we later need more bots - it was based on what I saw sanitizers did.

'builddir':"ml-opt-dev-x86-64-b1",
'factory': UnifiedTreeBuilder.getCmakeWithNinjaBuildFactory(
clean=True,
depends_on_projects=['llvm'],
extra_configure_args=common_extra_args + [
"-DTENSORFLOW_API_PATH=${TENSORFLOW_API_PATH}"
])},
# Release mode build bot: the model is pre-built and linked in the
# compiler. Only the tensorflow pip package is needed, and out of it,
# only saved_model_cli (the model compiler) and the thin C++ wrappers
# in xla_aot_runtime_src (and include files)
{'name': "ml-opt-rel-x86-64",
'mergeRequests': False,
'slavenames':["ml-opt-rel-x86-64-b1"],
'builddir':"ml-opt-rel-x86-64-b1",
'factory': UnifiedTreeBuilder.getCmakeWithNinjaBuildFactory(
clean=True,
depends_on_projects=['llvm'],
extra_configure_args=common_extra_args + [
"-DTENSORFLOW_AOT_PATH=${TENSORFLOW_AOT_PATH}"
])},
# Both tensorflow C library, and the pip package, are present.
{'name': "ml-opt-devrel-x86-64",
'mergeRequests': False,
'slavenames':["ml-opt-devrel-x86-64-b1"],
'builddir':"ml-opt-devrel-x86-64-b1",
'factory': UnifiedTreeBuilder.getCmakeWithNinjaBuildFactory(
clean=True,
depends_on_projects=['llvm'],
extra_configure_args=common_extra_args + [
"-DTENSORFLOW_API_PATH=${TENSORFLOW_API_PATH}",
"-DTENSORFLOW_AOT_PATH=${TENSORFLOW_AOT_PATH}"
])},
]

def get_builders():
for b in _get_llvm_builders():
b['category'] = 'llvm'
Expand Down
8 changes: 8 additions & 0 deletions buildbot/osuosl/master/config/slaves.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,12 @@ def get_build_slaves():

create_slave("flang-aarch64-ubuntu-build"),
create_slave("nersc-flang"),

# ML-Driven Compiler Optimizations build slave (Ubuntu x86_64)
create_slave("ml-opt-dev-x86-64-b1",
properties={'jobs': 64}, max_builds=1),
create_slave("ml-opt-rel-x86-64-b1",
properties={'jobs': 64}, max_builds=1),
create_slave("ml-opt-devrel-x86-64-b1",
properties={'jobs': 64}, max_builds=1),
]
9 changes: 9 additions & 0 deletions buildbot/osuosl/master/config/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,13 @@ def get_status_targets(standard_builders, standard_categories=None):
mode = "failing",
builders = ["publish-sphinx-docs"],
addLogs=False),
InformativeMailNotifier(fromaddr="llvm.buildmaster@lab.llvm.org",
sendToInterestedUsers=True,
extraRecipients=[
"mlcompileropt-buildbot@google.com"],
subject="ML Compiler Opt Failure: %(builder)s",
mode="failing",
builders=[
"ml-opt-dev-x86-64", "ml-opt-rel-x86-64", "ml-opt-devrel-x86-64"],
addLogs=False),
]