Revert "Updating L0 loader to 1.2.3 in manifest"
This reverts commit 76666662c4
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
parent
234b401aab
commit
cac1b5465b
|
@ -0,0 +1,11 @@
|
|||
#
|
||||
# Copyright (C) 2020-2021 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
set(L0_EXTENSIONS_SRCS_API
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ze_exp_ext.cpp
|
||||
)
|
||||
set_property(GLOBAL PROPERTY L0_EXTENSIONS_SRCS_API ${L0_EXTENSIONS_SRCS_API})
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "level_zero/api/extensions/public/ze_exp_ext.h"
|
||||
|
||||
#include "level_zero/core/source/kernel/kernel.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
ZE_APIEXPORT ze_result_t ZE_APICALL
|
||||
zeKernelSetGlobalOffsetExp(
|
||||
ze_kernel_handle_t hKernel,
|
||||
uint32_t offsetX,
|
||||
uint32_t offsetY,
|
||||
uint32_t offsetZ) {
|
||||
return L0::Kernel::fromHandle(hKernel)->setGlobalOffsetExp(offsetX, offsetY, offsetZ);
|
||||
}
|
||||
|
||||
#if defined(__cplusplus)
|
||||
} // extern "C"
|
||||
#endif
|
|
@ -0,0 +1,68 @@
|
|||
/*
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <level_zero/ze_api.h>
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Intel 'oneAPI' Level-Zero Extension for supporting module programs.
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef ZE_MODULE_PROGRAM_EXP_NAME
|
||||
/// @brief Module Program Extension Name
|
||||
#define ZE_MODULE_PROGRAM_EXP_NAME "ZE_experimental_module_program"
|
||||
#endif // ZE_MODULE_PROGRAM_EXP_NAME
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Module Program Extension Version(s)
|
||||
typedef enum _ze_module_program_exp_version_t {
|
||||
ZE_MODULE_PROGRAM_EXP_VERSION_1_0 = ZE_MAKE_VERSION(1, 0), ///< version 1.0
|
||||
ZE_MODULE_PROGRAM_EXP_VERSION_CURRENT = ZE_MAKE_VERSION(1, 0), ///< latest known version
|
||||
ZE_MODULE_PROGRAM_EXP_VERSION_FORCE_UINT32 = 0x7fffffff
|
||||
|
||||
} ze_module_program_exp_version_t;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Module extended descriptor to support multiple input modules.
|
||||
///
|
||||
/// @details
|
||||
/// - Implementation must support ::ZE_experimental_module_program extension
|
||||
/// - pInputModules, pBuildFlags, and pConstants from ::ze_module_desc_t is
|
||||
/// ignored.
|
||||
/// - Format in ::ze_module_desc_t needs to be set to
|
||||
/// ::ZE_MODULE_FORMAT_IL_SPIRV.
|
||||
typedef struct _ze_module_program_exp_desc_t {
|
||||
ze_structure_type_t stype; ///< [in] type of this structure
|
||||
const void *pNext; ///< [in][optional] pointer to extension-specific structure
|
||||
uint32_t count; ///< [in] Count of input modules
|
||||
const size_t *inputSizes; ///< [in][range(0, count)] sizes of each input IL module in pInputModules.
|
||||
const uint8_t **pInputModules; ///< [in][range(0, count)] pointer to an array of IL (e.g. SPIR-V modules).
|
||||
///< Valid only for SPIR-V input.
|
||||
const char **pBuildFlags; ///< [in][optional][range(0, count)] array of strings containing build
|
||||
///< flags. See pBuildFlags in ::ze_module_desc_t.
|
||||
const ze_module_constants_t **pConstants; ///< [in][optional][range(0, count)] pointer to array of specialization
|
||||
///< constant strings. Valid only for SPIR-V input. This must be set to
|
||||
///< nullptr if no specialization constants are provided.
|
||||
|
||||
} ze_module_program_exp_desc_t;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Intel 'oneAPI' Level-Zero Extension for supporting global work offset
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#ifndef ZE_GLOBAL_OFFSET_EXP_NAME
|
||||
/// @brief Global Offset Extension Name
|
||||
#define ZE_GLOBAL_OFFSET_EXP_NAME "ZE_experimental_global_offset"
|
||||
#endif // ZE_GLOBAL_OFFSET_EXP_NAME
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Global work offset Extension Version(s)
|
||||
typedef enum _ze_global_offset_exp_version_t {
|
||||
ZE_GLOBAL_OFFSET_EXP_VERSION_1_0 = ZE_MAKE_VERSION(1, 0), ///< version 1.0
|
||||
ZE_GLOBAL_OFFSET_EXP_VERSION_CURRENT = ZE_MAKE_VERSION(1, 0), ///< latest known version
|
||||
ZE_GLOBAL_OFFSET_EXP_VERSION_FORCE_UINT32 = 0x7fffffff
|
||||
|
||||
} ze_global_offset_exp_version_t;
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include "shared/source/os_interface/os_library.h"
|
||||
|
||||
#include "level_zero/api/extensions/public/ze_exp_ext.h"
|
||||
#include "level_zero/core/source/driver/driver_handle.h"
|
||||
#include "level_zero/core/source/get_extension_function_lookup_map.h"
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
#include "shared/offline_compiler/source/ocloc_api.h"
|
||||
|
||||
#include "level_zero/api/extensions/public/ze_exp_ext.h"
|
||||
|
||||
#include "zello_common.h"
|
||||
|
||||
#include <dlfcn.h>
|
||||
|
|
|
@ -30,7 +30,7 @@ components:
|
|||
branch: master
|
||||
dest_dir: level_zero
|
||||
repository: https://github.com/oneapi-src/level-zero
|
||||
revision: v1.2.3
|
||||
revision: v1.1.0
|
||||
type: git
|
||||
libva:
|
||||
dest_dir: libva
|
||||
|
|
Loading…
Reference in New Issue