Skip to content

Commit

Permalink
Added missing absl:: namespace qualifiers to StatusOr
Browse files Browse the repository at this point in the history
  • Loading branch information
mmakevic-amd committed Dec 11, 2024
1 parent 67d8f16 commit ac4cbe0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions third_party/xla/xla/service/elemental_ir_emitter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1829,7 +1829,7 @@ absl::StatusOr<llvm::Value*> ElementalIrEmitter::EmitComplexAbs(
return Select(FCmpUNO(result, result), min, result);
}

StatusOr<std::tuple<llvm::Value*, llvm::Value*, llvm::Value*>>
absl::StatusOr<std::tuple<llvm::Value*, llvm::Value*, llvm::Value*>>
ElementalIrEmitter::EmitLogComplexAbsHelper(PrimitiveType prim_type,
llvm::Value* operand_value) {
llvm::Value* real = EmitExtractReal(operand_value);
Expand All @@ -1848,7 +1848,7 @@ ElementalIrEmitter::EmitLogComplexAbsHelper(PrimitiveType prim_type,
// This calculates log(sqrt(a^2+b^2)) = log(|a|) + 0.5*log(1+(b/a)^2)
// (assuming |a|>=|b|), to make it possible to avoid overflow when
// |a| and/or |b| are just below FLT_MAX.
StatusOr<llvm::Value*> ElementalIrEmitter::EmitLogComplexAbs(
absl::StatusOr<llvm::Value*> ElementalIrEmitter::EmitLogComplexAbs(
PrimitiveType prim_type, llvm::Value* operand_value) {
llvm::Value* min;
llvm::Value* max;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct MatmulPlanCache {
}

template < class Func >
StatusOr<se::gpu::BlasLt::MatmulPlan *>
absl::StatusOr<se::gpu::BlasLt::MatmulPlan *>
GetOrCreate(const std::string& key, Func&& create) {
// each GPU has a different mutex => hence different GPU instances can
// create matmul plans in parallel
Expand Down Expand Up @@ -155,7 +155,7 @@ auto CublasLtMatmulThunk::GetCachedMatmulPlan(

auto& cache = MatmulPlanCache::i(params.stream);

auto create = [&]() -> StatusOr<se::gpu::BlasLt::MatmulPlanPtr> {
auto create = [&]() -> absl::StatusOr<se::gpu::BlasLt::MatmulPlanPtr> {
VLOG(2) << this << ": Adding new MatmulPlan for stream: " << params.stream <<
" instr: " << canonical_hlo_;

Expand Down

0 comments on commit ac4cbe0

Please sign in to comment.