sycl_executor_test.cc
Google Test frameworkimports xla/tsl/platform/status_matchers.h
SHA-256ccbf09e12935f802227b6621275dc0b934c5a375b9184dc109f2faf228b91a53
MaleculeMd₂(In₂Pa)
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/stream_executor/sycl/sycl_executor.h"
17
18#include <fstream>
19
20#include <gmock/gmock.h>
21#include <gtest/gtest.h>
22#include "xla/backends/gpu/runtime/kernel_thunk.h"
23#include "xla/backends/gpu/runtime/thunk_executor.h"
24#include "xla/debug_options_flags.h"
25#include "xla/service/executable.h"
26#include "xla/service/gpu/gpu_executable.h"
27#include "xla/stream_executor/device_description.h"
28#include "xla/stream_executor/platform_manager.h"
29#include "xla/stream_executor/sycl/sycl_platform_id.h"
30#include "xla/tests/llvm_irgen_test_base.h"
31#include "xla/tsl/platform/status_matchers.h"
32#include "xla/tsl/platform/statusor.h"
33
34namespace stream_executor::sycl {
⋯6 lines
47:11… tel-tf): Add unit tests for DeviceDescription once it is ready.
48TEST_F(SyclExecutorTest, GetSyclKernel) {
49 TF_ASSERT_OK_AND_ASSIGN(Platform * platform,
50 stream_executor::Pl …
76:12… ::gpu::ThunkExecutor& seq_thunk = gpu_exec->thunk_executor();
77 EXPECT_EQ(seq_thunk.thunks().size(), 1);
78
79 const xla::gpu::Thunk* thunk = seq_thunk.thunks().at(0).get();
80 ASSERT_NE(thunk, nullptr);
81 …