Skip to content

Commit

Permalink
Always return in error detection macros. (#2175)
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Aug 27, 2024
1 parent 0443389 commit a9d8cee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
interface are now often better - although there are still cases
where you end up with hashed names. (#2172)

* In some cases, GPU failures would not be reported properly if a
previous failure was pending.

## [0.25.20]

### Added
Expand Down
2 changes: 1 addition & 1 deletion rts/c/backends/cuda.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ static char* get_failure_msg(int failure_idx, int64_t args[]);
if (serror) { \
if (!ctx->error) { \
ctx->error = serror; \
return bad; \
} else { \
free(serror); \
} \
return bad; \
} \
}

Expand Down
2 changes: 1 addition & 1 deletion rts/c/backends/hip.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ static char* get_failure_msg(int failure_idx, int64_t args[]);
if (serror) { \
if (!ctx->error) { \
ctx->error = serror; \
return bad; \
} else { \
free(serror); \
} \
return bad; \
} \
}

Expand Down
2 changes: 1 addition & 1 deletion rts/c/backends/opencl.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ static char* get_failure_msg(int failure_idx, int64_t args[]);
if (serror) { \
if (!ctx->error) { \
ctx->error = serror; \
return bad; \
} else { \
free(serror); \
} \
return bad; \
} \
}

Expand Down

0 comments on commit a9d8cee

Please sign in to comment.