Remove unused test

Related-To: NEO-2236

Change-Id: I588078d9c22ab9dc721158e4dcd1a7314322c420
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
Adam Cetnerowski
2019-09-04 18:38:55 +02:00
committed by sys_ocldev
parent aa49a71d7a
commit 3dcef0d2e0
6 changed files with 3 additions and 107 deletions

View File

@ -7,11 +7,9 @@
set(IGDRCL_SRCS_tests_command_queue
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/buffer_operations_fixture.h
${CMAKE_CURRENT_SOURCE_DIR}/buffer_operations_withAsyncGPU_fixture.h
${CMAKE_CURRENT_SOURCE_DIR}/command_queue_hw_tests.cpp
${CMAKE_CURRENT_SOURCE_DIR}/command_queue_tests.cpp
${CMAKE_CURRENT_SOURCE_DIR}/dispatch_walker_tests.cpp
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_api_tests_mt_with_asyncGPU.cpp
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_barrier_tests.cpp
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_command_without_kernel_tests.cpp
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_copy_buffer_event_tests.cpp

View File

@ -1,30 +0,0 @@
/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "runtime/helpers/options.h"
#include "buffer_operations_fixture.h"
namespace NEO {
struct AsyncGPUoperations : public EnqueueWriteBufferTypeTest {
void SetUp() override {
storeInitHWTag = initialHardwareTag;
initialHardwareTag = 0;
EnqueueWriteBufferTypeTest::SetUp();
}
void TearDown() override {
initialHardwareTag = storeInitHWTag;
EnqueueWriteBufferTypeTest::TearDown();
}
protected:
int storeInitHWTag;
};
} // namespace NEO

View File

@ -1,67 +0,0 @@
/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/helpers/aligned_memory.h"
#include "runtime/memory_manager/graphics_allocation.h"
#include "runtime/os_interface/os_context.h"
#include "test.h"
#include "buffer_operations_withAsyncGPU_fixture.h"
#include <thread>
using namespace NEO;
HWTEST_F(AsyncGPUoperations, MapBufferAfterWriteBuffer) {
auto sizeOfBuffer = static_cast<int>(BufferDefaults::sizeInBytes);
auto ptrMemory = static_cast<char *>(alignedMalloc(sizeOfBuffer, MemoryConstants::preferredAlignment));
//fill the inputs with data
for (int i = 0; i < sizeOfBuffer; i++) {
ptrMemory[i] = static_cast<char>(i);
}
//call WriteBuffer to have initial tagSetup
enqueueWriteBuffer<FamilyType>(false, ptrMemory, sizeOfBuffer);
auto bufferMemory = srcBuffer->getCpuAddress();
EXPECT_NE(nullptr, bufferMemory);
EXPECT_EQ(false, srcBuffer->isMemObjZeroCopy());
int currentTag = pCmdQ->getHwTag();
EXPECT_GT(currentTag, -1);
auto tagAddress = pCmdQ->getHwTagAddress();
EXPECT_NE(nullptr, const_cast<uint32_t *>(tagAddress));
volatile int sleepTime = 10000;
std::atomic<bool> ThreadStarted(false);
std::thread t([&]() {
ThreadStarted = true;
while (sleepTime--)
;
memcpy_s(bufferMemory, sizeOfBuffer, ptrMemory, sizeOfBuffer);
*tagAddress += 2;
});
//wait for the thread to start
while (!ThreadStarted)
;
auto retPtr = EnqueueMapBufferHelper<>::enqueueMapBuffer(pCmdQ, srcBuffer.get());
EXPECT_NE(nullptr, retPtr);
char *outputPtr = static_cast<char *>(retPtr);
//check if MapBuffer waited for GPU to feed the data
for (int i = 0; i < sizeOfBuffer; i++) {
EXPECT_EQ(outputPtr[i], ptrMemory[i]);
}
t.join();
srcBuffer->getGraphicsAllocation()->updateTaskCount(0u, pCmdQ->getGpgpuCommandStreamReceiver().getOsContext().getContextId());
alignedFree(ptrMemory);
}