Source code

Revision control

Copy as Markdown

Other Tools

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at
def main(output, intgemm_config):
with open(intgemm_config, "r") as f:
config =
# Enable intel AVX2 hardware extension specific code to allow using AVX2 at run time
# if target cpu supports it
config = config.replace(
# Disable more advanced intel hardware extensions for now because base-toolchain compiler
# versions aren't able to compile them
config = config.replace("#cmakedefine", "#undef")
return 0