Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR #21234: [ROCm] Fix failing dot tests
Imported from GitHub PR #21234 Issue introduced here d1f63e2 The following tests failed to build: ``` //xla/tests:dot_operation_single_threaded_runtime_test_gpu_amd_any FAILED TO BUILD //xla/tests:dot_operation_test_autotune_disabled_gpu_amd_any FAILED TO BUILD //xla/tests:dot_operation_test_gpu_amd_any FAILED TO BUILD ``` ...with: ``` [2025-01-09T01:19:37.573Z] xla/tests/dot_operation_test.cc:1014:24: error: there are no arguments to ‘CreateScalarMaxComputation’ that depend on a template parameter, so a declaration of ‘CreateScalarMaxComputation’ must be available [-fpermissive] [2025-01-09T01:19:37.573Z] 1014 | XlaComputation max = CreateScalarMaxComputation(F32, &builder); [2025-01-09T01:19:37.573Z] | ^~~~~~~~~~~~~~~~~~~~~~~~~~ [2025-01-09T01:19:37.573Z] xla/tests/dot_operation_test.cc:1014:24: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) [2025-01-09T01:19:37.573Z] xla/tests/dot_operation_test.cc: In instantiation of ‘void xla::{anonymous}::DotOperationTestWithCublasLt_F8_ScaledABScaledDWithDAmaxF8_Test<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_ = ml_dtypes::float8_internal::float8_e4m3fnuz]’: [2025-01-09T01:19:37.573Z] xla/tests/dot_operation_test.cc:986:1: required from here [2025-01-09T01:19:37.573Z] xla/tests/dot_operation_test.cc:1014:50: error: ‘CreateScalarMaxComputation’ was not declared in this scope [2025-01-09T01:19:37.573Z] 1014 | XlaComputation max = CreateScalarMaxComputation(F32, &builder); ``` Returning `"xla/hlo/builder/lib/arithmetic.h"` include fixed the problem. Copybara import of the project: -- 79efd63 by Milica Makevic <[email protected]>: Add "xla/hlo/builder/lib/arithmetic.h" include to dot_operation_test Merging this change closes #21234 COPYBARA_INTEGRATE_REVIEW=#21234 from ROCm:ci_fix_dot_operation_test 79efd63 PiperOrigin-RevId: 713975031
- Loading branch information