Skip to content

Commit

Permalink
Stop using SE_PREDICT_TRUE in favor of the ABSL variant.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 681164608
  • Loading branch information
klucke authored and Google-ML-Automation committed Oct 1, 2024
1 parent 5964202 commit e31ec46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xla/stream_executor/rocm/rocm_dnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ limitations under the License.
#include <memory>

#include "absl/algorithm/container.h"
#include "absl/base/optimization.h"
#include "absl/base/thread_annotations.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
Expand Down Expand Up @@ -1966,7 +1967,7 @@ class MixinBase<void> {};
} // namespace

#define RETURN_IF_MIOPEN_ERROR(STATUS, ...) \
if (!SE_PREDICT_TRUE((STATUS) == miopenStatusSuccess)) { \
if (!ABSL_PREDICT_TRUE((STATUS) == miopenStatusSuccess)) { \
std::string error_msg = absl::StrCat(ToString(STATUS), " ", __VA_ARGS__); \
SetFailure(::absl::UnknownError(error_msg)); \
LOG(ERROR) << error_msg; \
Expand Down

0 comments on commit e31ec46

Please sign in to comment.