Files
compute-runtime/unit_tests/mocks/mock_mdi.h
Artur Harasimiuk 40146291ad Update copyright headers
Updating files modified in 2018 only. Older files remain with old style
copyright header

Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-09-20 18:02:35 +02:00

32 lines
809 B
C++

/*
* Copyright (C) 2017-2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "runtime/helpers/dispatch_info.h"
using namespace OCLRT;
class MockMultiDispatchInfo : public MultiDispatchInfo {
public:
MockMultiDispatchInfo(Kernel *kernel) : MultiDispatchInfo(kernel) {
DispatchInfo di(kernel, 1, {100, 1, 1}, {10, 1, 1}, {0, 0, 0});
dispatchInfos.push_back(di);
}
MockMultiDispatchInfo(std::vector<Kernel *> kernels) {
for (auto kernel : kernels) {
DispatchInfo di(kernel, 1, {100, 1, 1}, {10, 1, 1}, {0, 0, 0});
dispatchInfos.push_back(di);
}
}
MockMultiDispatchInfo(std::vector<DispatchInfo *> dis) {
for (auto di : dis) {
dispatchInfos.push_back(*di);
}
}
};