Files
Alex Duran 3619b971a1 [Offload][NFC] Move plugins under liboffload (#242364)
Liboffload is the only library calling the plugins directly now, so move
the code inside it to reflect this change.

Also, adjust the CMake targets to also reflect this change by moving
from omptarget prefixes to LLVMOffload ones.

Assisted by Claude.

---

<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>
2026-11-18 23:34:55 +01:00

42 lines
1.8 KiB
C

//===--- Level Zero Target RTL Implementation -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Level Zero compatibility layer enabling us to compile using new APIs.
//
//===----------------------------------------------------------------------===//
#ifndef OPENMP_LIBOMPTARGET_PLUGINS_NEXTGEN_LEVEL_ZERO_L0COMPAT_H
#define OPENMP_LIBOMPTARGET_PLUGINS_NEXTGEN_LEVEL_ZERO_L0COMPAT_H
#include "APIHelpers.h"
#include <level_zero/ze_api.h>
API_HELPER_OPTIONAL(ze_result_t, zeCommandListAppendLaunchKernelWithArguments,
ze_command_list_handle_t hCommandList,
ze_kernel_handle_t hKernel,
const ze_group_count_t groupCounts,
const ze_group_size_t groupSizes, void **pArguments,
const void *pNext, ze_event_handle_t hSignalEvent,
uint32_t numWaitEvents, ze_event_handle_t *phWaitEvents)
API_HELPER_OPTIONAL(ze_result_t, zeCommandListAppendHostFunction,
ze_command_list_handle_t hCommandList,
void *pfnHostFunction, void *pUserData, const void *pNext,
ze_event_handle_t hSignalEvent, uint32_t numWaitEvents,
ze_event_handle_t *phWaitEvents)
API_HELPER_OPTIONAL(ze_context_handle_t, zeDriverGetDefaultContext,
ze_driver_handle_t hDriver)
API_HELPER_OPTIONAL(ze_result_t, zeIntelGetDriverVersionString,
ze_driver_handle_t hDriver, char *pDriverVersion,
size_t *pVersionSize)
#endif // OPENMP_LIBOMPTARGET_PLUGINS_NEXTGEN_LEVEL_ZERO_L0COMPAT_H