Skip to content

Commit

Permalink
Apply different patch
Browse files Browse the repository at this point in the history
  • Loading branch information
alekstheod committed Nov 4, 2024
1 parent 15f2f3e commit 23781b3
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions xla/service/gpu/ir_emitter_unnested.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ limitations under the License.
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/Linker/Linker.h"
#include "mlir/AsmParser/AsmParser.h" // from @llvm-project
#include "mlir/Dialect/LLVMIR/LLVMDialect.h" // from @llvm-project
#include "mlir/AsmParser/AsmParser.h" // from @llvm-project
#include "mlir/Dialect/LLVMIR/LLVMDialect.h" // from @llvm-project
#include "mlir/Dialect/MemRef/Transforms/Passes.h" // from @llvm-project
#include "mlir/IR/Attributes.h" // from @llvm-project
#include "mlir/IR/Builders.h" // from @llvm-project
#include "mlir/IR/BuiltinAttributes.h" // from @llvm-project
#include "mlir/IR/BuiltinOps.h" // from @llvm-project
#include "mlir/IR/BuiltinTypes.h" // from @llvm-project
#include "mlir/IR/MLIRContext.h" // from @llvm-project
#include "mlir/Parser/Parser.h" // from @llvm-project
#include "mlir/Support/LLVM.h" // from @llvm-project
#include "mlir/IR/Attributes.h" // from @llvm-project
#include "mlir/IR/Builders.h" // from @llvm-project
#include "mlir/IR/BuiltinAttributes.h" // from @llvm-project
#include "mlir/IR/BuiltinOps.h" // from @llvm-project
#include "mlir/IR/BuiltinTypes.h" // from @llvm-project
#include "mlir/IR/MLIRContext.h" // from @llvm-project
#include "mlir/Parser/Parser.h" // from @llvm-project
#include "mlir/Support/LLVM.h" // from @llvm-project
#include "mlir/Target/LLVMIR/Dialect/Builtin/BuiltinToLLVMIRTranslation.h" // from @llvm-project
#include "mlir/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.h" // from @llvm-project
#include "mlir/Target/LLVMIR/Dialect/NVVM/NVVMToLLVMIRTranslation.h" // from @llvm-project
Expand Down Expand Up @@ -2875,10 +2875,11 @@ absl::Status IrEmitterUnnested::EmitHloInstruction(
if (IsCustomCallToDnnConvolution(*instr)) {
return EmitConvolutionThunk(custom_call);
}
#if GOOGLE_CUDA
#if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
if (IsCustomCallToCusolver(*instr)) {
return EmitCholeskyThunk(instr);
}
#elif GOOGLE_CUDA
if (IsTriangularSolve(*instr)) {
return EmitTriangularSolveCustomCall(instr);
}
Expand All @@ -2898,9 +2899,6 @@ absl::Status IrEmitterUnnested::EmitHloInstruction(
if (instr->custom_call_target() == kNopCustomCallTarget) {
return absl::OkStatus();
}
if (IsCustomCallToCusolver(*instr)) {
return EmitCholeskyThunk(instr);
}
return EmitCustomCallThunk(custom_call);
}
case HloOpcode::kFusion: {
Expand Down

0 comments on commit 23781b3

Please sign in to comment.