xla_deviceless_compile_lib_test.cc
imports tsl/platform/path.himports xla/tsl/platform/env.h
SHA-2568be2380d2a8ee5a56966a67bf61a587c1d64cead1d75157dd58f8d685430f6a1
MaleculeMd₂(In₅Pa)
Evidence
1/* Copyright 2023 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 <memory>
17#include <optional>
18#include <string>
19#include <utility>
20
21#include <gmock/gmock.h>
22#include <gtest/gtest.h>
23#include "absl/status/status_matchers.h"
24#include "absl/status/statusor.h"
25#include "xla/backends/gpu/target_config/target_config.h"
26#include "xla/hlo/ir/hlo_instruction.h"
27#include "xla/hlo/ir/hlo_module.h"
28#include "xla/hlo/parser/hlo_parser.h"
29#include "xla/service/compiler.h"
30#include "xla/service/platform_util.h"
31#include "xla/service/symbol_repository.h"
32#include "xla/service/xla_compile_result.pb.h"
33#include "xla/stream_executor/device_description.pb.h"
34#include "xla/tools/xla_compile_lib.h"
35#include "xla/tsl/platform/env.h"
36#include "xla/tsl/platform/errors.h"
37#include "xla/tsl/platform/statusor.h"
38#include "xla/tsl/platform/test.h"
39#include "xla/xla.pb.h"
40#include "tsl/platform/path.h"
41
42namespace xla {
⋯6 lines
85:65… , result),
86 absl_testing::IsOkAndHolds(Not(IsEmpty())));
87 EXPECT_TRUE(result.has_hlo_module()) << result.DebugString();
88}
89
90INSTANTIATE_TEST_SUITE_P(XlaDevicelessCompileLibTest,
91 …