mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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>
32 lines
809 B
C++
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);
|
|
}
|
|
}
|
|
};
|