2018-08-24 15:02:37 +02:00
|
|
|
/*
|
2021-07-01 21:07:56 +00:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2018-08-24 15:02:37 +02:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-08-24 15:02:37 +02:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2020-02-22 22:50:57 +01:00
|
|
|
#include "opencl/source/helpers/queue_helpers.h"
|
2018-08-24 15:02:37 +02:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2019-03-22 13:40:41 +01:00
|
|
|
bool isCommandWithoutKernel(uint32_t commandType) {
|
2020-08-20 19:07:45 +02:00
|
|
|
return ((commandType == CL_COMMAND_BARRIER) ||
|
|
|
|
|
(commandType == CL_COMMAND_MARKER) ||
|
2019-03-22 13:40:41 +01:00
|
|
|
(commandType == CL_COMMAND_MIGRATE_MEM_OBJECTS) ||
|
2020-08-20 19:07:45 +02:00
|
|
|
(commandType == CL_COMMAND_SVM_FREE) ||
|
2019-03-22 13:40:41 +01:00
|
|
|
(commandType == CL_COMMAND_SVM_MAP) ||
|
2020-08-20 19:07:45 +02:00
|
|
|
(commandType == CL_COMMAND_SVM_MIGRATE_MEM) ||
|
|
|
|
|
(commandType == CL_COMMAND_SVM_UNMAP));
|
2019-03-22 13:40:41 +01:00
|
|
|
}
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|