Files
compute-runtime/unit_tests/command_queue/enqueue_kernel_global_offset_tests.cpp
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

31 lines
650 B
C++

/*
* Copyright (C) 2017-2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/command_queue/command_queue.h"
#include "unit_tests/fixtures/hello_world_fixture.h"
#include "gtest/gtest.h"
using namespace OCLRT;
typedef HelloWorldTest<HelloWorldFixtureFactory> GlobalWorkOffset;
TEST_F(GlobalWorkOffset, nullPointer) {
size_t globalWorkSize[3] = {1, 1, 1};
size_t localWorkSize[3] = {1, 1, 1};
auto retVal = pCmdQ->enqueueKernel(
pKernel,
1,
nullptr,
globalWorkSize,
localWorkSize,
0,
nullptr,
nullptr);
EXPECT_EQ(CL_SUCCESS, retVal);
}