From 5097fda671a0ff3418f3c2f289a88d168d3dcebe Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 2 Jan 2024 18:04:00 -0600 Subject: [PATCH 1/3] Enable fuse_pointwise and fuse_reduce in the driver --- src/driver/main.cpp | 2 +- src/driver/passes.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/driver/main.cpp b/src/driver/main.cpp index d2ed8fe87bc..faf1345e09d 100644 --- a/src/driver/main.cpp +++ b/src/driver/main.cpp @@ -341,7 +341,7 @@ struct loader }); } if(not passes.empty()) - migraphx::run_passes(*p.get_main_module(), get_passes(passes)); + migraphx::run_passes(p, get_passes(passes)); return p; } diff --git a/src/driver/passes.cpp b/src/driver/passes.cpp index cd66e3e30b0..94b27ac3aa5 100644 --- a/src/driver/passes.cpp +++ b/src/driver/passes.cpp @@ -33,6 +33,8 @@ #include #include #include +#include +#include #include #include #include @@ -69,6 +71,8 @@ std::unordered_map create_passes_lookup() eliminate_data_type{}, eliminate_identity{}, eliminate_pad{}, + fuse_pointwise{}, + fuse_reduce{}, inline_module{}, insert_pad{}, normalize_ops{}, From ae2e6c04370d8173e169479479096a40b52e9e0d Mon Sep 17 00:00:00 2001 From: Chris Austen Date: Wed, 3 Jan 2024 13:53:41 -0500 Subject: [PATCH 2/3] Update passes.cpp Set date --- src/driver/passes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/passes.cpp b/src/driver/passes.cpp index 94b27ac3aa5..cd21edaeeb1 100644 --- a/src/driver/passes.cpp +++ b/src/driver/passes.cpp @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * Copyright (c) 2015-2024 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 From b602e3dd16aee140ca0e44af38c68262ae7f2edd Mon Sep 17 00:00:00 2001 From: Chris Austen Date: Wed, 3 Jan 2024 13:54:00 -0500 Subject: [PATCH 3/3] Update main.cpp --- src/driver/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/main.cpp b/src/driver/main.cpp index faf1345e09d..ee42b14e73d 100644 --- a/src/driver/main.cpp +++ b/src/driver/main.cpp @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * Copyright (c) 2015-2024 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