31 lines
650 B
C++
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);
|
|
}
|