Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add macros to disable tests on GRM #64592

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions third_party/xla/xla/tests/test_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ limitations under the License.
#define DISABLED_ON_INTERPRETER_TSAN(X) X
#define DISABLED_ON_DEBUG(X) X
#define DISABLED_ON_TPU(X) X
#define DISABLED_ON_GRM(X) X

#define OVERSIZE_ON_GRM(X) X

// We need this macro instead of pasting directly to support nesting
// the DISABLED_ON_FOO macros, as in the definition of DISABLED_ON_CPU.
Expand Down Expand Up @@ -87,6 +90,14 @@ limitations under the License.
# define DISABLED_ON_TPU(X) XLA_TEST_PASTE(DISABLED_, X)
#endif // XLA_TEST_BACKEND_TPU

#ifdef XLA_TEST_BACKEND_GRM
# undef DISABLED_ON_GRM
# define DISABLED_ON_GRM(X) XLA_TEST_PASTE(DISABLED_, X)

# undef OVERSIZE_ON_GRM
# define OVERSIZE_ON_GRM(X) XLA_TEST_PASTE(DISABLED_, X)
#endif // XLA_TEST_BACKEND_GRM

// clang-format on

namespace xla {
Expand Down