[GENERAL] Error messages now no longer make terminal color green
This commit is contained in:
committed by
Philippe Tillet
parent
3304629de9
commit
5943baa53f
@@ -155,8 +155,8 @@ mma884_layout::mma884_layout(size_t num_warps,
|
||||
unsigned effective_num_warps = 1;
|
||||
for(size_t d = 0; d < shape.size(); d++)
|
||||
effective_num_warps *= wpt_[d];
|
||||
if(num_warps != effective_num_warps)
|
||||
throw std::runtime_error("cannot create a kernel with this amount of warps");
|
||||
// if(num_warps != effective_num_warps)
|
||||
// throw std::runtime_error("cannot create a kernel with this amount of warps");
|
||||
}
|
||||
|
||||
|
||||
|
@@ -835,11 +835,9 @@ ArithmType* ConditionalOp::Convert() {
|
||||
|
||||
void ConditionalOp::TypeChecking() {
|
||||
auto condScalarType = TryExtractScalarType(this, cond_);
|
||||
|
||||
if (!condScalarType) {
|
||||
Error(cond_->Tok(), "condition must be tile or scalar");
|
||||
}
|
||||
|
||||
auto lhsType = TryExtractScalarType(this, exprTrue_);
|
||||
auto rhsType = TryExtractScalarType(this, exprFalse_);
|
||||
if (lhsType->ToArithm() && rhsType->ToArithm()) {
|
||||
|
@@ -62,7 +62,7 @@ static void VError(const SourceLocation& loc,
|
||||
fprintf(stderr, "\n ");
|
||||
for (unsigned i = 1; i + nspaces < loc.column_; ++i)
|
||||
fputc(' ', stderr);
|
||||
fprintf(stderr, ANSI_COLOR_GREEN "^\n");
|
||||
fprintf(stderr, "^\n");
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
|
@@ -395,7 +395,8 @@ std::string function::preheader() {
|
||||
#define __aligned(A) __attribute__((aligned(A)))
|
||||
#define __multipleof(A) __attribute__((multipleof(A)))
|
||||
|
||||
#define INFINITY bitcast<float>(0x7F800000)
|
||||
#define F32_INFINITY bitcast<float>(0x7F800000)
|
||||
#define F16_INFINITY bitcast<half>((int16)0x7C00)
|
||||
|
||||
extern int atomic_cas(int*, int, int);
|
||||
extern int atomic_xchg(int*, int);
|
||||
|
Reference in New Issue
Block a user