Skip to content
Draft
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
18 changes: 13 additions & 5 deletions docs/reference/MIGraphX-dev-env-vars.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,21 @@ Model performance tunable variables change the compilation behavior of a model.

| Default: Reduction fusions are turned off.

* - | ``MIGRAPHX_ENABLE_MLIR_GEG_FUSION``
| Turns on GEMM+GEMM fusions in MLIR.

- | ``1``: Turns on G+G fusions.
* - | ``MIGRAPHX_DISABLE_MLIR_GEG_FUSION``
| Turns off heuristic-based GEMM+GEMM fusions in MLIR.

- | ``1``: Turns off G+G fusions.
| ``0``: Returns to default behavior.

| Default: GEMM+GEMM fusions are applied according to a heuristic based on GEMM sizes.

* - | ``MIGRAPHX_ENABLE_MLIR_CEG_FUSION``
| Turns on convolution+GEMM fusions in MLIR.

- | ``1``: Turns on convolution+GEMM fusions.
| ``0``: Returns to default behavior.

| Default: GEMM+GEMM fusions are turned off.
| Default: convolution+GEMM fusions are turned off.

* - | ``MIGRAPHX_MLIR_ENABLE_SPLITK``
| Turns on Split-k performance configurations during MLIR tuning.
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ pybind/pybind11@3e9dfa2866941655c56877882565e7577de6fc7b --build
msgpack/msgpack-c@cpp-3.3.0 -DMSGPACK_BUILD_TESTS=Off -DMSGPACK_BUILD_EXAMPLES=Off -DCMAKE_POLICY_VERSION_MINIMUM=3.5
sqlite3@3.50.4 -DCMAKE_POSITION_INDEPENDENT_CODE=On
ROCm/composable_kernel@b7775add2d28251674d81e220cd4a857b90b997a -DCK_BUILD_JIT_LIB=On -DCMAKE_POSITION_INDEPENDENT_CODE=On
ROCm/rocMLIR@687737efd27f1dd3dae58bdbac2d49f9ab1af483 -DBUILD_FAT_LIBROCKCOMPILER=On -DLLVM_INCLUDE_TESTS=Off
ROCm/rocMLIR@125ac3fdc1e872d7ae26bb2499c8764cae728061 -DBUILD_FAT_LIBROCKCOMPILER=On -DLLVM_INCLUDE_TESTS=Off
5 changes: 4 additions & 1 deletion src/include/migraphx/module.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2015-2025 Advanced Micro Devices, Inc. All rights reserved.
* Copyright (c) 2015-2026 Advanced Micro Devices, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -81,6 +81,9 @@ struct MIGRAPHX_EXPORT module
bool bypass() const;
void set_bypass(bool b = true);

std::string get_tag() const;
void set_tag(const std::string& tag);

template <class... Ts, MIGRAPHX_REQUIRES(std::is_same<Ts, instruction_ref>{}...)>
instruction_ref add_instruction(operation op, Ts... args)
{
Expand Down
6 changes: 5 additions & 1 deletion src/module.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2015-2025 Advanced Micro Devices, Inc. All rights reserved.
* Copyright (c) 2015-2026 Advanced Micro Devices, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -60,6 +60,7 @@ struct module_impl
std::string name;
uint32_t nparams = 0;
bool bypass = false; // used for skipping compiler passes
std::string tag; // optional tag for categorizing/identifying modules
bit_signal<64> changed{};

bool contains(instruction_ref ins) const
Expand Down Expand Up @@ -154,6 +155,9 @@ void module::set_name(const std::string& name) { impl->name = name; }
bool module::bypass() const { return impl->bypass; }
void module::set_bypass(bool b) { impl->bypass = b; }

std::string module::get_tag() const { return impl->tag; }
void module::set_tag(const std::string& tag) { impl->tag = tag; }

void module::assign(const module& m)
{
// copy the impl
Expand Down
Loading
Loading