mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
[xla:cpu:onednn] Skip failing tests on Aarch64 CPUs.
PiperOrigin-RevId: 826675056
This commit is contained in:
parent
0b5bc94a83
commit
00be2bc09e
1
third_party/xla/xla/service/cpu/tests/BUILD
vendored
1
third_party/xla/xla/service/cpu/tests/BUILD
vendored
|
|
@ -422,6 +422,7 @@ xla_cc_test(
|
||||||
"//xla/tsl/platform:test",
|
"//xla/tsl/platform:test",
|
||||||
"@com_google_absl//absl/strings:string_view",
|
"@com_google_absl//absl/strings:string_view",
|
||||||
"@com_google_googletest//:gtest_main",
|
"@com_google_googletest//:gtest_main",
|
||||||
|
"@local_tsl//tsl/platform:platform_port",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ limitations under the License.
|
||||||
#include "xla/error_spec.h"
|
#include "xla/error_spec.h"
|
||||||
#include "xla/tests/hlo_test_base.h"
|
#include "xla/tests/hlo_test_base.h"
|
||||||
#include "xla/tsl/platform/test.h"
|
#include "xla/tsl/platform/test.h"
|
||||||
|
#include "tsl/platform/cpu_info.h"
|
||||||
|
|
||||||
namespace xla::cpu {
|
namespace xla::cpu {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
@ -26,7 +27,8 @@ using OneDnnFusionTest = HloTestBase;
|
||||||
|
|
||||||
inline constexpr bool IsOneDnnGraphEnabled() {
|
inline constexpr bool IsOneDnnGraphEnabled() {
|
||||||
#if defined(XLA_ONEDNN_USE_GRAPH_API)
|
#if defined(XLA_ONEDNN_USE_GRAPH_API)
|
||||||
return true;
|
// Some Aarch64 CPUs have failures. Only test on x86 for now.
|
||||||
|
return tsl::port::IsX86CPU();
|
||||||
#endif // XLA_ONEDNN_USE_GRAPH_API
|
#endif // XLA_ONEDNN_USE_GRAPH_API
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user