Name Date Size #Lines LOC

..--

googletest/H25-Apr-2025-29,79419,164

CMakeLists.txtH A D25-Apr-20255.3 KiB183154

GmmAuxTableULT.cppH A D25-Apr-20257.6 KiB266173

GmmAuxTableULT.hH A D25-Apr-20258.1 KiB253190

GmmCachePolicyULT.cppH A D25-Apr-20255.7 KiB14687

GmmCachePolicyULT.hH A D25-Apr-20251.5 KiB3711

GmmCommonULT.cppH A D25-Apr-20253.7 KiB12077

GmmCommonULT.hH A D25-Apr-20252 KiB5222

GmmGen10CachePolicyULT.cppH A D25-Apr-20251.4 KiB348

GmmGen10CachePolicyULT.hH A D25-Apr-20251.3 KiB315

GmmGen10ResourceULT.cppH A D25-Apr-202511 KiB226137

GmmGen10ResourceULT.hH A D25-Apr-20251.4 KiB328

GmmGen11CachePolicyULT.cppH A D25-Apr-20258.3 KiB190120

GmmGen11CachePolicyULT.hH A D25-Apr-20251.5 KiB3812

GmmGen11ResourceULT.cppH A D25-Apr-202529.7 KiB721457

GmmGen11ResourceULT.hH A D25-Apr-20251.4 KiB318

GmmGen12CachePolicyULT.cppH A D25-Apr-202511.5 KiB239163

GmmGen12CachePolicyULT.hH A D25-Apr-20251.5 KiB3812

GmmGen12ResourceULT.cppH A D25-Apr-2025149 KiB2,9382,166

GmmGen12ResourceULT.hH A D25-Apr-20252.2 KiB4015

GmmGen12dGPUCachePolicyULT.cppH A D25-Apr-20259.4 KiB240165

GmmGen12dGPUCachePolicyULT.hH A D25-Apr-20252.3 KiB5930

GmmGen12dGPUResourceULT.cppH A D25-Apr-2025157.5 KiB3,2552,355

GmmGen12dGPUResourceULT.hH A D25-Apr-20252.1 KiB4015

GmmGen9CachePolicyULT.cppH A D25-Apr-20256.7 KiB15392

GmmGen9CachePolicyULT.hH A D25-Apr-20251.5 KiB3811

GmmGen9ResourceULT.cppH A D25-Apr-2025190.2 KiB4,2563,231

GmmGen9ResourceULT.hH A D25-Apr-20256.3 KiB13262

GmmMultiAdapterULT.cppH A D25-Apr-202521.8 KiB609431

GmmMultiAdapterULT.hH A D25-Apr-20253 KiB10261

GmmResourceCpuBltULT.cppH A D25-Apr-20252.2 KiB7026

GmmResourceULT.cppH A D25-Apr-2025153.2 KiB3,4982,519

GmmResourceULT.hH A D25-Apr-202523.2 KiB626374

GmmULT.cppH A D25-Apr-20251.5 KiB4313

GmmXe2_LPGResourceULT.cppH A D25-Apr-202512.1 KiB249175

GmmXe2_LPGResourceULT.hH A D25-Apr-20251.5 KiB3812

GmmXe_LPGCachePolicyULT.cppH A D25-Apr-202512.6 KiB301213

GmmXe_LPGCachePolicyULT.hH A D25-Apr-20251.7 KiB4116

ReadMe.txtH A D25-Apr-20254 KiB8363

stdafx.hH A D25-Apr-20252.7 KiB8547

targetver.hH A D25-Apr-20251.5 KiB354

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