matmul_perf_table_gen.cc
imports xla/tsl/platform/env.himports xla/tsl/platform/errors.h
SHA-25619a79ec1f2575ad2f162159630c71c7d7baac5a74dd709ca0da78fcc72c2c12d
MaleculeMd(In₄)
Evidence
1/* Copyright 2025 The OpenXLA Authors.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is …
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16#include "xla/tools/matmul_perf_table_gen.h"
17
18#include <algorithm>
19#include <array>
20#include <cstddef>
21#include <cstdint>
22#include <iostream>
23#include <memory>
24#include <random>
25#include <string>
26#include <utility>
27#include <variant>
28#include <vector>
29
30#include "absl/container/btree_map.h"
31#include "absl/container/flat_hash_set.h"
32#include "absl/hash/hash.h"
33#include "absl/log/check.h"
34#include "absl/log/log.h"
35#include "absl/status/status.h"
36#include "absl/strings/match.h"
37#include "absl/strings/str_cat.h"
38#include "absl/strings/string_view.h"
39#include "absl/strings/substitute.h"
40#include "absl/time/time.h"
41#include "absl/types/span.h"
42#include "xla/debug_options_flags.h"
43#include "xla/hlo/ir/hlo_casting_utils.h"
44#include "xla/hlo/ir/hlo_instruction.h"
45#include "xla/hlo/ir/hlo_instructions.h"
46#include "xla/hlo/ir/hlo_module.h"
47#include "xla/hlo/ir/hlo_opcode.h"
48#include "xla/hlo/parser/hlo_parser.h"
49#include "xla/hlo/utils/hlo_query.h"
50#include "xla/literal.h"
51#include "xla/primitive_util.h"
52#include "xla/service/gpu/model/hlo_op_profile.pb.h"
53#include "xla/service/gpu/model/hlo_op_profiler.h"
54#include "xla/service/gpu/model/hlo_op_profiles.h"
55#include "xla/service/gpu/model/matmul_interpolator_utils.h"
56#include "xla/service/hlo.pb.h"
57#include "xla/service/hlo_module_config.h"
58#include "xla/service/hlo_runner_interface.h"