Files
TheRock/compiler/amd-llvm/openmp/device/include/EmissaryIds.h
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

79 lines
2.2 KiB
C

//===- offload/DeviceRTL/include/EmissaryIds.h enum & headers ----- C++ ---===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
// Defines Emissary API identifiers. This header is used by both host
// and device compilations.
//
//===----------------------------------------------------------------------===//
#ifndef OFFLOAD_EMISSARY_IDS_H
#define OFFLOAD_EMISSARY_IDS_H
/// The sets of emissary APIs under development
typedef enum {
EMIS_ID_INVALID,
EMIS_ID_FORTRT,
EMIS_ID_PRINT,
EMIS_ID_MPI,
EMIS_ID_HDF5,
EMIS_ID_RESERVE,
} offload_emis_id_t;
typedef enum {
_print_INVALID,
_printf_idx,
_fprintf_idx,
_ockl_asan_report_idx,
} offload_emis_print_t;
/// The vargs function used by emissary API device stubs
unsigned long long _emissary_exec(unsigned long long, ...);
#define _PACK_EMIS_IDS(x, y) \
((unsigned long long)x << 32) | ((unsigned long long)y)
typedef enum {
_FortranAio_INVALID,
_FortranAioBeginExternalListOutput_idx,
_FortranAioOutputAscii_idx,
_FortranAioOutputInteger32_idx,
_FortranAioEndIoStatement_idx,
_FortranAioOutputInteger8_idx,
_FortranAioOutputInteger16_idx,
_FortranAioOutputInteger64_idx,
_FortranAioOutputReal32_idx,
_FortranAioOutputReal64_idx,
_FortranAioOutputComplex32_idx,
_FortranAioOutputComplex64_idx,
_FortranAioOutputLogical_idx,
_FortranAAbort_idx,
_FortranAStopStatementText_idx,
_FortranAioBeginExternalFormattedOutput_idx,
_FortranAStopStatement_idx,
} offload_emis_fortrt_idx;
/// This structure is created by emisExtractArgBuf to make it easier
/// to get values from the data buffer passed by rpc.
typedef struct {
unsigned int DataLen;
unsigned int NumArgs;
unsigned int emisid;
unsigned int emisfnid;
unsigned long long data_not_used;
char *keyptr;
char *argptr;
char *strptr;
} emisArgBuf_t;
typedef unsigned long long emis_return_t;
typedef unsigned long long emis_argptr_t;
typedef emis_return_t emisfn_t(void *, ...);
#define MAXVARGS 32
#endif // OFFLOAD_EMISSARY_IDS_H