test: introduce method for testing variant of walkers

This commit adds a pattern that removes the strong dependency
on the compile-time DefaultWalkerType typename in generic unit tests.

Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2024-07-03 14:44:03 +00:00
committed by Compute-Runtime-Automation
parent 2d1f4e6214
commit ac00ca60f7
10 changed files with 45 additions and 8 deletions

View File

@@ -14,6 +14,7 @@
#include <cstddef>
#include <cstring>
#include <variant>
template <class T>
struct CmdParse;
@@ -158,6 +159,8 @@ struct Gen9Family : public Gen9 {
static constexpr bool isHeaplessMode() {
return false;
}
using WalkerVariant = std::variant<GPGPU_WALKER *>;
};
} // namespace NEO