-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cpp
More file actions
38 lines (30 loc) · 794 Bytes
/
test.cpp
File metadata and controls
38 lines (30 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*!
\file test.cpp
\author Sho Ikeda
\brief LinearAlgebraMatrixTest fixture implementation for GPU compute shader tests
\copyright Copyright (c) 2026 Advanced Micro Devices, Inc. All Rights Reserved.
SPDX-License-Identifier: MIT
*/
#include "test.hpp"
#ifndef MINIDXNN_CPP_FALLBACK_ONLY
// Standard C++ library
#include <cstdint>
#include <iostream>
#include <string>
#include <vector>
// GFX
#include "gfx.h"
// Example
#include "common/gfx_utility.hpp"
namespace test {
auto LinearAlgebraMatrixTest::initializeTest() noexcept -> void
{
finalizeTest();
m_gfxContext = ex::createGfxContext(params().m_enableDebugMode);
}
auto LinearAlgebraMatrixTest::finalizeTest() noexcept -> void
{
m_gfxContext.reset();
}
} /* namespace test */
#endif // !MINIDXNN_CPP_FALLBACK_ONLY