mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Remove unused test
Related-To: NEO-2236 Change-Id: I588078d9c22ab9dc721158e4dcd1a7314322c420 Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
aa49a71d7a
commit
3dcef0d2e0
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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);
|
||||
}
|
||||
@@ -22,10 +22,6 @@ target_include_directories(igdrcl_mt_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
add_subdirectories()
|
||||
|
||||
#these tests fail because of data race, set '*' after fix problem
|
||||
set(GTEST_FILTER "-AsyncGPUoperations.MapBufferAfterWriteBuffer")
|
||||
MESSAGE(STATUS "GTest filter for mt tests:" ${GTEST_FILTER} )
|
||||
|
||||
target_link_libraries(igdrcl_mt_tests ${TSAN_LIB})
|
||||
target_link_libraries(igdrcl_mt_tests ${NEO_MOCKABLE_LIB_NAME})
|
||||
target_link_libraries(igdrcl_mt_tests gmock-gtest)
|
||||
@@ -74,7 +70,7 @@ function(run_mt_tests target slices subslices eu_per_ss)
|
||||
POST_BUILD
|
||||
COMMAND WORKING_DIRECTORY ${TargetDir}
|
||||
COMMAND echo "Running igdrcl_mt_tests ${target} ${slices}x${subslices}x${eu_per_ss}"
|
||||
COMMAND igdrcl_mt_tests --product ${target} --slices ${slices} --subslices ${subslices} --eu_per_ss ${eu_per_ss} --gtest_repeat=${GTEST_REPEAT} ${igdrcl_mt_tests_LISTENER_OPTION} --gtest_filter=${GTEST_FILTER}
|
||||
COMMAND igdrcl_mt_tests --product ${target} --slices ${slices} --subslices ${subslices} --eu_per_ss ${eu_per_ss} --gtest_repeat=${GTEST_REPEAT} ${igdrcl_mt_tests_LISTENER_OPTION}
|
||||
)
|
||||
endfunction()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2017-2018 Intel Corporation
|
||||
# Copyright (C) 2017-2019 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
@@ -9,7 +9,6 @@ set(IGDRCL_SRCS_mt_tests_command_queue
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
|
||||
# necessary dependencies from igdrcl_tests
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/command_queue/enqueue_api_tests_mt_with_asyncGPU.cpp
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/command_queue/enqueue_kernel_mt_tests.cpp
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/command_queue/enqueue_fixture.cpp
|
||||
${IGDRCL_SOURCE_DIR}/unit_tests/command_queue/ooq_task_tests_mt.cpp
|
||||
|
||||
Reference in New Issue
Block a user