|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| googletest/ | H | 25-Apr-2025 | - | 29,794 | 19,164 |
| CMakeLists.txt | H A D | 25-Apr-2025 | 5.3 KiB | 183 | 154 |
| GmmAuxTableULT.cpp | H A D | 25-Apr-2025 | 7.6 KiB | 266 | 173 |
| GmmAuxTableULT.h | H A D | 25-Apr-2025 | 8.1 KiB | 253 | 190 |
| GmmCachePolicyULT.cpp | H A D | 25-Apr-2025 | 5.7 KiB | 146 | 87 |
| GmmCachePolicyULT.h | H A D | 25-Apr-2025 | 1.5 KiB | 37 | 11 |
| GmmCommonULT.cpp | H A D | 25-Apr-2025 | 3.7 KiB | 120 | 77 |
| GmmCommonULT.h | H A D | 25-Apr-2025 | 2 KiB | 52 | 22 |
| GmmGen10CachePolicyULT.cpp | H A D | 25-Apr-2025 | 1.4 KiB | 34 | 8 |
| GmmGen10CachePolicyULT.h | H A D | 25-Apr-2025 | 1.3 KiB | 31 | 5 |
| GmmGen10ResourceULT.cpp | H A D | 25-Apr-2025 | 11 KiB | 226 | 137 |
| GmmGen10ResourceULT.h | H A D | 25-Apr-2025 | 1.4 KiB | 32 | 8 |
| GmmGen11CachePolicyULT.cpp | H A D | 25-Apr-2025 | 8.3 KiB | 190 | 120 |
| GmmGen11CachePolicyULT.h | H A D | 25-Apr-2025 | 1.5 KiB | 38 | 12 |
| GmmGen11ResourceULT.cpp | H A D | 25-Apr-2025 | 29.7 KiB | 721 | 457 |
| GmmGen11ResourceULT.h | H A D | 25-Apr-2025 | 1.4 KiB | 31 | 8 |
| GmmGen12CachePolicyULT.cpp | H A D | 25-Apr-2025 | 11.5 KiB | 239 | 163 |
| GmmGen12CachePolicyULT.h | H A D | 25-Apr-2025 | 1.5 KiB | 38 | 12 |
| GmmGen12ResourceULT.cpp | H A D | 25-Apr-2025 | 149 KiB | 2,938 | 2,166 |
| GmmGen12ResourceULT.h | H A D | 25-Apr-2025 | 2.2 KiB | 40 | 15 |
| GmmGen12dGPUCachePolicyULT.cpp | H A D | 25-Apr-2025 | 9.4 KiB | 240 | 165 |
| GmmGen12dGPUCachePolicyULT.h | H A D | 25-Apr-2025 | 2.3 KiB | 59 | 30 |
| GmmGen12dGPUResourceULT.cpp | H A D | 25-Apr-2025 | 157.5 KiB | 3,255 | 2,355 |
| GmmGen12dGPUResourceULT.h | H A D | 25-Apr-2025 | 2.1 KiB | 40 | 15 |
| GmmGen9CachePolicyULT.cpp | H A D | 25-Apr-2025 | 6.7 KiB | 153 | 92 |
| GmmGen9CachePolicyULT.h | H A D | 25-Apr-2025 | 1.5 KiB | 38 | 11 |
| GmmGen9ResourceULT.cpp | H A D | 25-Apr-2025 | 190.2 KiB | 4,256 | 3,231 |
| GmmGen9ResourceULT.h | H A D | 25-Apr-2025 | 6.3 KiB | 132 | 62 |
| GmmMultiAdapterULT.cpp | H A D | 25-Apr-2025 | 21.8 KiB | 609 | 431 |
| GmmMultiAdapterULT.h | H A D | 25-Apr-2025 | 3 KiB | 102 | 61 |
| GmmResourceCpuBltULT.cpp | H A D | 25-Apr-2025 | 2.2 KiB | 70 | 26 |
| GmmResourceULT.cpp | H A D | 25-Apr-2025 | 153.2 KiB | 3,498 | 2,519 |
| GmmResourceULT.h | H A D | 25-Apr-2025 | 23.2 KiB | 626 | 374 |
| GmmULT.cpp | H A D | 25-Apr-2025 | 1.5 KiB | 43 | 13 |
| GmmXe2_LPGResourceULT.cpp | H A D | 25-Apr-2025 | 12.1 KiB | 249 | 175 |
| GmmXe2_LPGResourceULT.h | H A D | 25-Apr-2025 | 1.5 KiB | 38 | 12 |
| GmmXe_LPGCachePolicyULT.cpp | H A D | 25-Apr-2025 | 12.6 KiB | 301 | 213 |
| GmmXe_LPGCachePolicyULT.h | H A D | 25-Apr-2025 | 1.7 KiB | 41 | 16 |
| ReadMe.txt | H A D | 25-Apr-2025 | 4 KiB | 83 | 63 |
| stdafx.h | H A D | 25-Apr-2025 | 2.7 KiB | 85 | 47 |
| targetver.h | H A D | 25-Apr-2025 | 1.5 KiB | 35 | 4 |
ReadMe.txt
1========================================================================
2 CONSOLE APPLICATION : GmmLibULT Project Overview
3========================================================================
4GMM ULT for the GMM Cache Policy.
5
6
7GmmLibULT.vcxproj
8 This is the main project file.
9
10GmmLibULT.vcxproj.filters
11 This is the filters file for VC++ project.
12 It contains information about the association between the files in your project
13 and the filters. This association is used in the IDE to show grouping of files with
14 similar extensions under a specific node (for e.g. ".cpp" files are associated with the
15 "Source Files" filter).
16
17GmmLibULT.cpp
18 This is the main application source file.
19
20/////////////////////////////////////////////////////////////////////////////
21Other standard files:
22
23StdAfx.h, StdAfx.cpp
24 These files are used to build a precompiled header (PCH) file
25 named GmmLibULT.pch and a precompiled types file named StdAfx.obj.
26
27/////////////////////////////////////////////////////////////////////////////
28Other notes:
29 This ULT is divided into 2 parts.
30 1. CompileTime ULT - Runs with every Gmmlib build and KMD build
31 How to trigger Test cases through commandline:
32 i. Run all Compile Time TestCases --> GmmULT.exe CTest*.*
33 ii.Run Specific TestCase --> GmmULT.exe CTestGen9CachePolicy.*
34
35 2. RunTime ULT - Runnable on Target system. Have to run it manually - not qualified to run on Host/Dev systems
36 How to trigger Test cases through commandline:
37 i. CachePolicy ULT --> GmmULT.exe RTestGen9CachePolicy.*
38 ii. Vulkan Generic Resource --> GmmULT.exe RTestVulkanResource.*Generic*
39 ii. Vulkan Sparse Resource --> GmmULT.exe RTestVulkanResource.*Sparse*
40 To Run the Test on target
41 i. Download Driver along with Test Tools, which has ExCITE DLL or build ExCITE DLL on your dev system with the installed driver source
42 ii. Install driver and copy DLL in either C:\Windows\System32 (for 64-bit app/DLL) or C:\Windows\SysWoW64 or place it in ULT executable Directory
43 iii. Specify commandline and run GMMULT.exe
44
45
46Test Case:
47 > Test Case is defined by FIXTURE class -> Test Case = FIXTURE Class
48 > Ex. class CTestResource : public testing::Test --> CTestResource is FIXTURE class
49
50Test:
51 > Test resides in FIXTURE. FIXTURE class has multiple tests
52 > Ex. TEST_F(CTestResource, test2DResource) --> test2DResource is a test of test case - CTestResource
53
54SetUp() vs SetUpTestCase()
55 > SetUp() -> gets called for all the tests in a test case. This is per-test setup/tear down
56 > SetUpTestCase() -> When multiple tests in a test case share resource or needs same set up, then instead of repeating set up
57 per test, SetUpTestCase gets called once per test case and all the tests inside a test case, use same set up.
58
59
60To exclude tests from execution
61 > --gtest_filter=POSTIVE_PATTERNS[-NEGATIVE_PATTERNS]
62 > Ex. --gtest_filter=-ABC.*:BCD.*
63
64
65What happens when test/test case is triggered
66 TEST_F(CTestGen9Resource, Test2DTileYResource) --> first instance of test in CTestGen9Resource FIXTURE test case
67 1. CTestGen9Resource::SetUpTestCase() --> this sets up platform --> This step is skipped if this is subsequence test instances in test case.
68 i. Calls CommonULT::SetUpTestCase() --> GmmInitGlobalContext() and other initialization
69 2. CTestResource::CTestResource()
70 3. CTestGen9Resource::CTestGen9Resource()
71 4. Test_F body --> test execution
72 5. CTestGen9Resource::~CTestGen9Resource()
73 6. CTestResource::~CTestResource( )
74 7. CommonULT::~CommonULT() --> Destroys Global Context
75 8. void CTestGen9Resource::TearDownTestCase() --> only if this is last instance of test in test case
76
77
78CompileTime cmdline: $(TargetDir)$(TargetFileName) --gtest_filter=CTestResource.Test2DTileYsResource
79
80To debug failures, add the following in the command line argument: --gtest_break_on_failure
81This will cause an assert to be hit whenever a test fails. You can use the call stack to go back to the failing test and debug.
82/////////////////////////////////////////////////////////////////////////////
83