[BUILD] Change default build type (#945)
This commit is contained in:
@@ -1138,7 +1138,7 @@ private:
|
|||||||
std::function<void(int, int)>
|
std::function<void(int, int)>
|
||||||
getLoadMatrixFn(Value tensor, const SharedMemoryObject &smemObj,
|
getLoadMatrixFn(Value tensor, const SharedMemoryObject &smemObj,
|
||||||
MmaEncodingAttr mmaLayout, int wpt, uint32_t kOrder,
|
MmaEncodingAttr mmaLayout, int wpt, uint32_t kOrder,
|
||||||
ArrayRef<int> instrShape, ArrayRef<int> matShape,
|
SmallVector<int> instrShape, SmallVector<int> matShape,
|
||||||
Value warpId, ValueTable &vals, bool isA) const {
|
Value warpId, ValueTable &vals, bool isA) const {
|
||||||
auto tensorTy = tensor.getType().cast<RankedTensorType>();
|
auto tensorTy = tensor.getType().cast<RankedTensorType>();
|
||||||
// We assumes that the input operand of Dot should be from shared layout.
|
// We assumes that the input operand of Dot should be from shared layout.
|
||||||
|
@@ -1875,9 +1875,9 @@ struct PrintfOpConversion
|
|||||||
|
|
||||||
Value globalPtr =
|
Value globalPtr =
|
||||||
rewriter.create<LLVM::AddressOfOp>(UnknownLoc::get(context), global);
|
rewriter.create<LLVM::AddressOfOp>(UnknownLoc::get(context), global);
|
||||||
Value stringStart =
|
Value stringStart = rewriter.create<LLVM::GEPOp>(
|
||||||
rewriter.create<LLVM::GEPOp>(UnknownLoc::get(context), int8Ptr,
|
UnknownLoc::get(context), int8Ptr, globalPtr,
|
||||||
globalPtr, mlir::ValueRange({zero, zero}));
|
SmallVector<Value>({zero, zero}));
|
||||||
|
|
||||||
Value bufferPtr =
|
Value bufferPtr =
|
||||||
rewriter.create<LLVM::NullOp>(UnknownLoc::get(context), int8Ptr);
|
rewriter.create<LLVM::NullOp>(UnknownLoc::get(context), int8Ptr);
|
||||||
@@ -1912,7 +1912,7 @@ struct PrintfOpConversion
|
|||||||
int8Ptr, allocated);
|
int8Ptr, allocated);
|
||||||
}
|
}
|
||||||
|
|
||||||
ValueRange operands{stringStart, bufferPtr};
|
SmallVector<Value> operands{stringStart, bufferPtr};
|
||||||
rewriter.create<LLVM::CallOp>(UnknownLoc::get(context), funcOp, operands);
|
rewriter.create<LLVM::CallOp>(UnknownLoc::get(context), funcOp, operands);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@@ -25,8 +25,8 @@ def get_build_type():
|
|||||||
elif check_env_flag("REL_WITH_DEB_INFO"):
|
elif check_env_flag("REL_WITH_DEB_INFO"):
|
||||||
return "RelWithDebInfo"
|
return "RelWithDebInfo"
|
||||||
else:
|
else:
|
||||||
return "Debug"
|
return "RelWithDebInfo"
|
||||||
# TODO(Keren): Restore this before we merge into master
|
# TODO: change to release when stable enough
|
||||||
#return "Release"
|
#return "Release"
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user