Files
compute-runtime/opencl/test/unit_test/test_macros/test_checks_ocl.h
Mateusz Jablonski 374863ba08 refactor: remove cl pipe related logic
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-02-25 17:56:53 +01:00

44 lines
1.3 KiB
C++

/*
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <memory>
namespace NEO {
class ClDevice;
class Context;
struct HardwareInfo;
struct RootDeviceEnvironment;
namespace TestChecks {
bool supportsSvm(const ClDevice *pClDevice);
bool supportsImages(const Context *pContext);
bool supportsOcl21(const std::unique_ptr<HardwareInfo> &pHardwareInfo);
bool supportsAuxResolves(const RootDeviceEnvironment &rootDeviceEnvironment);
} // namespace TestChecks
} // namespace NEO
#include "shared/test/common/test_macros/test_checks_shared.h"
#define REQUIRE_IMAGE_SUPPORT_OR_SKIP(param) \
auto hwInfo = castToObject<Context>(param)->getDevice(0)->getHardwareInfo(); \
if (!hwInfo.capabilityTable.supportsImages) { \
GTEST_SKIP(); \
}
#define REQUIRE_OCL_21_OR_SKIP(param) \
if (NEO::TestChecks::supportsOcl21(param) == false) { \
GTEST_SKIP(); \
}
#define REQUIRE_AUX_RESOLVES(rootDeviceEnvironment) \
if (NEO::TestChecks::supportsAuxResolves(rootDeviceEnvironment) == false) { \
GTEST_SKIP(); \
}