mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
Do not run SVMMemoryAllocator tests if SVM not supported
Skip tests: - SVMMemoryAllocatorTest - SVMLocalMemoryAllocatorTest Related-To: NEO-3157 Change-Id: I3f14f71ec3cccaa1925423527cd6bc7ab018f8c5 Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
2b09ed85d6
commit
501bc88368
@ -20,6 +20,10 @@ struct SVMMemoryAllocatorFixture {
|
||||
SVMMemoryAllocatorFixture() : executionEnvironment(*platformDevices) {}
|
||||
|
||||
virtual void SetUp() {
|
||||
bool svmSupported = executionEnvironment.getHardwareInfo()->capabilityTable.ftrSvm;
|
||||
if (!svmSupported) {
|
||||
GTEST_SKIP();
|
||||
}
|
||||
memoryManager = std::make_unique<MockMemoryManager>(false, enableLocalMemory, executionEnvironment);
|
||||
svmManager = std::make_unique<MockSVMAllocsManager>(memoryManager.get());
|
||||
}
|
||||
|
Reference in New Issue
Block a user