#!/usr/bin/env bash set -ex SCRIPT_DIR=$(realpath "$(dirname "$0")") EXCLUDED_TESTS=( "HostMemoryAllocateTest.Numa" # Failing on RBE "*IotaR1Test*" # Taking too many CI nodes "NumericTestsForBlas/NumericTestsForBlas.Infinity/dot_tf32_tf32_f32_x3" "TritonAndBlasSupportForDifferentTensorSizes/TritonAndBlasSupportForDifferentTensorSizes.IsDotAlgorithmSupportedByTriton/dot_bf16_bf16_f32_x*" "F8E5M2Tests/DotAlgorithmSupportTest.AlgorithmIsSupportedFromCudaCapability/dot_any_f8_any_f8_f32_*" "DotOperationTestWithCublasLt_F16F32F64CF64/1.GeneralMatMulActivation" "MatmulTestWithCublas.GemmRewriter_RegressionTestF64" "TritonEmitterTest.ScaledDotIsSupportedByReferencePlatform" "SampleFileTest.Convolution" # https://wardite.cluster.engflow.com/invocations/default/c105260c-873a-4634-ab69-905a43ca5cf8 ) TAG_FILTERS=$("${SCRIPT_DIR}/rocm_tag_filters.sh") for arg in "$@"; do if [[ "$arg" == "--config=ci_multi_gpu" ]]; then TAG_FILTERS="${TAG_FILTERS},multi_gpu" fi if [[ "$arg" == "--config=ci_single_gpu" ]]; then TAG_FILTERS="${TAG_FILTERS},requires-gpu-rocm,requires-gpu-amd,-multi_gpu" fi if [[ "$arg" == "--config=ci_rocm_cpu" ]]; then TAG_FILTERS="${TAG_FILTERS},gpu,-requires-gpu-rocm,-requires-gpu-amd" fi done "${SCRIPT_DIR}/run_xla_ci_build.sh" \ "$@" \ --build_tag_filters="$TAG_FILTERS" \ --test_tag_filters="$TAG_FILTERS" \ --execution_log_compact_file=execution_log.binpb.zst \ --spawn_strategy=local \ --repo_env=REMOTE_GPU_TESTING=1 \ --repo_env=TF_ROCM_AMDGPU_TARGETS=gfx950 \ --remote_download_outputs=minimal \ --grpc_keepalive_time=30s \ --test_sharding_strategy=disabled \ --test_verbose_timeout_warnings \ --test_timeout=920,2400,7200,9600 \ --sandbox_add_mount_pair=/dev/null:/etc/ld.so.cache \ --curses=no \ --color=yes \ --jobs=30 \ --test_filter=-$( IFS=: echo "${EXCLUDED_TESTS[*]}" ) \ --cache_test_results=yes \ --nokeep_going \ --repo_env=TF_ROCM_RBE_SINGLE_GPU_POOL=linux_x64_gpu_do_gfx950 \ -- \ //xla/...