mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
[BACKEND] Reduce code cleanup and bug fix for the fast path (#1816)
https://github.com/openai/triton/issues/1715
This commit is contained in:
@@ -5,11 +5,15 @@
|
||||
#include "mlir/IR/Matchers.h"
|
||||
#include "triton/Dialect/Triton/IR/Dialect.h"
|
||||
#include "triton/Dialect/TritonGPU/IR/Dialect.h"
|
||||
#include "triton/Tools/Sys/GetEnv.hpp"
|
||||
#include <deque>
|
||||
|
||||
namespace mlir {
|
||||
|
||||
bool ReduceOpHelper::isFastReduction() {
|
||||
// Disable fast reduction only for debugging purpose
|
||||
if (::triton::tools::getBoolEnv("DISABLE_FAST_REDUCTION"))
|
||||
return false;
|
||||
return axis == triton::gpu::getOrder(getSrcLayout())[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user