Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libexslt/__init__.py +0 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libexslt/exslt.h +108 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libexslt/exsltconfig.h +70 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/__init__.py +0 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/attributes.h +39 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/documents.h +93 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/extensions.h +262 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/extra.h +72 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/functions.h +78 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/imports.h +75 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/keys.h +53 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/namespaces.h +68 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/pattern.h +84 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/security.h +104 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/templates.h +77 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/transform.h +207 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/variables.h +118 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/xslt.h +110 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/xsltInternals.h +1995 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/xsltconfig.h +146 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/xsltlocale.h +44 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/xsltutils.h +343 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/builtin_types.h +64 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cuda_awbarrier_primitives.h +109 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cuda_fp16.hpp +0 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cuda_pipeline.h +224 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cuda_pipeline_helpers.h +373 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cuda_runtime.h +0 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cuda_runtime_api.h +0 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cupti_callbacks.h +863 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cupti_checkpoint.h +127 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cupti_driver_cbid.h +799 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/generated_cuda_gl_interop_meta.h +71 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/nvfunctional +60 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/sm_20_intrinsics.h +1156 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/surface_indirect_functions.h +243 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/surface_types.h +111 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/texture_fetch_functions.h +223 -0
- Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/vector_functions.hpp +316 -0
- URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/__init__.pxd +0 -0
- URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/__init__.py +5 -0
- URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/__pycache__/__init__.cpython-312.pyc +0 -0
- URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/__pycache__/_version.cpython-312.pyc +0 -0
- URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/_bindings/__init__.py +0 -0
- URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/_bindings/__pycache__/__init__.cpython-312.pyc +0 -0
- URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/_bindings/cydriver.cpp +0 -0
- URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/_bindings/cydriver.pxd +951 -0
- URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/_bindings/cydriver.pyx +0 -0
- URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/_bindings/cynvrtc.cpp +0 -0
- URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/_bindings/cynvrtc.cpython-312-x86_64-linux-gnu.so +0 -0
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libexslt/__init__.py
ADDED
|
File without changes
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libexslt/exslt.h
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: main header file
|
| 3 |
+
*
|
| 4 |
+
* Copy: See Copyright for the status of this software.
|
| 5 |
+
*/
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
#ifndef __EXSLT_H__
|
| 9 |
+
#define __EXSLT_H__
|
| 10 |
+
|
| 11 |
+
#include <libxml/tree.h>
|
| 12 |
+
#include <libxml/xpath.h>
|
| 13 |
+
#include "exsltexports.h"
|
| 14 |
+
#include <libexslt/exsltconfig.h>
|
| 15 |
+
|
| 16 |
+
#ifdef __cplusplus
|
| 17 |
+
extern "C" {
|
| 18 |
+
#endif
|
| 19 |
+
|
| 20 |
+
EXSLTPUBVAR const char *exsltLibraryVersion;
|
| 21 |
+
EXSLTPUBVAR const int exsltLibexsltVersion;
|
| 22 |
+
EXSLTPUBVAR const int exsltLibxsltVersion;
|
| 23 |
+
EXSLTPUBVAR const int exsltLibxmlVersion;
|
| 24 |
+
|
| 25 |
+
/**
|
| 26 |
+
* EXSLT_COMMON_NAMESPACE:
|
| 27 |
+
*
|
| 28 |
+
* Namespace for EXSLT common functions
|
| 29 |
+
*/
|
| 30 |
+
#define EXSLT_COMMON_NAMESPACE ((const xmlChar *) "http://exslt.org/common")
|
| 31 |
+
/**
|
| 32 |
+
* EXSLT_CRYPTO_NAMESPACE:
|
| 33 |
+
*
|
| 34 |
+
* Namespace for EXSLT crypto functions
|
| 35 |
+
*/
|
| 36 |
+
#define EXSLT_CRYPTO_NAMESPACE ((const xmlChar *) "http://exslt.org/crypto")
|
| 37 |
+
/**
|
| 38 |
+
* EXSLT_MATH_NAMESPACE:
|
| 39 |
+
*
|
| 40 |
+
* Namespace for EXSLT math functions
|
| 41 |
+
*/
|
| 42 |
+
#define EXSLT_MATH_NAMESPACE ((const xmlChar *) "http://exslt.org/math")
|
| 43 |
+
/**
|
| 44 |
+
* EXSLT_SETS_NAMESPACE:
|
| 45 |
+
*
|
| 46 |
+
* Namespace for EXSLT set functions
|
| 47 |
+
*/
|
| 48 |
+
#define EXSLT_SETS_NAMESPACE ((const xmlChar *) "http://exslt.org/sets")
|
| 49 |
+
/**
|
| 50 |
+
* EXSLT_FUNCTIONS_NAMESPACE:
|
| 51 |
+
*
|
| 52 |
+
* Namespace for EXSLT functions extension functions
|
| 53 |
+
*/
|
| 54 |
+
#define EXSLT_FUNCTIONS_NAMESPACE ((const xmlChar *) "http://exslt.org/functions")
|
| 55 |
+
/**
|
| 56 |
+
* EXSLT_STRINGS_NAMESPACE:
|
| 57 |
+
*
|
| 58 |
+
* Namespace for EXSLT strings functions
|
| 59 |
+
*/
|
| 60 |
+
#define EXSLT_STRINGS_NAMESPACE ((const xmlChar *) "http://exslt.org/strings")
|
| 61 |
+
/**
|
| 62 |
+
* EXSLT_DATE_NAMESPACE:
|
| 63 |
+
*
|
| 64 |
+
* Namespace for EXSLT date functions
|
| 65 |
+
*/
|
| 66 |
+
#define EXSLT_DATE_NAMESPACE ((const xmlChar *) "http://exslt.org/dates-and-times")
|
| 67 |
+
/**
|
| 68 |
+
* EXSLT_DYNAMIC_NAMESPACE:
|
| 69 |
+
*
|
| 70 |
+
* Namespace for EXSLT dynamic functions
|
| 71 |
+
*/
|
| 72 |
+
#define EXSLT_DYNAMIC_NAMESPACE ((const xmlChar *) "http://exslt.org/dynamic")
|
| 73 |
+
|
| 74 |
+
/**
|
| 75 |
+
* SAXON_NAMESPACE:
|
| 76 |
+
*
|
| 77 |
+
* Namespace for SAXON extensions functions
|
| 78 |
+
*/
|
| 79 |
+
#define SAXON_NAMESPACE ((const xmlChar *) "http://icl.com/saxon")
|
| 80 |
+
|
| 81 |
+
EXSLTPUBFUN void EXSLTCALL exsltCommonRegister (void);
|
| 82 |
+
#ifdef EXSLT_CRYPTO_ENABLED
|
| 83 |
+
EXSLTPUBFUN void EXSLTCALL exsltCryptoRegister (void);
|
| 84 |
+
#endif
|
| 85 |
+
EXSLTPUBFUN void EXSLTCALL exsltMathRegister (void);
|
| 86 |
+
EXSLTPUBFUN void EXSLTCALL exsltSetsRegister (void);
|
| 87 |
+
EXSLTPUBFUN void EXSLTCALL exsltFuncRegister (void);
|
| 88 |
+
EXSLTPUBFUN void EXSLTCALL exsltStrRegister (void);
|
| 89 |
+
EXSLTPUBFUN void EXSLTCALL exsltDateRegister (void);
|
| 90 |
+
EXSLTPUBFUN void EXSLTCALL exsltSaxonRegister (void);
|
| 91 |
+
EXSLTPUBFUN void EXSLTCALL exsltDynRegister(void);
|
| 92 |
+
|
| 93 |
+
EXSLTPUBFUN void EXSLTCALL exsltRegisterAll (void);
|
| 94 |
+
|
| 95 |
+
EXSLTPUBFUN int EXSLTCALL exsltDateXpathCtxtRegister (xmlXPathContextPtr ctxt,
|
| 96 |
+
const xmlChar *prefix);
|
| 97 |
+
EXSLTPUBFUN int EXSLTCALL exsltMathXpathCtxtRegister (xmlXPathContextPtr ctxt,
|
| 98 |
+
const xmlChar *prefix);
|
| 99 |
+
EXSLTPUBFUN int EXSLTCALL exsltSetsXpathCtxtRegister (xmlXPathContextPtr ctxt,
|
| 100 |
+
const xmlChar *prefix);
|
| 101 |
+
EXSLTPUBFUN int EXSLTCALL exsltStrXpathCtxtRegister (xmlXPathContextPtr ctxt,
|
| 102 |
+
const xmlChar *prefix);
|
| 103 |
+
|
| 104 |
+
#ifdef __cplusplus
|
| 105 |
+
}
|
| 106 |
+
#endif
|
| 107 |
+
#endif /* __EXSLT_H__ */
|
| 108 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libexslt/exsltconfig.h
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* exsltconfig.h: compile-time version information for the EXSLT library
|
| 3 |
+
*
|
| 4 |
+
* See Copyright for the status of this software.
|
| 5 |
+
*
|
| 6 |
+
* daniel@veillard.com
|
| 7 |
+
*/
|
| 8 |
+
|
| 9 |
+
#ifndef __XML_EXSLTCONFIG_H__
|
| 10 |
+
#define __XML_EXSLTCONFIG_H__
|
| 11 |
+
|
| 12 |
+
#ifdef __cplusplus
|
| 13 |
+
extern "C" {
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
+
/**
|
| 17 |
+
* LIBEXSLT_DOTTED_VERSION:
|
| 18 |
+
*
|
| 19 |
+
* the version string like "1.2.3"
|
| 20 |
+
*/
|
| 21 |
+
#define LIBEXSLT_DOTTED_VERSION "0.8.24"
|
| 22 |
+
|
| 23 |
+
/**
|
| 24 |
+
* LIBEXSLT_VERSION:
|
| 25 |
+
*
|
| 26 |
+
* the version number: 1.2.3 value is 10203
|
| 27 |
+
*/
|
| 28 |
+
#define LIBEXSLT_VERSION 824
|
| 29 |
+
|
| 30 |
+
/**
|
| 31 |
+
* LIBEXSLT_VERSION_STRING:
|
| 32 |
+
*
|
| 33 |
+
* the version number string, 1.2.3 value is "10203"
|
| 34 |
+
*/
|
| 35 |
+
#define LIBEXSLT_VERSION_STRING "824"
|
| 36 |
+
|
| 37 |
+
/**
|
| 38 |
+
* LIBEXSLT_VERSION_EXTRA:
|
| 39 |
+
*
|
| 40 |
+
* extra version information, used to show a Git commit description
|
| 41 |
+
*/
|
| 42 |
+
#define LIBEXSLT_VERSION_EXTRA ""
|
| 43 |
+
|
| 44 |
+
/**
|
| 45 |
+
* WITH_CRYPTO:
|
| 46 |
+
*
|
| 47 |
+
* Whether crypto support is configured into exslt
|
| 48 |
+
*/
|
| 49 |
+
#if 0
|
| 50 |
+
#define EXSLT_CRYPTO_ENABLED
|
| 51 |
+
#endif
|
| 52 |
+
|
| 53 |
+
/**
|
| 54 |
+
* ATTRIBUTE_UNUSED:
|
| 55 |
+
*
|
| 56 |
+
* This macro is used to flag unused function parameters to GCC
|
| 57 |
+
*/
|
| 58 |
+
#ifdef __GNUC__
|
| 59 |
+
#ifndef ATTRIBUTE_UNUSED
|
| 60 |
+
#define ATTRIBUTE_UNUSED __attribute__((unused))
|
| 61 |
+
#endif
|
| 62 |
+
#else
|
| 63 |
+
#define ATTRIBUTE_UNUSED
|
| 64 |
+
#endif
|
| 65 |
+
|
| 66 |
+
#ifdef __cplusplus
|
| 67 |
+
}
|
| 68 |
+
#endif
|
| 69 |
+
|
| 70 |
+
#endif /* __XML_EXSLTCONFIG_H__ */
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/__init__.py
ADDED
|
File without changes
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/attributes.h
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: interface for the XSLT attribute handling
|
| 3 |
+
* Description: this module handles the specificities of attribute
|
| 4 |
+
* and attribute groups processing.
|
| 5 |
+
*
|
| 6 |
+
* Copy: See Copyright for the status of this software.
|
| 7 |
+
*
|
| 8 |
+
* Author: Daniel Veillard
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
#ifndef __XML_XSLT_ATTRIBUTES_H__
|
| 12 |
+
#define __XML_XSLT_ATTRIBUTES_H__
|
| 13 |
+
|
| 14 |
+
#include <libxml/tree.h>
|
| 15 |
+
#include "xsltexports.h"
|
| 16 |
+
#include "xsltInternals.h"
|
| 17 |
+
|
| 18 |
+
#ifdef __cplusplus
|
| 19 |
+
extern "C" {
|
| 20 |
+
#endif
|
| 21 |
+
|
| 22 |
+
XSLTPUBFUN void XSLTCALL
|
| 23 |
+
xsltParseStylesheetAttributeSet (xsltStylesheetPtr style,
|
| 24 |
+
xmlNodePtr cur);
|
| 25 |
+
XSLTPUBFUN void XSLTCALL
|
| 26 |
+
xsltFreeAttributeSetsHashes (xsltStylesheetPtr style);
|
| 27 |
+
XSLTPUBFUN void XSLTCALL
|
| 28 |
+
xsltApplyAttributeSet (xsltTransformContextPtr ctxt,
|
| 29 |
+
xmlNodePtr node,
|
| 30 |
+
xmlNodePtr inst,
|
| 31 |
+
const xmlChar *attributes);
|
| 32 |
+
XSLTPUBFUN void XSLTCALL
|
| 33 |
+
xsltResolveStylesheetAttributeSet(xsltStylesheetPtr style);
|
| 34 |
+
#ifdef __cplusplus
|
| 35 |
+
}
|
| 36 |
+
#endif
|
| 37 |
+
|
| 38 |
+
#endif /* __XML_XSLT_ATTRIBUTES_H__ */
|
| 39 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/documents.h
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: interface for the document handling
|
| 3 |
+
* Description: implements document loading and cache (multiple
|
| 4 |
+
* document() reference for the same resources must
|
| 5 |
+
* be equal.
|
| 6 |
+
*
|
| 7 |
+
* Copy: See Copyright for the status of this software.
|
| 8 |
+
*
|
| 9 |
+
* Author: Daniel Veillard
|
| 10 |
+
*/
|
| 11 |
+
|
| 12 |
+
#ifndef __XML_XSLT_DOCUMENTS_H__
|
| 13 |
+
#define __XML_XSLT_DOCUMENTS_H__
|
| 14 |
+
|
| 15 |
+
#include <libxml/tree.h>
|
| 16 |
+
#include "xsltexports.h"
|
| 17 |
+
#include "xsltInternals.h"
|
| 18 |
+
|
| 19 |
+
#ifdef __cplusplus
|
| 20 |
+
extern "C" {
|
| 21 |
+
#endif
|
| 22 |
+
|
| 23 |
+
XSLTPUBFUN xsltDocumentPtr XSLTCALL
|
| 24 |
+
xsltNewDocument (xsltTransformContextPtr ctxt,
|
| 25 |
+
xmlDocPtr doc);
|
| 26 |
+
XSLTPUBFUN xsltDocumentPtr XSLTCALL
|
| 27 |
+
xsltLoadDocument (xsltTransformContextPtr ctxt,
|
| 28 |
+
const xmlChar *URI);
|
| 29 |
+
XSLTPUBFUN xsltDocumentPtr XSLTCALL
|
| 30 |
+
xsltFindDocument (xsltTransformContextPtr ctxt,
|
| 31 |
+
xmlDocPtr doc);
|
| 32 |
+
XSLTPUBFUN void XSLTCALL
|
| 33 |
+
xsltFreeDocuments (xsltTransformContextPtr ctxt);
|
| 34 |
+
|
| 35 |
+
XSLTPUBFUN xsltDocumentPtr XSLTCALL
|
| 36 |
+
xsltLoadStyleDocument (xsltStylesheetPtr style,
|
| 37 |
+
const xmlChar *URI);
|
| 38 |
+
XSLTPUBFUN xsltDocumentPtr XSLTCALL
|
| 39 |
+
xsltNewStyleDocument (xsltStylesheetPtr style,
|
| 40 |
+
xmlDocPtr doc);
|
| 41 |
+
XSLTPUBFUN void XSLTCALL
|
| 42 |
+
xsltFreeStyleDocuments (xsltStylesheetPtr style);
|
| 43 |
+
|
| 44 |
+
/*
|
| 45 |
+
* Hooks for document loading
|
| 46 |
+
*/
|
| 47 |
+
|
| 48 |
+
/**
|
| 49 |
+
* xsltLoadType:
|
| 50 |
+
*
|
| 51 |
+
* Enum defining the kind of loader requirement.
|
| 52 |
+
*/
|
| 53 |
+
typedef enum {
|
| 54 |
+
XSLT_LOAD_START = 0, /* loading for a top stylesheet */
|
| 55 |
+
XSLT_LOAD_STYLESHEET = 1, /* loading for a stylesheet include/import */
|
| 56 |
+
XSLT_LOAD_DOCUMENT = 2 /* loading document at transformation time */
|
| 57 |
+
} xsltLoadType;
|
| 58 |
+
|
| 59 |
+
/**
|
| 60 |
+
* xsltDocLoaderFunc:
|
| 61 |
+
* @URI: the URI of the document to load
|
| 62 |
+
* @dict: the dictionary to use when parsing that document
|
| 63 |
+
* @options: parsing options, a set of xmlParserOption
|
| 64 |
+
* @ctxt: the context, either a stylesheet or a transformation context
|
| 65 |
+
* @type: the xsltLoadType indicating the kind of loading required
|
| 66 |
+
*
|
| 67 |
+
* An xsltDocLoaderFunc is a signature for a function which can be
|
| 68 |
+
* registered to load document not provided by the compilation or
|
| 69 |
+
* transformation API themselve, for example when an xsl:import,
|
| 70 |
+
* xsl:include is found at compilation time or when a document()
|
| 71 |
+
* call is made at runtime.
|
| 72 |
+
*
|
| 73 |
+
* Returns the pointer to the document (which will be modified and
|
| 74 |
+
* freed by the engine later), or NULL in case of error.
|
| 75 |
+
*/
|
| 76 |
+
typedef xmlDocPtr (*xsltDocLoaderFunc) (const xmlChar *URI,
|
| 77 |
+
xmlDictPtr dict,
|
| 78 |
+
int options,
|
| 79 |
+
void *ctxt,
|
| 80 |
+
xsltLoadType type);
|
| 81 |
+
|
| 82 |
+
XSLTPUBFUN void XSLTCALL
|
| 83 |
+
xsltSetLoaderFunc (xsltDocLoaderFunc f);
|
| 84 |
+
|
| 85 |
+
/* the loader may be needed by extension libraries so it is exported */
|
| 86 |
+
XSLTPUBVAR xsltDocLoaderFunc xsltDocDefaultLoader;
|
| 87 |
+
|
| 88 |
+
#ifdef __cplusplus
|
| 89 |
+
}
|
| 90 |
+
#endif
|
| 91 |
+
|
| 92 |
+
#endif /* __XML_XSLT_DOCUMENTS_H__ */
|
| 93 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/extensions.h
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: interface for the extension support
|
| 3 |
+
* Description: This provide the API needed for simple and module
|
| 4 |
+
* extension support.
|
| 5 |
+
*
|
| 6 |
+
* Copy: See Copyright for the status of this software.
|
| 7 |
+
*
|
| 8 |
+
* Author: Daniel Veillard
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
#ifndef __XML_XSLT_EXTENSION_H__
|
| 12 |
+
#define __XML_XSLT_EXTENSION_H__
|
| 13 |
+
|
| 14 |
+
#include <libxml/xpath.h>
|
| 15 |
+
#include "xsltexports.h"
|
| 16 |
+
#include "xsltInternals.h"
|
| 17 |
+
|
| 18 |
+
#ifdef __cplusplus
|
| 19 |
+
extern "C" {
|
| 20 |
+
#endif
|
| 21 |
+
|
| 22 |
+
/**
|
| 23 |
+
* Extension Modules API.
|
| 24 |
+
*/
|
| 25 |
+
|
| 26 |
+
/**
|
| 27 |
+
* xsltInitGlobals:
|
| 28 |
+
*
|
| 29 |
+
* Initialize the global variables for extensions
|
| 30 |
+
*
|
| 31 |
+
*/
|
| 32 |
+
|
| 33 |
+
XSLTPUBFUN void XSLTCALL
|
| 34 |
+
xsltInitGlobals (void);
|
| 35 |
+
|
| 36 |
+
/**
|
| 37 |
+
* xsltStyleExtInitFunction:
|
| 38 |
+
* @ctxt: an XSLT stylesheet
|
| 39 |
+
* @URI: the namespace URI for the extension
|
| 40 |
+
*
|
| 41 |
+
* A function called at initialization time of an XSLT extension module.
|
| 42 |
+
*
|
| 43 |
+
* Returns a pointer to the module specific data for this transformation.
|
| 44 |
+
*/
|
| 45 |
+
typedef void * (*xsltStyleExtInitFunction) (xsltStylesheetPtr style,
|
| 46 |
+
const xmlChar *URI);
|
| 47 |
+
|
| 48 |
+
/**
|
| 49 |
+
* xsltStyleExtShutdownFunction:
|
| 50 |
+
* @ctxt: an XSLT stylesheet
|
| 51 |
+
* @URI: the namespace URI for the extension
|
| 52 |
+
* @data: the data associated to this module
|
| 53 |
+
*
|
| 54 |
+
* A function called at shutdown time of an XSLT extension module.
|
| 55 |
+
*/
|
| 56 |
+
typedef void (*xsltStyleExtShutdownFunction) (xsltStylesheetPtr style,
|
| 57 |
+
const xmlChar *URI,
|
| 58 |
+
void *data);
|
| 59 |
+
|
| 60 |
+
/**
|
| 61 |
+
* xsltExtInitFunction:
|
| 62 |
+
* @ctxt: an XSLT transformation context
|
| 63 |
+
* @URI: the namespace URI for the extension
|
| 64 |
+
*
|
| 65 |
+
* A function called at initialization time of an XSLT extension module.
|
| 66 |
+
*
|
| 67 |
+
* Returns a pointer to the module specific data for this transformation.
|
| 68 |
+
*/
|
| 69 |
+
typedef void * (*xsltExtInitFunction) (xsltTransformContextPtr ctxt,
|
| 70 |
+
const xmlChar *URI);
|
| 71 |
+
|
| 72 |
+
/**
|
| 73 |
+
* xsltExtShutdownFunction:
|
| 74 |
+
* @ctxt: an XSLT transformation context
|
| 75 |
+
* @URI: the namespace URI for the extension
|
| 76 |
+
* @data: the data associated to this module
|
| 77 |
+
*
|
| 78 |
+
* A function called at shutdown time of an XSLT extension module.
|
| 79 |
+
*/
|
| 80 |
+
typedef void (*xsltExtShutdownFunction) (xsltTransformContextPtr ctxt,
|
| 81 |
+
const xmlChar *URI,
|
| 82 |
+
void *data);
|
| 83 |
+
|
| 84 |
+
XSLTPUBFUN int XSLTCALL
|
| 85 |
+
xsltRegisterExtModule (const xmlChar *URI,
|
| 86 |
+
xsltExtInitFunction initFunc,
|
| 87 |
+
xsltExtShutdownFunction shutdownFunc);
|
| 88 |
+
XSLTPUBFUN int XSLTCALL
|
| 89 |
+
xsltRegisterExtModuleFull
|
| 90 |
+
(const xmlChar * URI,
|
| 91 |
+
xsltExtInitFunction initFunc,
|
| 92 |
+
xsltExtShutdownFunction shutdownFunc,
|
| 93 |
+
xsltStyleExtInitFunction styleInitFunc,
|
| 94 |
+
xsltStyleExtShutdownFunction styleShutdownFunc);
|
| 95 |
+
|
| 96 |
+
XSLTPUBFUN int XSLTCALL
|
| 97 |
+
xsltUnregisterExtModule (const xmlChar * URI);
|
| 98 |
+
|
| 99 |
+
XSLTPUBFUN void * XSLTCALL
|
| 100 |
+
xsltGetExtData (xsltTransformContextPtr ctxt,
|
| 101 |
+
const xmlChar *URI);
|
| 102 |
+
|
| 103 |
+
XSLTPUBFUN void * XSLTCALL
|
| 104 |
+
xsltStyleGetExtData (xsltStylesheetPtr style,
|
| 105 |
+
const xmlChar *URI);
|
| 106 |
+
#ifdef XSLT_REFACTORED
|
| 107 |
+
XSLTPUBFUN void * XSLTCALL
|
| 108 |
+
xsltStyleStylesheetLevelGetExtData(
|
| 109 |
+
xsltStylesheetPtr style,
|
| 110 |
+
const xmlChar * URI);
|
| 111 |
+
#endif
|
| 112 |
+
XSLTPUBFUN void XSLTCALL
|
| 113 |
+
xsltShutdownCtxtExts (xsltTransformContextPtr ctxt);
|
| 114 |
+
|
| 115 |
+
XSLTPUBFUN void XSLTCALL
|
| 116 |
+
xsltShutdownExts (xsltStylesheetPtr style);
|
| 117 |
+
|
| 118 |
+
XSLTPUBFUN xsltTransformContextPtr XSLTCALL
|
| 119 |
+
xsltXPathGetTransformContext
|
| 120 |
+
(xmlXPathParserContextPtr ctxt);
|
| 121 |
+
|
| 122 |
+
/*
|
| 123 |
+
* extension functions
|
| 124 |
+
*/
|
| 125 |
+
XSLTPUBFUN int XSLTCALL
|
| 126 |
+
xsltRegisterExtModuleFunction
|
| 127 |
+
(const xmlChar *name,
|
| 128 |
+
const xmlChar *URI,
|
| 129 |
+
xmlXPathFunction function);
|
| 130 |
+
XSLTPUBFUN xmlXPathFunction XSLTCALL
|
| 131 |
+
xsltExtModuleFunctionLookup (const xmlChar *name,
|
| 132 |
+
const xmlChar *URI);
|
| 133 |
+
XSLTPUBFUN int XSLTCALL
|
| 134 |
+
xsltUnregisterExtModuleFunction
|
| 135 |
+
(const xmlChar *name,
|
| 136 |
+
const xmlChar *URI);
|
| 137 |
+
|
| 138 |
+
/*
|
| 139 |
+
* extension elements
|
| 140 |
+
*/
|
| 141 |
+
typedef xsltElemPreCompPtr (*xsltPreComputeFunction)
|
| 142 |
+
(xsltStylesheetPtr style,
|
| 143 |
+
xmlNodePtr inst,
|
| 144 |
+
xsltTransformFunction function);
|
| 145 |
+
|
| 146 |
+
XSLTPUBFUN xsltElemPreCompPtr XSLTCALL
|
| 147 |
+
xsltNewElemPreComp (xsltStylesheetPtr style,
|
| 148 |
+
xmlNodePtr inst,
|
| 149 |
+
xsltTransformFunction function);
|
| 150 |
+
XSLTPUBFUN void XSLTCALL
|
| 151 |
+
xsltInitElemPreComp (xsltElemPreCompPtr comp,
|
| 152 |
+
xsltStylesheetPtr style,
|
| 153 |
+
xmlNodePtr inst,
|
| 154 |
+
xsltTransformFunction function,
|
| 155 |
+
xsltElemPreCompDeallocator freeFunc);
|
| 156 |
+
|
| 157 |
+
XSLTPUBFUN int XSLTCALL
|
| 158 |
+
xsltRegisterExtModuleElement
|
| 159 |
+
(const xmlChar *name,
|
| 160 |
+
const xmlChar *URI,
|
| 161 |
+
xsltPreComputeFunction precomp,
|
| 162 |
+
xsltTransformFunction transform);
|
| 163 |
+
XSLTPUBFUN xsltTransformFunction XSLTCALL
|
| 164 |
+
xsltExtElementLookup (xsltTransformContextPtr ctxt,
|
| 165 |
+
const xmlChar *name,
|
| 166 |
+
const xmlChar *URI);
|
| 167 |
+
XSLTPUBFUN xsltTransformFunction XSLTCALL
|
| 168 |
+
xsltExtModuleElementLookup
|
| 169 |
+
(const xmlChar *name,
|
| 170 |
+
const xmlChar *URI);
|
| 171 |
+
XSLTPUBFUN xsltPreComputeFunction XSLTCALL
|
| 172 |
+
xsltExtModuleElementPreComputeLookup
|
| 173 |
+
(const xmlChar *name,
|
| 174 |
+
const xmlChar *URI);
|
| 175 |
+
XSLTPUBFUN int XSLTCALL
|
| 176 |
+
xsltUnregisterExtModuleElement
|
| 177 |
+
(const xmlChar *name,
|
| 178 |
+
const xmlChar *URI);
|
| 179 |
+
|
| 180 |
+
/*
|
| 181 |
+
* top-level elements
|
| 182 |
+
*/
|
| 183 |
+
typedef void (*xsltTopLevelFunction) (xsltStylesheetPtr style,
|
| 184 |
+
xmlNodePtr inst);
|
| 185 |
+
|
| 186 |
+
XSLTPUBFUN int XSLTCALL
|
| 187 |
+
xsltRegisterExtModuleTopLevel
|
| 188 |
+
(const xmlChar *name,
|
| 189 |
+
const xmlChar *URI,
|
| 190 |
+
xsltTopLevelFunction function);
|
| 191 |
+
XSLTPUBFUN xsltTopLevelFunction XSLTCALL
|
| 192 |
+
xsltExtModuleTopLevelLookup
|
| 193 |
+
(const xmlChar *name,
|
| 194 |
+
const xmlChar *URI);
|
| 195 |
+
XSLTPUBFUN int XSLTCALL
|
| 196 |
+
xsltUnregisterExtModuleTopLevel
|
| 197 |
+
(const xmlChar *name,
|
| 198 |
+
const xmlChar *URI);
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
/* These 2 functions are deprecated for use within modules. */
|
| 202 |
+
XSLTPUBFUN int XSLTCALL
|
| 203 |
+
xsltRegisterExtFunction (xsltTransformContextPtr ctxt,
|
| 204 |
+
const xmlChar *name,
|
| 205 |
+
const xmlChar *URI,
|
| 206 |
+
xmlXPathFunction function);
|
| 207 |
+
XSLTPUBFUN int XSLTCALL
|
| 208 |
+
xsltRegisterExtElement (xsltTransformContextPtr ctxt,
|
| 209 |
+
const xmlChar *name,
|
| 210 |
+
const xmlChar *URI,
|
| 211 |
+
xsltTransformFunction function);
|
| 212 |
+
|
| 213 |
+
/*
|
| 214 |
+
* Extension Prefix handling API.
|
| 215 |
+
* Those are used by the XSLT (pre)processor.
|
| 216 |
+
*/
|
| 217 |
+
|
| 218 |
+
XSLTPUBFUN int XSLTCALL
|
| 219 |
+
xsltRegisterExtPrefix (xsltStylesheetPtr style,
|
| 220 |
+
const xmlChar *prefix,
|
| 221 |
+
const xmlChar *URI);
|
| 222 |
+
XSLTPUBFUN int XSLTCALL
|
| 223 |
+
xsltCheckExtPrefix (xsltStylesheetPtr style,
|
| 224 |
+
const xmlChar *URI);
|
| 225 |
+
XSLTPUBFUN int XSLTCALL
|
| 226 |
+
xsltCheckExtURI (xsltStylesheetPtr style,
|
| 227 |
+
const xmlChar *URI);
|
| 228 |
+
XSLTPUBFUN int XSLTCALL
|
| 229 |
+
xsltInitCtxtExts (xsltTransformContextPtr ctxt);
|
| 230 |
+
XSLTPUBFUN void XSLTCALL
|
| 231 |
+
xsltFreeCtxtExts (xsltTransformContextPtr ctxt);
|
| 232 |
+
XSLTPUBFUN void XSLTCALL
|
| 233 |
+
xsltFreeExts (xsltStylesheetPtr style);
|
| 234 |
+
|
| 235 |
+
XSLTPUBFUN xsltElemPreCompPtr XSLTCALL
|
| 236 |
+
xsltPreComputeExtModuleElement
|
| 237 |
+
(xsltStylesheetPtr style,
|
| 238 |
+
xmlNodePtr inst);
|
| 239 |
+
/*
|
| 240 |
+
* Extension Infos access.
|
| 241 |
+
* Used by exslt initialisation
|
| 242 |
+
*/
|
| 243 |
+
|
| 244 |
+
XSLTPUBFUN xmlHashTablePtr XSLTCALL
|
| 245 |
+
xsltGetExtInfo (xsltStylesheetPtr style,
|
| 246 |
+
const xmlChar *URI);
|
| 247 |
+
|
| 248 |
+
/**
|
| 249 |
+
* Test of the extension module API
|
| 250 |
+
*/
|
| 251 |
+
XSLTPUBFUN void XSLTCALL
|
| 252 |
+
xsltRegisterTestModule (void);
|
| 253 |
+
XSLTPUBFUN void XSLTCALL
|
| 254 |
+
xsltDebugDumpExtensions (FILE * output);
|
| 255 |
+
|
| 256 |
+
|
| 257 |
+
#ifdef __cplusplus
|
| 258 |
+
}
|
| 259 |
+
#endif
|
| 260 |
+
|
| 261 |
+
#endif /* __XML_XSLT_EXTENSION_H__ */
|
| 262 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/extra.h
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: interface for the non-standard features
|
| 3 |
+
* Description: implement some extension outside the XSLT namespace
|
| 4 |
+
* but not EXSLT with is in a different library.
|
| 5 |
+
*
|
| 6 |
+
* Copy: See Copyright for the status of this software.
|
| 7 |
+
*
|
| 8 |
+
* Author: Daniel Veillard
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
#ifndef __XML_XSLT_EXTRA_H__
|
| 12 |
+
#define __XML_XSLT_EXTRA_H__
|
| 13 |
+
|
| 14 |
+
#include <libxml/xpath.h>
|
| 15 |
+
#include "xsltexports.h"
|
| 16 |
+
#include "xsltInternals.h"
|
| 17 |
+
|
| 18 |
+
#ifdef __cplusplus
|
| 19 |
+
extern "C" {
|
| 20 |
+
#endif
|
| 21 |
+
|
| 22 |
+
/**
|
| 23 |
+
* XSLT_LIBXSLT_NAMESPACE:
|
| 24 |
+
*
|
| 25 |
+
* This is the libxslt namespace for specific extensions.
|
| 26 |
+
*/
|
| 27 |
+
#define XSLT_LIBXSLT_NAMESPACE ((xmlChar *) "http://xmlsoft.org/XSLT/namespace")
|
| 28 |
+
|
| 29 |
+
/**
|
| 30 |
+
* XSLT_SAXON_NAMESPACE:
|
| 31 |
+
*
|
| 32 |
+
* This is Michael Kay's Saxon processor namespace for extensions.
|
| 33 |
+
*/
|
| 34 |
+
#define XSLT_SAXON_NAMESPACE ((xmlChar *) "http://icl.com/saxon")
|
| 35 |
+
|
| 36 |
+
/**
|
| 37 |
+
* XSLT_XT_NAMESPACE:
|
| 38 |
+
*
|
| 39 |
+
* This is James Clark's XT processor namespace for extensions.
|
| 40 |
+
*/
|
| 41 |
+
#define XSLT_XT_NAMESPACE ((xmlChar *) "http://www.jclark.com/xt")
|
| 42 |
+
|
| 43 |
+
/**
|
| 44 |
+
* XSLT_XALAN_NAMESPACE:
|
| 45 |
+
*
|
| 46 |
+
* This is the Apache project XALAN processor namespace for extensions.
|
| 47 |
+
*/
|
| 48 |
+
#define XSLT_XALAN_NAMESPACE ((xmlChar *) \
|
| 49 |
+
"org.apache.xalan.xslt.extensions.Redirect")
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
XSLTPUBFUN void XSLTCALL
|
| 53 |
+
xsltFunctionNodeSet (xmlXPathParserContextPtr ctxt,
|
| 54 |
+
int nargs);
|
| 55 |
+
XSLTPUBFUN void XSLTCALL
|
| 56 |
+
xsltDebug (xsltTransformContextPtr ctxt,
|
| 57 |
+
xmlNodePtr node,
|
| 58 |
+
xmlNodePtr inst,
|
| 59 |
+
xsltElemPreCompPtr comp);
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
XSLTPUBFUN void XSLTCALL
|
| 63 |
+
xsltRegisterExtras (xsltTransformContextPtr ctxt);
|
| 64 |
+
XSLTPUBFUN void XSLTCALL
|
| 65 |
+
xsltRegisterAllExtras (void);
|
| 66 |
+
|
| 67 |
+
#ifdef __cplusplus
|
| 68 |
+
}
|
| 69 |
+
#endif
|
| 70 |
+
|
| 71 |
+
#endif /* __XML_XSLT_EXTRA_H__ */
|
| 72 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/functions.h
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: interface for the XSLT functions not from XPath
|
| 3 |
+
* Description: a set of extra functions coming from XSLT but not in XPath
|
| 4 |
+
*
|
| 5 |
+
* Copy: See Copyright for the status of this software.
|
| 6 |
+
*
|
| 7 |
+
* Author: Daniel Veillard and Bjorn Reese <breese@users.sourceforge.net>
|
| 8 |
+
*/
|
| 9 |
+
|
| 10 |
+
#ifndef __XML_XSLT_FUNCTIONS_H__
|
| 11 |
+
#define __XML_XSLT_FUNCTIONS_H__
|
| 12 |
+
|
| 13 |
+
#include <libxml/xpath.h>
|
| 14 |
+
#include <libxml/xpathInternals.h>
|
| 15 |
+
#include "xsltexports.h"
|
| 16 |
+
#include "xsltInternals.h"
|
| 17 |
+
|
| 18 |
+
#ifdef __cplusplus
|
| 19 |
+
extern "C" {
|
| 20 |
+
#endif
|
| 21 |
+
|
| 22 |
+
/**
|
| 23 |
+
* XSLT_REGISTER_FUNCTION_LOOKUP:
|
| 24 |
+
*
|
| 25 |
+
* Registering macro, not general purpose at all but used in different modules.
|
| 26 |
+
*/
|
| 27 |
+
#define XSLT_REGISTER_FUNCTION_LOOKUP(ctxt) \
|
| 28 |
+
xmlXPathRegisterFuncLookup((ctxt)->xpathCtxt, \
|
| 29 |
+
xsltXPathFunctionLookup, \
|
| 30 |
+
(void *)(ctxt->xpathCtxt));
|
| 31 |
+
|
| 32 |
+
XSLTPUBFUN xmlXPathFunction XSLTCALL
|
| 33 |
+
xsltXPathFunctionLookup (void *vctxt,
|
| 34 |
+
const xmlChar *name,
|
| 35 |
+
const xmlChar *ns_uri);
|
| 36 |
+
|
| 37 |
+
/*
|
| 38 |
+
* Interfaces for the functions implementations.
|
| 39 |
+
*/
|
| 40 |
+
|
| 41 |
+
XSLTPUBFUN void XSLTCALL
|
| 42 |
+
xsltDocumentFunction (xmlXPathParserContextPtr ctxt,
|
| 43 |
+
int nargs);
|
| 44 |
+
XSLTPUBFUN void XSLTCALL
|
| 45 |
+
xsltKeyFunction (xmlXPathParserContextPtr ctxt,
|
| 46 |
+
int nargs);
|
| 47 |
+
XSLTPUBFUN void XSLTCALL
|
| 48 |
+
xsltUnparsedEntityURIFunction (xmlXPathParserContextPtr ctxt,
|
| 49 |
+
int nargs);
|
| 50 |
+
XSLTPUBFUN void XSLTCALL
|
| 51 |
+
xsltFormatNumberFunction (xmlXPathParserContextPtr ctxt,
|
| 52 |
+
int nargs);
|
| 53 |
+
XSLTPUBFUN void XSLTCALL
|
| 54 |
+
xsltGenerateIdFunction (xmlXPathParserContextPtr ctxt,
|
| 55 |
+
int nargs);
|
| 56 |
+
XSLTPUBFUN void XSLTCALL
|
| 57 |
+
xsltSystemPropertyFunction (xmlXPathParserContextPtr ctxt,
|
| 58 |
+
int nargs);
|
| 59 |
+
XSLTPUBFUN void XSLTCALL
|
| 60 |
+
xsltElementAvailableFunction (xmlXPathParserContextPtr ctxt,
|
| 61 |
+
int nargs);
|
| 62 |
+
XSLTPUBFUN void XSLTCALL
|
| 63 |
+
xsltFunctionAvailableFunction (xmlXPathParserContextPtr ctxt,
|
| 64 |
+
int nargs);
|
| 65 |
+
|
| 66 |
+
/*
|
| 67 |
+
* And the registration
|
| 68 |
+
*/
|
| 69 |
+
|
| 70 |
+
XSLTPUBFUN void XSLTCALL
|
| 71 |
+
xsltRegisterAllFunctions (xmlXPathContextPtr ctxt);
|
| 72 |
+
|
| 73 |
+
#ifdef __cplusplus
|
| 74 |
+
}
|
| 75 |
+
#endif
|
| 76 |
+
|
| 77 |
+
#endif /* __XML_XSLT_FUNCTIONS_H__ */
|
| 78 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/imports.h
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: interface for the XSLT import support
|
| 3 |
+
* Description: macros and fuctions needed to implement and
|
| 4 |
+
* access the import tree
|
| 5 |
+
*
|
| 6 |
+
* Copy: See Copyright for the status of this software.
|
| 7 |
+
*
|
| 8 |
+
* Author: Daniel Veillard
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
#ifndef __XML_XSLT_IMPORTS_H__
|
| 12 |
+
#define __XML_XSLT_IMPORTS_H__
|
| 13 |
+
|
| 14 |
+
#include <libxml/tree.h>
|
| 15 |
+
#include "xsltexports.h"
|
| 16 |
+
#include "xsltInternals.h"
|
| 17 |
+
|
| 18 |
+
#ifdef __cplusplus
|
| 19 |
+
extern "C" {
|
| 20 |
+
#endif
|
| 21 |
+
|
| 22 |
+
/**
|
| 23 |
+
* XSLT_GET_IMPORT_PTR:
|
| 24 |
+
*
|
| 25 |
+
* A macro to import pointers from the stylesheet cascading order.
|
| 26 |
+
*/
|
| 27 |
+
#define XSLT_GET_IMPORT_PTR(res, style, name) { \
|
| 28 |
+
xsltStylesheetPtr st = style; \
|
| 29 |
+
res = NULL; \
|
| 30 |
+
while (st != NULL) { \
|
| 31 |
+
if (st->name != NULL) { res = st->name; break; } \
|
| 32 |
+
st = xsltNextImport(st); \
|
| 33 |
+
}}
|
| 34 |
+
|
| 35 |
+
/**
|
| 36 |
+
* XSLT_GET_IMPORT_INT:
|
| 37 |
+
*
|
| 38 |
+
* A macro to import intergers from the stylesheet cascading order.
|
| 39 |
+
*/
|
| 40 |
+
#define XSLT_GET_IMPORT_INT(res, style, name) { \
|
| 41 |
+
xsltStylesheetPtr st = style; \
|
| 42 |
+
res = -1; \
|
| 43 |
+
while (st != NULL) { \
|
| 44 |
+
if (st->name != -1) { res = st->name; break; } \
|
| 45 |
+
st = xsltNextImport(st); \
|
| 46 |
+
}}
|
| 47 |
+
|
| 48 |
+
/*
|
| 49 |
+
* Module interfaces
|
| 50 |
+
*/
|
| 51 |
+
XSLTPUBFUN int XSLTCALL
|
| 52 |
+
xsltParseStylesheetImport(xsltStylesheetPtr style,
|
| 53 |
+
xmlNodePtr cur);
|
| 54 |
+
XSLTPUBFUN int XSLTCALL
|
| 55 |
+
xsltParseStylesheetInclude
|
| 56 |
+
(xsltStylesheetPtr style,
|
| 57 |
+
xmlNodePtr cur);
|
| 58 |
+
XSLTPUBFUN xsltStylesheetPtr XSLTCALL
|
| 59 |
+
xsltNextImport (xsltStylesheetPtr style);
|
| 60 |
+
XSLTPUBFUN int XSLTCALL
|
| 61 |
+
xsltNeedElemSpaceHandling(xsltTransformContextPtr ctxt);
|
| 62 |
+
XSLTPUBFUN int XSLTCALL
|
| 63 |
+
xsltFindElemSpaceHandling(xsltTransformContextPtr ctxt,
|
| 64 |
+
xmlNodePtr node);
|
| 65 |
+
XSLTPUBFUN xsltTemplatePtr XSLTCALL
|
| 66 |
+
xsltFindTemplate (xsltTransformContextPtr ctxt,
|
| 67 |
+
const xmlChar *name,
|
| 68 |
+
const xmlChar *nameURI);
|
| 69 |
+
|
| 70 |
+
#ifdef __cplusplus
|
| 71 |
+
}
|
| 72 |
+
#endif
|
| 73 |
+
|
| 74 |
+
#endif /* __XML_XSLT_IMPORTS_H__ */
|
| 75 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/keys.h
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: interface for the key matching used in key() and template matches.
|
| 3 |
+
* Description: implementation of the key mechanims.
|
| 4 |
+
*
|
| 5 |
+
* Copy: See Copyright for the status of this software.
|
| 6 |
+
*
|
| 7 |
+
* Author: Daniel Veillard
|
| 8 |
+
*/
|
| 9 |
+
|
| 10 |
+
#ifndef __XML_XSLT_KEY_H__
|
| 11 |
+
#define __XML_XSLT_KEY_H__
|
| 12 |
+
|
| 13 |
+
#include <libxml/xpath.h>
|
| 14 |
+
#include "xsltexports.h"
|
| 15 |
+
#include "xsltInternals.h"
|
| 16 |
+
|
| 17 |
+
#ifdef __cplusplus
|
| 18 |
+
extern "C" {
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
/**
|
| 22 |
+
* NODE_IS_KEYED:
|
| 23 |
+
*
|
| 24 |
+
* check for bit 15 set
|
| 25 |
+
*/
|
| 26 |
+
#define NODE_IS_KEYED (1 >> 15)
|
| 27 |
+
|
| 28 |
+
XSLTPUBFUN int XSLTCALL
|
| 29 |
+
xsltAddKey (xsltStylesheetPtr style,
|
| 30 |
+
const xmlChar *name,
|
| 31 |
+
const xmlChar *nameURI,
|
| 32 |
+
const xmlChar *match,
|
| 33 |
+
const xmlChar *use,
|
| 34 |
+
xmlNodePtr inst);
|
| 35 |
+
XSLTPUBFUN xmlNodeSetPtr XSLTCALL
|
| 36 |
+
xsltGetKey (xsltTransformContextPtr ctxt,
|
| 37 |
+
const xmlChar *name,
|
| 38 |
+
const xmlChar *nameURI,
|
| 39 |
+
const xmlChar *value);
|
| 40 |
+
XSLTPUBFUN void XSLTCALL
|
| 41 |
+
xsltInitCtxtKeys (xsltTransformContextPtr ctxt,
|
| 42 |
+
xsltDocumentPtr doc);
|
| 43 |
+
XSLTPUBFUN void XSLTCALL
|
| 44 |
+
xsltFreeKeys (xsltStylesheetPtr style);
|
| 45 |
+
XSLTPUBFUN void XSLTCALL
|
| 46 |
+
xsltFreeDocumentKeys (xsltDocumentPtr doc);
|
| 47 |
+
|
| 48 |
+
#ifdef __cplusplus
|
| 49 |
+
}
|
| 50 |
+
#endif
|
| 51 |
+
|
| 52 |
+
#endif /* __XML_XSLT_H__ */
|
| 53 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/namespaces.h
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: interface for the XSLT namespace handling
|
| 3 |
+
* Description: set of function easing the processing and generation
|
| 4 |
+
* of namespace nodes in XSLT.
|
| 5 |
+
*
|
| 6 |
+
* Copy: See Copyright for the status of this software.
|
| 7 |
+
*
|
| 8 |
+
* Author: Daniel Veillard
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
#ifndef __XML_XSLT_NAMESPACES_H__
|
| 12 |
+
#define __XML_XSLT_NAMESPACES_H__
|
| 13 |
+
|
| 14 |
+
#include <libxml/tree.h>
|
| 15 |
+
#include "xsltexports.h"
|
| 16 |
+
|
| 17 |
+
#ifdef __cplusplus
|
| 18 |
+
extern "C" {
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
/*
|
| 22 |
+
* Used within nsAliases hashtable when the default namespace is required
|
| 23 |
+
* but it's not been explicitly defined
|
| 24 |
+
*/
|
| 25 |
+
/**
|
| 26 |
+
* UNDEFINED_DEFAULT_NS:
|
| 27 |
+
*
|
| 28 |
+
* Special value for undefined namespace, internal
|
| 29 |
+
*/
|
| 30 |
+
#define UNDEFINED_DEFAULT_NS (const xmlChar *) -1L
|
| 31 |
+
|
| 32 |
+
XSLTPUBFUN void XSLTCALL
|
| 33 |
+
xsltNamespaceAlias (xsltStylesheetPtr style,
|
| 34 |
+
xmlNodePtr node);
|
| 35 |
+
XSLTPUBFUN xmlNsPtr XSLTCALL
|
| 36 |
+
xsltGetNamespace (xsltTransformContextPtr ctxt,
|
| 37 |
+
xmlNodePtr cur,
|
| 38 |
+
xmlNsPtr ns,
|
| 39 |
+
xmlNodePtr out);
|
| 40 |
+
XSLTPUBFUN xmlNsPtr XSLTCALL
|
| 41 |
+
xsltGetPlainNamespace (xsltTransformContextPtr ctxt,
|
| 42 |
+
xmlNodePtr cur,
|
| 43 |
+
xmlNsPtr ns,
|
| 44 |
+
xmlNodePtr out);
|
| 45 |
+
XSLTPUBFUN xmlNsPtr XSLTCALL
|
| 46 |
+
xsltGetSpecialNamespace (xsltTransformContextPtr ctxt,
|
| 47 |
+
xmlNodePtr cur,
|
| 48 |
+
const xmlChar *URI,
|
| 49 |
+
const xmlChar *prefix,
|
| 50 |
+
xmlNodePtr out);
|
| 51 |
+
XSLTPUBFUN xmlNsPtr XSLTCALL
|
| 52 |
+
xsltCopyNamespace (xsltTransformContextPtr ctxt,
|
| 53 |
+
xmlNodePtr elem,
|
| 54 |
+
xmlNsPtr ns);
|
| 55 |
+
XSLTPUBFUN xmlNsPtr XSLTCALL
|
| 56 |
+
xsltCopyNamespaceList (xsltTransformContextPtr ctxt,
|
| 57 |
+
xmlNodePtr node,
|
| 58 |
+
xmlNsPtr cur);
|
| 59 |
+
XSLTPUBFUN void XSLTCALL
|
| 60 |
+
xsltFreeNamespaceAliasHashes
|
| 61 |
+
(xsltStylesheetPtr style);
|
| 62 |
+
|
| 63 |
+
#ifdef __cplusplus
|
| 64 |
+
}
|
| 65 |
+
#endif
|
| 66 |
+
|
| 67 |
+
#endif /* __XML_XSLT_NAMESPACES_H__ */
|
| 68 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/pattern.h
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: interface for the pattern matching used in template matches.
|
| 3 |
+
* Description: the implementation of the lookup of the right template
|
| 4 |
+
* for a given node must be really fast in order to keep
|
| 5 |
+
* decent performances.
|
| 6 |
+
*
|
| 7 |
+
* Copy: See Copyright for the status of this software.
|
| 8 |
+
*
|
| 9 |
+
* Author: Daniel Veillard
|
| 10 |
+
*/
|
| 11 |
+
|
| 12 |
+
#ifndef __XML_XSLT_PATTERN_H__
|
| 13 |
+
#define __XML_XSLT_PATTERN_H__
|
| 14 |
+
|
| 15 |
+
#include "xsltInternals.h"
|
| 16 |
+
#include "xsltexports.h"
|
| 17 |
+
|
| 18 |
+
#ifdef __cplusplus
|
| 19 |
+
extern "C" {
|
| 20 |
+
#endif
|
| 21 |
+
|
| 22 |
+
/**
|
| 23 |
+
* xsltCompMatch:
|
| 24 |
+
*
|
| 25 |
+
* Data structure used for the implementation of patterns.
|
| 26 |
+
* It is kept private (in pattern.c).
|
| 27 |
+
*/
|
| 28 |
+
typedef struct _xsltCompMatch xsltCompMatch;
|
| 29 |
+
typedef xsltCompMatch *xsltCompMatchPtr;
|
| 30 |
+
|
| 31 |
+
/*
|
| 32 |
+
* Pattern related interfaces.
|
| 33 |
+
*/
|
| 34 |
+
|
| 35 |
+
XSLTPUBFUN xsltCompMatchPtr XSLTCALL
|
| 36 |
+
xsltCompilePattern (const xmlChar *pattern,
|
| 37 |
+
xmlDocPtr doc,
|
| 38 |
+
xmlNodePtr node,
|
| 39 |
+
xsltStylesheetPtr style,
|
| 40 |
+
xsltTransformContextPtr runtime);
|
| 41 |
+
XSLTPUBFUN void XSLTCALL
|
| 42 |
+
xsltFreeCompMatchList (xsltCompMatchPtr comp);
|
| 43 |
+
XSLTPUBFUN int XSLTCALL
|
| 44 |
+
xsltTestCompMatchList (xsltTransformContextPtr ctxt,
|
| 45 |
+
xmlNodePtr node,
|
| 46 |
+
xsltCompMatchPtr comp);
|
| 47 |
+
XSLTPUBFUN void XSLTCALL
|
| 48 |
+
xsltCompMatchClearCache (xsltTransformContextPtr ctxt,
|
| 49 |
+
xsltCompMatchPtr comp);
|
| 50 |
+
XSLTPUBFUN void XSLTCALL
|
| 51 |
+
xsltNormalizeCompSteps (void *payload,
|
| 52 |
+
void *data,
|
| 53 |
+
const xmlChar *name);
|
| 54 |
+
|
| 55 |
+
/*
|
| 56 |
+
* Template related interfaces.
|
| 57 |
+
*/
|
| 58 |
+
XSLTPUBFUN int XSLTCALL
|
| 59 |
+
xsltAddTemplate (xsltStylesheetPtr style,
|
| 60 |
+
xsltTemplatePtr cur,
|
| 61 |
+
const xmlChar *mode,
|
| 62 |
+
const xmlChar *modeURI);
|
| 63 |
+
XSLTPUBFUN xsltTemplatePtr XSLTCALL
|
| 64 |
+
xsltGetTemplate (xsltTransformContextPtr ctxt,
|
| 65 |
+
xmlNodePtr node,
|
| 66 |
+
xsltStylesheetPtr style);
|
| 67 |
+
XSLTPUBFUN void XSLTCALL
|
| 68 |
+
xsltFreeTemplateHashes (xsltStylesheetPtr style);
|
| 69 |
+
XSLTPUBFUN void XSLTCALL
|
| 70 |
+
xsltCleanupTemplates (xsltStylesheetPtr style);
|
| 71 |
+
|
| 72 |
+
#if 0
|
| 73 |
+
int xsltMatchPattern (xsltTransformContextPtr ctxt,
|
| 74 |
+
xmlNodePtr node,
|
| 75 |
+
const xmlChar *pattern,
|
| 76 |
+
xmlDocPtr ctxtdoc,
|
| 77 |
+
xmlNodePtr ctxtnode);
|
| 78 |
+
#endif
|
| 79 |
+
#ifdef __cplusplus
|
| 80 |
+
}
|
| 81 |
+
#endif
|
| 82 |
+
|
| 83 |
+
#endif /* __XML_XSLT_PATTERN_H__ */
|
| 84 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/security.h
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: interface for the libxslt security framework
|
| 3 |
+
* Description: the libxslt security framework allow to restrict
|
| 4 |
+
* the access to new resources (file or URL) from
|
| 5 |
+
* the stylesheet at runtime.
|
| 6 |
+
*
|
| 7 |
+
* Copy: See Copyright for the status of this software.
|
| 8 |
+
*
|
| 9 |
+
* Author: Daniel Veillard
|
| 10 |
+
*/
|
| 11 |
+
|
| 12 |
+
#ifndef __XML_XSLT_SECURITY_H__
|
| 13 |
+
#define __XML_XSLT_SECURITY_H__
|
| 14 |
+
|
| 15 |
+
#include <libxml/tree.h>
|
| 16 |
+
#include "xsltexports.h"
|
| 17 |
+
#include "xsltInternals.h"
|
| 18 |
+
|
| 19 |
+
#ifdef __cplusplus
|
| 20 |
+
extern "C" {
|
| 21 |
+
#endif
|
| 22 |
+
|
| 23 |
+
/**
|
| 24 |
+
* xsltSecurityPref:
|
| 25 |
+
*
|
| 26 |
+
* structure to indicate the preferences for security in the XSLT
|
| 27 |
+
* transformation.
|
| 28 |
+
*/
|
| 29 |
+
typedef struct _xsltSecurityPrefs xsltSecurityPrefs;
|
| 30 |
+
typedef xsltSecurityPrefs *xsltSecurityPrefsPtr;
|
| 31 |
+
|
| 32 |
+
/**
|
| 33 |
+
* xsltSecurityOption:
|
| 34 |
+
*
|
| 35 |
+
* the set of option that can be configured
|
| 36 |
+
*/
|
| 37 |
+
typedef enum {
|
| 38 |
+
XSLT_SECPREF_READ_FILE = 1,
|
| 39 |
+
XSLT_SECPREF_WRITE_FILE,
|
| 40 |
+
XSLT_SECPREF_CREATE_DIRECTORY,
|
| 41 |
+
XSLT_SECPREF_READ_NETWORK,
|
| 42 |
+
XSLT_SECPREF_WRITE_NETWORK
|
| 43 |
+
} xsltSecurityOption;
|
| 44 |
+
|
| 45 |
+
/**
|
| 46 |
+
* xsltSecurityCheck:
|
| 47 |
+
*
|
| 48 |
+
* User provided function to check the value of a string like a file
|
| 49 |
+
* path or an URL ...
|
| 50 |
+
*/
|
| 51 |
+
typedef int (*xsltSecurityCheck) (xsltSecurityPrefsPtr sec,
|
| 52 |
+
xsltTransformContextPtr ctxt,
|
| 53 |
+
const char *value);
|
| 54 |
+
|
| 55 |
+
/*
|
| 56 |
+
* Module interfaces
|
| 57 |
+
*/
|
| 58 |
+
XSLTPUBFUN xsltSecurityPrefsPtr XSLTCALL
|
| 59 |
+
xsltNewSecurityPrefs (void);
|
| 60 |
+
XSLTPUBFUN void XSLTCALL
|
| 61 |
+
xsltFreeSecurityPrefs (xsltSecurityPrefsPtr sec);
|
| 62 |
+
XSLTPUBFUN int XSLTCALL
|
| 63 |
+
xsltSetSecurityPrefs (xsltSecurityPrefsPtr sec,
|
| 64 |
+
xsltSecurityOption option,
|
| 65 |
+
xsltSecurityCheck func);
|
| 66 |
+
XSLTPUBFUN xsltSecurityCheck XSLTCALL
|
| 67 |
+
xsltGetSecurityPrefs (xsltSecurityPrefsPtr sec,
|
| 68 |
+
xsltSecurityOption option);
|
| 69 |
+
|
| 70 |
+
XSLTPUBFUN void XSLTCALL
|
| 71 |
+
xsltSetDefaultSecurityPrefs (xsltSecurityPrefsPtr sec);
|
| 72 |
+
XSLTPUBFUN xsltSecurityPrefsPtr XSLTCALL
|
| 73 |
+
xsltGetDefaultSecurityPrefs (void);
|
| 74 |
+
|
| 75 |
+
XSLTPUBFUN int XSLTCALL
|
| 76 |
+
xsltSetCtxtSecurityPrefs (xsltSecurityPrefsPtr sec,
|
| 77 |
+
xsltTransformContextPtr ctxt);
|
| 78 |
+
|
| 79 |
+
XSLTPUBFUN int XSLTCALL
|
| 80 |
+
xsltSecurityAllow (xsltSecurityPrefsPtr sec,
|
| 81 |
+
xsltTransformContextPtr ctxt,
|
| 82 |
+
const char *value);
|
| 83 |
+
XSLTPUBFUN int XSLTCALL
|
| 84 |
+
xsltSecurityForbid (xsltSecurityPrefsPtr sec,
|
| 85 |
+
xsltTransformContextPtr ctxt,
|
| 86 |
+
const char *value);
|
| 87 |
+
/*
|
| 88 |
+
* internal interfaces
|
| 89 |
+
*/
|
| 90 |
+
XSLTPUBFUN int XSLTCALL
|
| 91 |
+
xsltCheckWrite (xsltSecurityPrefsPtr sec,
|
| 92 |
+
xsltTransformContextPtr ctxt,
|
| 93 |
+
const xmlChar *URL);
|
| 94 |
+
XSLTPUBFUN int XSLTCALL
|
| 95 |
+
xsltCheckRead (xsltSecurityPrefsPtr sec,
|
| 96 |
+
xsltTransformContextPtr ctxt,
|
| 97 |
+
const xmlChar *URL);
|
| 98 |
+
|
| 99 |
+
#ifdef __cplusplus
|
| 100 |
+
}
|
| 101 |
+
#endif
|
| 102 |
+
|
| 103 |
+
#endif /* __XML_XSLT_SECURITY_H__ */
|
| 104 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/templates.h
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: interface for the template processing
|
| 3 |
+
* Description: This set of routine encapsulates XPath calls
|
| 4 |
+
* and Attribute Value Templates evaluation.
|
| 5 |
+
*
|
| 6 |
+
* Copy: See Copyright for the status of this software.
|
| 7 |
+
*
|
| 8 |
+
* Author: Daniel Veillard
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
#ifndef __XML_XSLT_TEMPLATES_H__
|
| 12 |
+
#define __XML_XSLT_TEMPLATES_H__
|
| 13 |
+
|
| 14 |
+
#include <libxml/xpath.h>
|
| 15 |
+
#include <libxml/xpathInternals.h>
|
| 16 |
+
#include "xsltexports.h"
|
| 17 |
+
#include "xsltInternals.h"
|
| 18 |
+
|
| 19 |
+
#ifdef __cplusplus
|
| 20 |
+
extern "C" {
|
| 21 |
+
#endif
|
| 22 |
+
|
| 23 |
+
XSLTPUBFUN int XSLTCALL
|
| 24 |
+
xsltEvalXPathPredicate (xsltTransformContextPtr ctxt,
|
| 25 |
+
xmlXPathCompExprPtr comp,
|
| 26 |
+
xmlNsPtr *nsList,
|
| 27 |
+
int nsNr);
|
| 28 |
+
XSLTPUBFUN xmlChar * XSLTCALL
|
| 29 |
+
xsltEvalTemplateString (xsltTransformContextPtr ctxt,
|
| 30 |
+
xmlNodePtr contextNode,
|
| 31 |
+
xmlNodePtr inst);
|
| 32 |
+
XSLTPUBFUN xmlChar * XSLTCALL
|
| 33 |
+
xsltEvalAttrValueTemplate (xsltTransformContextPtr ctxt,
|
| 34 |
+
xmlNodePtr node,
|
| 35 |
+
const xmlChar *name,
|
| 36 |
+
const xmlChar *ns);
|
| 37 |
+
XSLTPUBFUN const xmlChar * XSLTCALL
|
| 38 |
+
xsltEvalStaticAttrValueTemplate (xsltStylesheetPtr style,
|
| 39 |
+
xmlNodePtr node,
|
| 40 |
+
const xmlChar *name,
|
| 41 |
+
const xmlChar *ns,
|
| 42 |
+
int *found);
|
| 43 |
+
|
| 44 |
+
/* TODO: this is obviously broken ... the namespaces should be passed too ! */
|
| 45 |
+
XSLTPUBFUN xmlChar * XSLTCALL
|
| 46 |
+
xsltEvalXPathString (xsltTransformContextPtr ctxt,
|
| 47 |
+
xmlXPathCompExprPtr comp);
|
| 48 |
+
XSLTPUBFUN xmlChar * XSLTCALL
|
| 49 |
+
xsltEvalXPathStringNs (xsltTransformContextPtr ctxt,
|
| 50 |
+
xmlXPathCompExprPtr comp,
|
| 51 |
+
int nsNr,
|
| 52 |
+
xmlNsPtr *nsList);
|
| 53 |
+
|
| 54 |
+
XSLTPUBFUN xmlNodePtr * XSLTCALL
|
| 55 |
+
xsltTemplateProcess (xsltTransformContextPtr ctxt,
|
| 56 |
+
xmlNodePtr node);
|
| 57 |
+
XSLTPUBFUN xmlAttrPtr XSLTCALL
|
| 58 |
+
xsltAttrListTemplateProcess (xsltTransformContextPtr ctxt,
|
| 59 |
+
xmlNodePtr target,
|
| 60 |
+
xmlAttrPtr cur);
|
| 61 |
+
XSLTPUBFUN xmlAttrPtr XSLTCALL
|
| 62 |
+
xsltAttrTemplateProcess (xsltTransformContextPtr ctxt,
|
| 63 |
+
xmlNodePtr target,
|
| 64 |
+
xmlAttrPtr attr);
|
| 65 |
+
XSLTPUBFUN xmlChar * XSLTCALL
|
| 66 |
+
xsltAttrTemplateValueProcess (xsltTransformContextPtr ctxt,
|
| 67 |
+
const xmlChar* attr);
|
| 68 |
+
XSLTPUBFUN xmlChar * XSLTCALL
|
| 69 |
+
xsltAttrTemplateValueProcessNode(xsltTransformContextPtr ctxt,
|
| 70 |
+
const xmlChar* str,
|
| 71 |
+
xmlNodePtr node);
|
| 72 |
+
#ifdef __cplusplus
|
| 73 |
+
}
|
| 74 |
+
#endif
|
| 75 |
+
|
| 76 |
+
#endif /* __XML_XSLT_TEMPLATES_H__ */
|
| 77 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/transform.h
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: the XSLT engine transformation part.
|
| 3 |
+
* Description: This module implements the bulk of the actual
|
| 4 |
+
* transformation processing. Most of the xsl: element
|
| 5 |
+
* constructs are implemented in this module.
|
| 6 |
+
*
|
| 7 |
+
* Copy: See Copyright for the status of this software.
|
| 8 |
+
*
|
| 9 |
+
* Author: Daniel Veillard
|
| 10 |
+
*/
|
| 11 |
+
|
| 12 |
+
#ifndef __XML_XSLT_TRANSFORM_H__
|
| 13 |
+
#define __XML_XSLT_TRANSFORM_H__
|
| 14 |
+
|
| 15 |
+
#include <libxml/parser.h>
|
| 16 |
+
#include <libxml/xmlIO.h>
|
| 17 |
+
#include "xsltexports.h"
|
| 18 |
+
#include <libxslt/xsltInternals.h>
|
| 19 |
+
|
| 20 |
+
#ifdef __cplusplus
|
| 21 |
+
extern "C" {
|
| 22 |
+
#endif
|
| 23 |
+
|
| 24 |
+
/**
|
| 25 |
+
* XInclude default processing.
|
| 26 |
+
*/
|
| 27 |
+
XSLTPUBFUN void XSLTCALL
|
| 28 |
+
xsltSetXIncludeDefault (int xinclude);
|
| 29 |
+
XSLTPUBFUN int XSLTCALL
|
| 30 |
+
xsltGetXIncludeDefault (void);
|
| 31 |
+
|
| 32 |
+
/**
|
| 33 |
+
* Export context to users.
|
| 34 |
+
*/
|
| 35 |
+
XSLTPUBFUN xsltTransformContextPtr XSLTCALL
|
| 36 |
+
xsltNewTransformContext (xsltStylesheetPtr style,
|
| 37 |
+
xmlDocPtr doc);
|
| 38 |
+
|
| 39 |
+
XSLTPUBFUN void XSLTCALL
|
| 40 |
+
xsltFreeTransformContext(xsltTransformContextPtr ctxt);
|
| 41 |
+
|
| 42 |
+
XSLTPUBFUN xmlDocPtr XSLTCALL
|
| 43 |
+
xsltApplyStylesheetUser (xsltStylesheetPtr style,
|
| 44 |
+
xmlDocPtr doc,
|
| 45 |
+
const char **params,
|
| 46 |
+
const char *output,
|
| 47 |
+
FILE * profile,
|
| 48 |
+
xsltTransformContextPtr userCtxt);
|
| 49 |
+
XSLTPUBFUN void XSLTCALL
|
| 50 |
+
xsltProcessOneNode (xsltTransformContextPtr ctxt,
|
| 51 |
+
xmlNodePtr node,
|
| 52 |
+
xsltStackElemPtr params);
|
| 53 |
+
/**
|
| 54 |
+
* Private Interfaces.
|
| 55 |
+
*/
|
| 56 |
+
XSLTPUBFUN void XSLTCALL
|
| 57 |
+
xsltApplyStripSpaces (xsltTransformContextPtr ctxt,
|
| 58 |
+
xmlNodePtr node);
|
| 59 |
+
XSLTPUBFUN xmlDocPtr XSLTCALL
|
| 60 |
+
xsltApplyStylesheet (xsltStylesheetPtr style,
|
| 61 |
+
xmlDocPtr doc,
|
| 62 |
+
const char **params);
|
| 63 |
+
XSLTPUBFUN xmlDocPtr XSLTCALL
|
| 64 |
+
xsltProfileStylesheet (xsltStylesheetPtr style,
|
| 65 |
+
xmlDocPtr doc,
|
| 66 |
+
const char **params,
|
| 67 |
+
FILE * output);
|
| 68 |
+
XSLTPUBFUN int XSLTCALL
|
| 69 |
+
xsltRunStylesheet (xsltStylesheetPtr style,
|
| 70 |
+
xmlDocPtr doc,
|
| 71 |
+
const char **params,
|
| 72 |
+
const char *output,
|
| 73 |
+
xmlSAXHandlerPtr SAX,
|
| 74 |
+
xmlOutputBufferPtr IObuf);
|
| 75 |
+
XSLTPUBFUN int XSLTCALL
|
| 76 |
+
xsltRunStylesheetUser (xsltStylesheetPtr style,
|
| 77 |
+
xmlDocPtr doc,
|
| 78 |
+
const char **params,
|
| 79 |
+
const char *output,
|
| 80 |
+
xmlSAXHandlerPtr SAX,
|
| 81 |
+
xmlOutputBufferPtr IObuf,
|
| 82 |
+
FILE * profile,
|
| 83 |
+
xsltTransformContextPtr userCtxt);
|
| 84 |
+
XSLTPUBFUN void XSLTCALL
|
| 85 |
+
xsltApplyOneTemplate (xsltTransformContextPtr ctxt,
|
| 86 |
+
xmlNodePtr node,
|
| 87 |
+
xmlNodePtr list,
|
| 88 |
+
xsltTemplatePtr templ,
|
| 89 |
+
xsltStackElemPtr params);
|
| 90 |
+
XSLTPUBFUN void XSLTCALL
|
| 91 |
+
xsltDocumentElem (xsltTransformContextPtr ctxt,
|
| 92 |
+
xmlNodePtr node,
|
| 93 |
+
xmlNodePtr inst,
|
| 94 |
+
xsltElemPreCompPtr comp);
|
| 95 |
+
XSLTPUBFUN void XSLTCALL
|
| 96 |
+
xsltSort (xsltTransformContextPtr ctxt,
|
| 97 |
+
xmlNodePtr node,
|
| 98 |
+
xmlNodePtr inst,
|
| 99 |
+
xsltElemPreCompPtr comp);
|
| 100 |
+
XSLTPUBFUN void XSLTCALL
|
| 101 |
+
xsltCopy (xsltTransformContextPtr ctxt,
|
| 102 |
+
xmlNodePtr node,
|
| 103 |
+
xmlNodePtr inst,
|
| 104 |
+
xsltElemPreCompPtr comp);
|
| 105 |
+
XSLTPUBFUN void XSLTCALL
|
| 106 |
+
xsltText (xsltTransformContextPtr ctxt,
|
| 107 |
+
xmlNodePtr node,
|
| 108 |
+
xmlNodePtr inst,
|
| 109 |
+
xsltElemPreCompPtr comp);
|
| 110 |
+
XSLTPUBFUN void XSLTCALL
|
| 111 |
+
xsltElement (xsltTransformContextPtr ctxt,
|
| 112 |
+
xmlNodePtr node,
|
| 113 |
+
xmlNodePtr inst,
|
| 114 |
+
xsltElemPreCompPtr comp);
|
| 115 |
+
XSLTPUBFUN void XSLTCALL
|
| 116 |
+
xsltComment (xsltTransformContextPtr ctxt,
|
| 117 |
+
xmlNodePtr node,
|
| 118 |
+
xmlNodePtr inst,
|
| 119 |
+
xsltElemPreCompPtr comp);
|
| 120 |
+
XSLTPUBFUN void XSLTCALL
|
| 121 |
+
xsltAttribute (xsltTransformContextPtr ctxt,
|
| 122 |
+
xmlNodePtr node,
|
| 123 |
+
xmlNodePtr inst,
|
| 124 |
+
xsltElemPreCompPtr comp);
|
| 125 |
+
XSLTPUBFUN void XSLTCALL
|
| 126 |
+
xsltProcessingInstruction(xsltTransformContextPtr ctxt,
|
| 127 |
+
xmlNodePtr node,
|
| 128 |
+
xmlNodePtr inst,
|
| 129 |
+
xsltElemPreCompPtr comp);
|
| 130 |
+
XSLTPUBFUN void XSLTCALL
|
| 131 |
+
xsltCopyOf (xsltTransformContextPtr ctxt,
|
| 132 |
+
xmlNodePtr node,
|
| 133 |
+
xmlNodePtr inst,
|
| 134 |
+
xsltElemPreCompPtr comp);
|
| 135 |
+
XSLTPUBFUN void XSLTCALL
|
| 136 |
+
xsltValueOf (xsltTransformContextPtr ctxt,
|
| 137 |
+
xmlNodePtr node,
|
| 138 |
+
xmlNodePtr inst,
|
| 139 |
+
xsltElemPreCompPtr comp);
|
| 140 |
+
XSLTPUBFUN void XSLTCALL
|
| 141 |
+
xsltNumber (xsltTransformContextPtr ctxt,
|
| 142 |
+
xmlNodePtr node,
|
| 143 |
+
xmlNodePtr inst,
|
| 144 |
+
xsltElemPreCompPtr comp);
|
| 145 |
+
XSLTPUBFUN void XSLTCALL
|
| 146 |
+
xsltApplyImports (xsltTransformContextPtr ctxt,
|
| 147 |
+
xmlNodePtr node,
|
| 148 |
+
xmlNodePtr inst,
|
| 149 |
+
xsltElemPreCompPtr comp);
|
| 150 |
+
XSLTPUBFUN void XSLTCALL
|
| 151 |
+
xsltCallTemplate (xsltTransformContextPtr ctxt,
|
| 152 |
+
xmlNodePtr node,
|
| 153 |
+
xmlNodePtr inst,
|
| 154 |
+
xsltElemPreCompPtr comp);
|
| 155 |
+
XSLTPUBFUN void XSLTCALL
|
| 156 |
+
xsltApplyTemplates (xsltTransformContextPtr ctxt,
|
| 157 |
+
xmlNodePtr node,
|
| 158 |
+
xmlNodePtr inst,
|
| 159 |
+
xsltElemPreCompPtr comp);
|
| 160 |
+
XSLTPUBFUN void XSLTCALL
|
| 161 |
+
xsltChoose (xsltTransformContextPtr ctxt,
|
| 162 |
+
xmlNodePtr node,
|
| 163 |
+
xmlNodePtr inst,
|
| 164 |
+
xsltElemPreCompPtr comp);
|
| 165 |
+
XSLTPUBFUN void XSLTCALL
|
| 166 |
+
xsltIf (xsltTransformContextPtr ctxt,
|
| 167 |
+
xmlNodePtr node,
|
| 168 |
+
xmlNodePtr inst,
|
| 169 |
+
xsltElemPreCompPtr comp);
|
| 170 |
+
XSLTPUBFUN void XSLTCALL
|
| 171 |
+
xsltForEach (xsltTransformContextPtr ctxt,
|
| 172 |
+
xmlNodePtr node,
|
| 173 |
+
xmlNodePtr inst,
|
| 174 |
+
xsltElemPreCompPtr comp);
|
| 175 |
+
XSLTPUBFUN void XSLTCALL
|
| 176 |
+
xsltRegisterAllElement (xsltTransformContextPtr ctxt);
|
| 177 |
+
|
| 178 |
+
XSLTPUBFUN xmlNodePtr XSLTCALL
|
| 179 |
+
xsltCopyTextString (xsltTransformContextPtr ctxt,
|
| 180 |
+
xmlNodePtr target,
|
| 181 |
+
const xmlChar *string,
|
| 182 |
+
int noescape);
|
| 183 |
+
|
| 184 |
+
/* Following 2 functions needed for libexslt/functions.c */
|
| 185 |
+
XSLTPUBFUN void XSLTCALL
|
| 186 |
+
xsltLocalVariablePop (xsltTransformContextPtr ctxt,
|
| 187 |
+
int limitNr,
|
| 188 |
+
int level);
|
| 189 |
+
XSLTPUBFUN int XSLTCALL
|
| 190 |
+
xsltLocalVariablePush (xsltTransformContextPtr ctxt,
|
| 191 |
+
xsltStackElemPtr variable,
|
| 192 |
+
int level);
|
| 193 |
+
/*
|
| 194 |
+
* Hook for the debugger if activated.
|
| 195 |
+
*/
|
| 196 |
+
XSLTPUBFUN void XSLTCALL
|
| 197 |
+
xslHandleDebugger (xmlNodePtr cur,
|
| 198 |
+
xmlNodePtr node,
|
| 199 |
+
xsltTemplatePtr templ,
|
| 200 |
+
xsltTransformContextPtr ctxt);
|
| 201 |
+
|
| 202 |
+
#ifdef __cplusplus
|
| 203 |
+
}
|
| 204 |
+
#endif
|
| 205 |
+
|
| 206 |
+
#endif /* __XML_XSLT_TRANSFORM_H__ */
|
| 207 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/variables.h
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: interface for the variable matching and lookup.
|
| 3 |
+
* Description: interface for the variable matching and lookup.
|
| 4 |
+
*
|
| 5 |
+
* Copy: See Copyright for the status of this software.
|
| 6 |
+
*
|
| 7 |
+
* Author: Daniel Veillard
|
| 8 |
+
*/
|
| 9 |
+
|
| 10 |
+
#ifndef __XML_XSLT_VARIABLES_H__
|
| 11 |
+
#define __XML_XSLT_VARIABLES_H__
|
| 12 |
+
|
| 13 |
+
#include <libxml/xpath.h>
|
| 14 |
+
#include <libxml/xpathInternals.h>
|
| 15 |
+
#include "xsltexports.h"
|
| 16 |
+
#include "xsltInternals.h"
|
| 17 |
+
#include "functions.h"
|
| 18 |
+
|
| 19 |
+
#ifdef __cplusplus
|
| 20 |
+
extern "C" {
|
| 21 |
+
#endif
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
/**
|
| 25 |
+
* XSLT_REGISTER_VARIABLE_LOOKUP:
|
| 26 |
+
*
|
| 27 |
+
* Registering macro, not general purpose at all but used in different modules.
|
| 28 |
+
*/
|
| 29 |
+
|
| 30 |
+
#define XSLT_REGISTER_VARIABLE_LOOKUP(ctxt) \
|
| 31 |
+
xmlXPathRegisterVariableLookup((ctxt)->xpathCtxt, \
|
| 32 |
+
xsltXPathVariableLookup, (void *)(ctxt)); \
|
| 33 |
+
xsltRegisterAllFunctions((ctxt)->xpathCtxt); \
|
| 34 |
+
xsltRegisterAllElement(ctxt); \
|
| 35 |
+
(ctxt)->xpathCtxt->extra = ctxt
|
| 36 |
+
|
| 37 |
+
/*
|
| 38 |
+
* Flags for memory management of RVTs
|
| 39 |
+
*/
|
| 40 |
+
|
| 41 |
+
/**
|
| 42 |
+
* XSLT_RVT_LOCAL:
|
| 43 |
+
*
|
| 44 |
+
* RVT is destroyed after the current instructions ends.
|
| 45 |
+
*/
|
| 46 |
+
#define XSLT_RVT_LOCAL 1
|
| 47 |
+
|
| 48 |
+
/**
|
| 49 |
+
* XSLT_RVT_FUNC_RESULT:
|
| 50 |
+
*
|
| 51 |
+
* RVT is part of results returned with func:result. The RVT won't be
|
| 52 |
+
* destroyed after exiting a template and will be reset to XSLT_RVT_LOCAL or
|
| 53 |
+
* XSLT_RVT_VARIABLE in the template that receives the return value.
|
| 54 |
+
*/
|
| 55 |
+
#define XSLT_RVT_FUNC_RESULT 2
|
| 56 |
+
|
| 57 |
+
/**
|
| 58 |
+
* XSLT_RVT_GLOBAL:
|
| 59 |
+
*
|
| 60 |
+
* RVT is part of a global variable.
|
| 61 |
+
*/
|
| 62 |
+
#define XSLT_RVT_GLOBAL 3
|
| 63 |
+
|
| 64 |
+
/*
|
| 65 |
+
* Interfaces for the variable module.
|
| 66 |
+
*/
|
| 67 |
+
|
| 68 |
+
XSLTPUBFUN int XSLTCALL
|
| 69 |
+
xsltEvalGlobalVariables (xsltTransformContextPtr ctxt);
|
| 70 |
+
XSLTPUBFUN int XSLTCALL
|
| 71 |
+
xsltEvalUserParams (xsltTransformContextPtr ctxt,
|
| 72 |
+
const char **params);
|
| 73 |
+
XSLTPUBFUN int XSLTCALL
|
| 74 |
+
xsltQuoteUserParams (xsltTransformContextPtr ctxt,
|
| 75 |
+
const char **params);
|
| 76 |
+
XSLTPUBFUN int XSLTCALL
|
| 77 |
+
xsltEvalOneUserParam (xsltTransformContextPtr ctxt,
|
| 78 |
+
const xmlChar * name,
|
| 79 |
+
const xmlChar * value);
|
| 80 |
+
XSLTPUBFUN int XSLTCALL
|
| 81 |
+
xsltQuoteOneUserParam (xsltTransformContextPtr ctxt,
|
| 82 |
+
const xmlChar * name,
|
| 83 |
+
const xmlChar * value);
|
| 84 |
+
|
| 85 |
+
XSLTPUBFUN void XSLTCALL
|
| 86 |
+
xsltParseGlobalVariable (xsltStylesheetPtr style,
|
| 87 |
+
xmlNodePtr cur);
|
| 88 |
+
XSLTPUBFUN void XSLTCALL
|
| 89 |
+
xsltParseGlobalParam (xsltStylesheetPtr style,
|
| 90 |
+
xmlNodePtr cur);
|
| 91 |
+
XSLTPUBFUN void XSLTCALL
|
| 92 |
+
xsltParseStylesheetVariable (xsltTransformContextPtr ctxt,
|
| 93 |
+
xmlNodePtr cur);
|
| 94 |
+
XSLTPUBFUN void XSLTCALL
|
| 95 |
+
xsltParseStylesheetParam (xsltTransformContextPtr ctxt,
|
| 96 |
+
xmlNodePtr cur);
|
| 97 |
+
XSLTPUBFUN xsltStackElemPtr XSLTCALL
|
| 98 |
+
xsltParseStylesheetCallerParam (xsltTransformContextPtr ctxt,
|
| 99 |
+
xmlNodePtr cur);
|
| 100 |
+
XSLTPUBFUN int XSLTCALL
|
| 101 |
+
xsltAddStackElemList (xsltTransformContextPtr ctxt,
|
| 102 |
+
xsltStackElemPtr elems);
|
| 103 |
+
XSLTPUBFUN void XSLTCALL
|
| 104 |
+
xsltFreeGlobalVariables (xsltTransformContextPtr ctxt);
|
| 105 |
+
XSLTPUBFUN xmlXPathObjectPtr XSLTCALL
|
| 106 |
+
xsltVariableLookup (xsltTransformContextPtr ctxt,
|
| 107 |
+
const xmlChar *name,
|
| 108 |
+
const xmlChar *ns_uri);
|
| 109 |
+
XSLTPUBFUN xmlXPathObjectPtr XSLTCALL
|
| 110 |
+
xsltXPathVariableLookup (void *ctxt,
|
| 111 |
+
const xmlChar *name,
|
| 112 |
+
const xmlChar *ns_uri);
|
| 113 |
+
#ifdef __cplusplus
|
| 114 |
+
}
|
| 115 |
+
#endif
|
| 116 |
+
|
| 117 |
+
#endif /* __XML_XSLT_VARIABLES_H__ */
|
| 118 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/xslt.h
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: Interfaces, constants and types related to the XSLT engine
|
| 3 |
+
* Description: Interfaces, constants and types related to the XSLT engine
|
| 4 |
+
*
|
| 5 |
+
* Copy: See Copyright for the status of this software.
|
| 6 |
+
*
|
| 7 |
+
* Author: Daniel Veillard
|
| 8 |
+
*/
|
| 9 |
+
|
| 10 |
+
#ifndef __XML_XSLT_H__
|
| 11 |
+
#define __XML_XSLT_H__
|
| 12 |
+
|
| 13 |
+
#include <libxml/tree.h>
|
| 14 |
+
#include "xsltexports.h"
|
| 15 |
+
|
| 16 |
+
#ifdef __cplusplus
|
| 17 |
+
extern "C" {
|
| 18 |
+
#endif
|
| 19 |
+
|
| 20 |
+
/**
|
| 21 |
+
* XSLT_DEFAULT_VERSION:
|
| 22 |
+
*
|
| 23 |
+
* The default version of XSLT supported.
|
| 24 |
+
*/
|
| 25 |
+
#define XSLT_DEFAULT_VERSION "1.0"
|
| 26 |
+
|
| 27 |
+
/**
|
| 28 |
+
* XSLT_DEFAULT_VENDOR:
|
| 29 |
+
*
|
| 30 |
+
* The XSLT "vendor" string for this processor.
|
| 31 |
+
*/
|
| 32 |
+
#define XSLT_DEFAULT_VENDOR "libxslt"
|
| 33 |
+
|
| 34 |
+
/**
|
| 35 |
+
* XSLT_DEFAULT_URL:
|
| 36 |
+
*
|
| 37 |
+
* The XSLT "vendor" URL for this processor.
|
| 38 |
+
*/
|
| 39 |
+
#define XSLT_DEFAULT_URL "http://xmlsoft.org/XSLT/"
|
| 40 |
+
|
| 41 |
+
/**
|
| 42 |
+
* XSLT_NAMESPACE:
|
| 43 |
+
*
|
| 44 |
+
* The XSLT specification namespace.
|
| 45 |
+
*/
|
| 46 |
+
#define XSLT_NAMESPACE ((const xmlChar *)"http://www.w3.org/1999/XSL/Transform")
|
| 47 |
+
|
| 48 |
+
/**
|
| 49 |
+
* XSLT_PARSE_OPTIONS:
|
| 50 |
+
*
|
| 51 |
+
* The set of options to pass to an xmlReadxxx when loading files for
|
| 52 |
+
* XSLT consumption.
|
| 53 |
+
*/
|
| 54 |
+
#define XSLT_PARSE_OPTIONS \
|
| 55 |
+
XML_PARSE_NOENT | XML_PARSE_DTDLOAD | XML_PARSE_DTDATTR | XML_PARSE_NOCDATA
|
| 56 |
+
|
| 57 |
+
/**
|
| 58 |
+
* xsltMaxDepth:
|
| 59 |
+
*
|
| 60 |
+
* This value is used to detect templates loops.
|
| 61 |
+
*/
|
| 62 |
+
XSLTPUBVAR int xsltMaxDepth;
|
| 63 |
+
|
| 64 |
+
/**
|
| 65 |
+
* * xsltMaxVars:
|
| 66 |
+
* *
|
| 67 |
+
* * This value is used to detect templates loops.
|
| 68 |
+
* */
|
| 69 |
+
XSLTPUBVAR int xsltMaxVars;
|
| 70 |
+
|
| 71 |
+
/**
|
| 72 |
+
* xsltEngineVersion:
|
| 73 |
+
*
|
| 74 |
+
* The version string for libxslt.
|
| 75 |
+
*/
|
| 76 |
+
XSLTPUBVAR const char *xsltEngineVersion;
|
| 77 |
+
|
| 78 |
+
/**
|
| 79 |
+
* xsltLibxsltVersion:
|
| 80 |
+
*
|
| 81 |
+
* The version of libxslt compiled.
|
| 82 |
+
*/
|
| 83 |
+
XSLTPUBVAR const int xsltLibxsltVersion;
|
| 84 |
+
|
| 85 |
+
/**
|
| 86 |
+
* xsltLibxmlVersion:
|
| 87 |
+
*
|
| 88 |
+
* The version of libxml libxslt was compiled against.
|
| 89 |
+
*/
|
| 90 |
+
XSLTPUBVAR const int xsltLibxmlVersion;
|
| 91 |
+
|
| 92 |
+
/*
|
| 93 |
+
* Global initialization function.
|
| 94 |
+
*/
|
| 95 |
+
|
| 96 |
+
XSLTPUBFUN void XSLTCALL
|
| 97 |
+
xsltInit (void);
|
| 98 |
+
|
| 99 |
+
/*
|
| 100 |
+
* Global cleanup function.
|
| 101 |
+
*/
|
| 102 |
+
XSLTPUBFUN void XSLTCALL
|
| 103 |
+
xsltCleanupGlobals (void);
|
| 104 |
+
|
| 105 |
+
#ifdef __cplusplus
|
| 106 |
+
}
|
| 107 |
+
#endif
|
| 108 |
+
|
| 109 |
+
#endif /* __XML_XSLT_H__ */
|
| 110 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/xsltInternals.h
ADDED
|
@@ -0,0 +1,1995 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: internal data structures, constants and functions
|
| 3 |
+
* Description: Internal data structures, constants and functions used
|
| 4 |
+
* by the XSLT engine.
|
| 5 |
+
* They are not part of the API or ABI, i.e. they can change
|
| 6 |
+
* without prior notice, use carefully.
|
| 7 |
+
*
|
| 8 |
+
* Copy: See Copyright for the status of this software.
|
| 9 |
+
*
|
| 10 |
+
* Author: Daniel Veillard
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef __XML_XSLT_INTERNALS_H__
|
| 14 |
+
#define __XML_XSLT_INTERNALS_H__
|
| 15 |
+
|
| 16 |
+
#include <libxml/tree.h>
|
| 17 |
+
#include <libxml/hash.h>
|
| 18 |
+
#include <libxml/xpath.h>
|
| 19 |
+
#include <libxml/xmlerror.h>
|
| 20 |
+
#include <libxml/dict.h>
|
| 21 |
+
#include <libxml/xmlstring.h>
|
| 22 |
+
#include <libxslt/xslt.h>
|
| 23 |
+
#include "xsltexports.h"
|
| 24 |
+
#include "numbersInternals.h"
|
| 25 |
+
|
| 26 |
+
#ifdef __cplusplus
|
| 27 |
+
extern "C" {
|
| 28 |
+
#endif
|
| 29 |
+
|
| 30 |
+
/* #define XSLT_DEBUG_PROFILE_CACHE */
|
| 31 |
+
|
| 32 |
+
/**
|
| 33 |
+
* XSLT_IS_TEXT_NODE:
|
| 34 |
+
*
|
| 35 |
+
* check if the argument is a text node
|
| 36 |
+
*/
|
| 37 |
+
#define XSLT_IS_TEXT_NODE(n) ((n != NULL) && \
|
| 38 |
+
(((n)->type == XML_TEXT_NODE) || \
|
| 39 |
+
((n)->type == XML_CDATA_SECTION_NODE)))
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
/**
|
| 43 |
+
* XSLT_MARK_RES_TREE_FRAG:
|
| 44 |
+
*
|
| 45 |
+
* internal macro to set up tree fragments
|
| 46 |
+
*/
|
| 47 |
+
#define XSLT_MARK_RES_TREE_FRAG(n) \
|
| 48 |
+
(n)->name = (char *) xmlStrdup(BAD_CAST " fake node libxslt");
|
| 49 |
+
|
| 50 |
+
/**
|
| 51 |
+
* XSLT_IS_RES_TREE_FRAG:
|
| 52 |
+
*
|
| 53 |
+
* internal macro to test tree fragments
|
| 54 |
+
*/
|
| 55 |
+
#define XSLT_IS_RES_TREE_FRAG(n) \
|
| 56 |
+
((n != NULL) && ((n)->type == XML_DOCUMENT_NODE) && \
|
| 57 |
+
((n)->name != NULL) && ((n)->name[0] == ' '))
|
| 58 |
+
|
| 59 |
+
/**
|
| 60 |
+
* XSLT_REFACTORED_KEYCOMP:
|
| 61 |
+
*
|
| 62 |
+
* Internal define to enable on-demand xsl:key computation.
|
| 63 |
+
* That's the only mode now but the define is kept for compatibility
|
| 64 |
+
*/
|
| 65 |
+
#define XSLT_REFACTORED_KEYCOMP
|
| 66 |
+
|
| 67 |
+
/**
|
| 68 |
+
* XSLT_FAST_IF:
|
| 69 |
+
*
|
| 70 |
+
* Internal define to enable usage of xmlXPathCompiledEvalToBoolean()
|
| 71 |
+
* for XSLT "tests"; e.g. in <xsl:if test="/foo/bar">
|
| 72 |
+
*/
|
| 73 |
+
#define XSLT_FAST_IF
|
| 74 |
+
|
| 75 |
+
/**
|
| 76 |
+
* XSLT_REFACTORED:
|
| 77 |
+
*
|
| 78 |
+
* Internal define to enable the refactored parts of Libxslt.
|
| 79 |
+
*/
|
| 80 |
+
/* #define XSLT_REFACTORED */
|
| 81 |
+
/* ==================================================================== */
|
| 82 |
+
|
| 83 |
+
/**
|
| 84 |
+
* XSLT_REFACTORED_VARS:
|
| 85 |
+
*
|
| 86 |
+
* Internal define to enable the refactored variable part of libxslt
|
| 87 |
+
*/
|
| 88 |
+
#define XSLT_REFACTORED_VARS
|
| 89 |
+
|
| 90 |
+
#ifdef XSLT_REFACTORED
|
| 91 |
+
|
| 92 |
+
extern const xmlChar *xsltXSLTAttrMarker;
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
/* TODO: REMOVE: #define XSLT_REFACTORED_EXCLRESNS */
|
| 96 |
+
|
| 97 |
+
/* TODO: REMOVE: #define XSLT_REFACTORED_NSALIAS */
|
| 98 |
+
|
| 99 |
+
/**
|
| 100 |
+
* XSLT_REFACTORED_XSLT_NSCOMP
|
| 101 |
+
*
|
| 102 |
+
* Internal define to enable the pointer-comparison of
|
| 103 |
+
* namespaces of XSLT elements.
|
| 104 |
+
*/
|
| 105 |
+
/* #define XSLT_REFACTORED_XSLT_NSCOMP */
|
| 106 |
+
|
| 107 |
+
#ifdef XSLT_REFACTORED_XSLT_NSCOMP
|
| 108 |
+
|
| 109 |
+
extern const xmlChar *xsltConstNamespaceNameXSLT;
|
| 110 |
+
|
| 111 |
+
/**
|
| 112 |
+
* IS_XSLT_ELEM_FAST:
|
| 113 |
+
*
|
| 114 |
+
* quick test to detect XSLT elements
|
| 115 |
+
*/
|
| 116 |
+
#define IS_XSLT_ELEM_FAST(n) \
|
| 117 |
+
(((n) != NULL) && ((n)->ns != NULL) && \
|
| 118 |
+
((n)->ns->href == xsltConstNamespaceNameXSLT))
|
| 119 |
+
|
| 120 |
+
/**
|
| 121 |
+
* IS_XSLT_ATTR_FAST:
|
| 122 |
+
*
|
| 123 |
+
* quick test to detect XSLT attributes
|
| 124 |
+
*/
|
| 125 |
+
#define IS_XSLT_ATTR_FAST(a) \
|
| 126 |
+
(((a) != NULL) && ((a)->ns != NULL) && \
|
| 127 |
+
((a)->ns->href == xsltConstNamespaceNameXSLT))
|
| 128 |
+
|
| 129 |
+
/**
|
| 130 |
+
* XSLT_HAS_INTERNAL_NSMAP:
|
| 131 |
+
*
|
| 132 |
+
* check for namespace mapping
|
| 133 |
+
*/
|
| 134 |
+
#define XSLT_HAS_INTERNAL_NSMAP(s) \
|
| 135 |
+
(((s) != NULL) && ((s)->principal) && \
|
| 136 |
+
((s)->principal->principalData) && \
|
| 137 |
+
((s)->principal->principalData->nsMap))
|
| 138 |
+
|
| 139 |
+
/**
|
| 140 |
+
* XSLT_GET_INTERNAL_NSMAP:
|
| 141 |
+
*
|
| 142 |
+
* get pointer to namespace map
|
| 143 |
+
*/
|
| 144 |
+
#define XSLT_GET_INTERNAL_NSMAP(s) ((s)->principal->principalData->nsMap)
|
| 145 |
+
|
| 146 |
+
#else /* XSLT_REFACTORED_XSLT_NSCOMP */
|
| 147 |
+
|
| 148 |
+
/**
|
| 149 |
+
* IS_XSLT_ELEM_FAST:
|
| 150 |
+
*
|
| 151 |
+
* quick check whether this is an xslt element
|
| 152 |
+
*/
|
| 153 |
+
#define IS_XSLT_ELEM_FAST(n) \
|
| 154 |
+
(((n) != NULL) && ((n)->ns != NULL) && \
|
| 155 |
+
(xmlStrEqual((n)->ns->href, XSLT_NAMESPACE)))
|
| 156 |
+
|
| 157 |
+
/**
|
| 158 |
+
* IS_XSLT_ATTR_FAST:
|
| 159 |
+
*
|
| 160 |
+
* quick check for xslt namespace attribute
|
| 161 |
+
*/
|
| 162 |
+
#define IS_XSLT_ATTR_FAST(a) \
|
| 163 |
+
(((a) != NULL) && ((a)->ns != NULL) && \
|
| 164 |
+
(xmlStrEqual((a)->ns->href, XSLT_NAMESPACE)))
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
#endif /* XSLT_REFACTORED_XSLT_NSCOMP */
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
/**
|
| 171 |
+
* XSLT_REFACTORED_MANDATORY_VERSION:
|
| 172 |
+
*
|
| 173 |
+
* TODO: Currently disabled to surpress regression test failures, since
|
| 174 |
+
* the old behaviour was that a missing version attribute
|
| 175 |
+
* produced a only a warning and not an error, which was incerrect.
|
| 176 |
+
* So the regression tests need to be fixed if this is enabled.
|
| 177 |
+
*/
|
| 178 |
+
/* #define XSLT_REFACTORED_MANDATORY_VERSION */
|
| 179 |
+
|
| 180 |
+
/**
|
| 181 |
+
* xsltPointerList:
|
| 182 |
+
*
|
| 183 |
+
* Pointer-list for various purposes.
|
| 184 |
+
*/
|
| 185 |
+
typedef struct _xsltPointerList xsltPointerList;
|
| 186 |
+
typedef xsltPointerList *xsltPointerListPtr;
|
| 187 |
+
struct _xsltPointerList {
|
| 188 |
+
void **items;
|
| 189 |
+
int number;
|
| 190 |
+
int size;
|
| 191 |
+
};
|
| 192 |
+
|
| 193 |
+
#endif
|
| 194 |
+
|
| 195 |
+
/**
|
| 196 |
+
* XSLT_REFACTORED_PARSING:
|
| 197 |
+
*
|
| 198 |
+
* Internal define to enable the refactored parts of Libxslt
|
| 199 |
+
* related to parsing.
|
| 200 |
+
*/
|
| 201 |
+
/* #define XSLT_REFACTORED_PARSING */
|
| 202 |
+
|
| 203 |
+
/**
|
| 204 |
+
* XSLT_MAX_SORT:
|
| 205 |
+
*
|
| 206 |
+
* Max number of specified xsl:sort on an element.
|
| 207 |
+
*/
|
| 208 |
+
#define XSLT_MAX_SORT 15
|
| 209 |
+
|
| 210 |
+
/**
|
| 211 |
+
* XSLT_PAT_NO_PRIORITY:
|
| 212 |
+
*
|
| 213 |
+
* Specific value for pattern without priority expressed.
|
| 214 |
+
*/
|
| 215 |
+
#define XSLT_PAT_NO_PRIORITY -12345789
|
| 216 |
+
|
| 217 |
+
/**
|
| 218 |
+
* xsltRuntimeExtra:
|
| 219 |
+
*
|
| 220 |
+
* Extra information added to the transformation context.
|
| 221 |
+
*/
|
| 222 |
+
typedef struct _xsltRuntimeExtra xsltRuntimeExtra;
|
| 223 |
+
typedef xsltRuntimeExtra *xsltRuntimeExtraPtr;
|
| 224 |
+
struct _xsltRuntimeExtra {
|
| 225 |
+
void *info; /* pointer to the extra data */
|
| 226 |
+
xmlFreeFunc deallocate; /* pointer to the deallocation routine */
|
| 227 |
+
union { /* dual-purpose field */
|
| 228 |
+
void *ptr; /* data not needing deallocation */
|
| 229 |
+
int ival; /* integer value storage */
|
| 230 |
+
} val;
|
| 231 |
+
};
|
| 232 |
+
|
| 233 |
+
/**
|
| 234 |
+
* XSLT_RUNTIME_EXTRA_LST:
|
| 235 |
+
* @ctxt: the transformation context
|
| 236 |
+
* @nr: the index
|
| 237 |
+
*
|
| 238 |
+
* Macro used to access extra information stored in the context
|
| 239 |
+
*/
|
| 240 |
+
#define XSLT_RUNTIME_EXTRA_LST(ctxt, nr) (ctxt)->extras[(nr)].info
|
| 241 |
+
/**
|
| 242 |
+
* XSLT_RUNTIME_EXTRA_FREE:
|
| 243 |
+
* @ctxt: the transformation context
|
| 244 |
+
* @nr: the index
|
| 245 |
+
*
|
| 246 |
+
* Macro used to free extra information stored in the context
|
| 247 |
+
*/
|
| 248 |
+
#define XSLT_RUNTIME_EXTRA_FREE(ctxt, nr) (ctxt)->extras[(nr)].deallocate
|
| 249 |
+
/**
|
| 250 |
+
* XSLT_RUNTIME_EXTRA:
|
| 251 |
+
* @ctxt: the transformation context
|
| 252 |
+
* @nr: the index
|
| 253 |
+
*
|
| 254 |
+
* Macro used to define extra information stored in the context
|
| 255 |
+
*/
|
| 256 |
+
#define XSLT_RUNTIME_EXTRA(ctxt, nr, typ) (ctxt)->extras[(nr)].val.typ
|
| 257 |
+
|
| 258 |
+
/**
|
| 259 |
+
* xsltTemplate:
|
| 260 |
+
*
|
| 261 |
+
* The in-memory structure corresponding to an XSLT Template.
|
| 262 |
+
*/
|
| 263 |
+
typedef struct _xsltTemplate xsltTemplate;
|
| 264 |
+
typedef xsltTemplate *xsltTemplatePtr;
|
| 265 |
+
struct _xsltTemplate {
|
| 266 |
+
struct _xsltTemplate *next;/* chained list sorted by priority */
|
| 267 |
+
struct _xsltStylesheet *style;/* the containing stylesheet */
|
| 268 |
+
xmlChar *match; /* the matching string */
|
| 269 |
+
float priority; /* as given from the stylesheet, not computed */
|
| 270 |
+
const xmlChar *name; /* the local part of the name QName */
|
| 271 |
+
const xmlChar *nameURI; /* the URI part of the name QName */
|
| 272 |
+
const xmlChar *mode;/* the local part of the mode QName */
|
| 273 |
+
const xmlChar *modeURI;/* the URI part of the mode QName */
|
| 274 |
+
xmlNodePtr content; /* the template replacement value */
|
| 275 |
+
xmlNodePtr elem; /* the source element */
|
| 276 |
+
|
| 277 |
+
/*
|
| 278 |
+
* TODO: @inheritedNsNr and @inheritedNs won't be used in the
|
| 279 |
+
* refactored code.
|
| 280 |
+
*/
|
| 281 |
+
int inheritedNsNr; /* number of inherited namespaces */
|
| 282 |
+
xmlNsPtr *inheritedNs;/* inherited non-excluded namespaces */
|
| 283 |
+
|
| 284 |
+
/* Profiling information */
|
| 285 |
+
int nbCalls; /* the number of time the template was called */
|
| 286 |
+
unsigned long time; /* the time spent in this template */
|
| 287 |
+
void *params; /* xsl:param instructions */
|
| 288 |
+
|
| 289 |
+
int templNr; /* Nb of templates in the stack */
|
| 290 |
+
int templMax; /* Size of the templtes stack */
|
| 291 |
+
xsltTemplatePtr *templCalledTab; /* templates called */
|
| 292 |
+
int *templCountTab; /* .. and how often */
|
| 293 |
+
|
| 294 |
+
/* Conflict resolution */
|
| 295 |
+
int position;
|
| 296 |
+
};
|
| 297 |
+
|
| 298 |
+
/**
|
| 299 |
+
* xsltDecimalFormat:
|
| 300 |
+
*
|
| 301 |
+
* Data structure of decimal-format.
|
| 302 |
+
*/
|
| 303 |
+
typedef struct _xsltDecimalFormat xsltDecimalFormat;
|
| 304 |
+
typedef xsltDecimalFormat *xsltDecimalFormatPtr;
|
| 305 |
+
struct _xsltDecimalFormat {
|
| 306 |
+
struct _xsltDecimalFormat *next; /* chained list */
|
| 307 |
+
xmlChar *name;
|
| 308 |
+
/* Used for interpretation of pattern */
|
| 309 |
+
xmlChar *digit;
|
| 310 |
+
xmlChar *patternSeparator;
|
| 311 |
+
/* May appear in result */
|
| 312 |
+
xmlChar *minusSign;
|
| 313 |
+
xmlChar *infinity;
|
| 314 |
+
xmlChar *noNumber; /* Not-a-number */
|
| 315 |
+
/* Used for interpretation of pattern and may appear in result */
|
| 316 |
+
xmlChar *decimalPoint;
|
| 317 |
+
xmlChar *grouping;
|
| 318 |
+
xmlChar *percent;
|
| 319 |
+
xmlChar *permille;
|
| 320 |
+
xmlChar *zeroDigit;
|
| 321 |
+
const xmlChar *nsUri;
|
| 322 |
+
};
|
| 323 |
+
|
| 324 |
+
/**
|
| 325 |
+
* xsltDocument:
|
| 326 |
+
*
|
| 327 |
+
* Data structure associated to a parsed document.
|
| 328 |
+
*/
|
| 329 |
+
typedef struct _xsltDocument xsltDocument;
|
| 330 |
+
typedef xsltDocument *xsltDocumentPtr;
|
| 331 |
+
struct _xsltDocument {
|
| 332 |
+
struct _xsltDocument *next; /* documents are kept in a chained list */
|
| 333 |
+
int main; /* is this the main document */
|
| 334 |
+
xmlDocPtr doc; /* the parsed document */
|
| 335 |
+
void *keys; /* key tables storage */
|
| 336 |
+
struct _xsltDocument *includes; /* subsidiary includes */
|
| 337 |
+
int preproc; /* pre-processing already done */
|
| 338 |
+
int nbKeysComputed;
|
| 339 |
+
};
|
| 340 |
+
|
| 341 |
+
/**
|
| 342 |
+
* xsltKeyDef:
|
| 343 |
+
*
|
| 344 |
+
* Representation of an xsl:key.
|
| 345 |
+
*/
|
| 346 |
+
typedef struct _xsltKeyDef xsltKeyDef;
|
| 347 |
+
typedef xsltKeyDef *xsltKeyDefPtr;
|
| 348 |
+
struct _xsltKeyDef {
|
| 349 |
+
struct _xsltKeyDef *next;
|
| 350 |
+
xmlNodePtr inst;
|
| 351 |
+
xmlChar *name;
|
| 352 |
+
xmlChar *nameURI;
|
| 353 |
+
xmlChar *match;
|
| 354 |
+
xmlChar *use;
|
| 355 |
+
xmlXPathCompExprPtr comp;
|
| 356 |
+
xmlXPathCompExprPtr usecomp;
|
| 357 |
+
xmlNsPtr *nsList; /* the namespaces in scope */
|
| 358 |
+
int nsNr; /* the number of namespaces in scope */
|
| 359 |
+
};
|
| 360 |
+
|
| 361 |
+
/**
|
| 362 |
+
* xsltKeyTable:
|
| 363 |
+
*
|
| 364 |
+
* Holds the computed keys for key definitions of the same QName.
|
| 365 |
+
* Is owned by an xsltDocument.
|
| 366 |
+
*/
|
| 367 |
+
typedef struct _xsltKeyTable xsltKeyTable;
|
| 368 |
+
typedef xsltKeyTable *xsltKeyTablePtr;
|
| 369 |
+
struct _xsltKeyTable {
|
| 370 |
+
struct _xsltKeyTable *next;
|
| 371 |
+
xmlChar *name;
|
| 372 |
+
xmlChar *nameURI;
|
| 373 |
+
xmlHashTablePtr keys;
|
| 374 |
+
};
|
| 375 |
+
|
| 376 |
+
/*
|
| 377 |
+
* The in-memory structure corresponding to an XSLT Stylesheet.
|
| 378 |
+
* NOTE: most of the content is simply linked from the doc tree
|
| 379 |
+
* structure, no specific allocation is made.
|
| 380 |
+
*/
|
| 381 |
+
typedef struct _xsltStylesheet xsltStylesheet;
|
| 382 |
+
typedef xsltStylesheet *xsltStylesheetPtr;
|
| 383 |
+
|
| 384 |
+
typedef struct _xsltTransformContext xsltTransformContext;
|
| 385 |
+
typedef xsltTransformContext *xsltTransformContextPtr;
|
| 386 |
+
|
| 387 |
+
/**
|
| 388 |
+
* xsltElemPreComp:
|
| 389 |
+
*
|
| 390 |
+
* The in-memory structure corresponding to element precomputed data,
|
| 391 |
+
* designed to be extended by extension implementors.
|
| 392 |
+
*/
|
| 393 |
+
typedef struct _xsltElemPreComp xsltElemPreComp;
|
| 394 |
+
typedef xsltElemPreComp *xsltElemPreCompPtr;
|
| 395 |
+
|
| 396 |
+
/**
|
| 397 |
+
* xsltTransformFunction:
|
| 398 |
+
* @ctxt: the XSLT transformation context
|
| 399 |
+
* @node: the input node
|
| 400 |
+
* @inst: the stylesheet node
|
| 401 |
+
* @comp: the compiled information from the stylesheet
|
| 402 |
+
*
|
| 403 |
+
* Signature of the function associated to elements part of the
|
| 404 |
+
* stylesheet language like xsl:if or xsl:apply-templates.
|
| 405 |
+
*/
|
| 406 |
+
typedef void (*xsltTransformFunction) (xsltTransformContextPtr ctxt,
|
| 407 |
+
xmlNodePtr node,
|
| 408 |
+
xmlNodePtr inst,
|
| 409 |
+
xsltElemPreCompPtr comp);
|
| 410 |
+
|
| 411 |
+
/**
|
| 412 |
+
* xsltSortFunc:
|
| 413 |
+
* @ctxt: a transformation context
|
| 414 |
+
* @sorts: the node-set to sort
|
| 415 |
+
* @nbsorts: the number of sorts
|
| 416 |
+
*
|
| 417 |
+
* Signature of the function to use during sorting
|
| 418 |
+
*/
|
| 419 |
+
typedef void (*xsltSortFunc) (xsltTransformContextPtr ctxt, xmlNodePtr *sorts,
|
| 420 |
+
int nbsorts);
|
| 421 |
+
|
| 422 |
+
typedef enum {
|
| 423 |
+
XSLT_FUNC_COPY=1,
|
| 424 |
+
XSLT_FUNC_SORT,
|
| 425 |
+
XSLT_FUNC_TEXT,
|
| 426 |
+
XSLT_FUNC_ELEMENT,
|
| 427 |
+
XSLT_FUNC_ATTRIBUTE,
|
| 428 |
+
XSLT_FUNC_COMMENT,
|
| 429 |
+
XSLT_FUNC_PI,
|
| 430 |
+
XSLT_FUNC_COPYOF,
|
| 431 |
+
XSLT_FUNC_VALUEOF,
|
| 432 |
+
XSLT_FUNC_NUMBER,
|
| 433 |
+
XSLT_FUNC_APPLYIMPORTS,
|
| 434 |
+
XSLT_FUNC_CALLTEMPLATE,
|
| 435 |
+
XSLT_FUNC_APPLYTEMPLATES,
|
| 436 |
+
XSLT_FUNC_CHOOSE,
|
| 437 |
+
XSLT_FUNC_IF,
|
| 438 |
+
XSLT_FUNC_FOREACH,
|
| 439 |
+
XSLT_FUNC_DOCUMENT,
|
| 440 |
+
XSLT_FUNC_WITHPARAM,
|
| 441 |
+
XSLT_FUNC_PARAM,
|
| 442 |
+
XSLT_FUNC_VARIABLE,
|
| 443 |
+
XSLT_FUNC_WHEN,
|
| 444 |
+
XSLT_FUNC_EXTENSION
|
| 445 |
+
#ifdef XSLT_REFACTORED
|
| 446 |
+
,
|
| 447 |
+
XSLT_FUNC_OTHERWISE,
|
| 448 |
+
XSLT_FUNC_FALLBACK,
|
| 449 |
+
XSLT_FUNC_MESSAGE,
|
| 450 |
+
XSLT_FUNC_INCLUDE,
|
| 451 |
+
XSLT_FUNC_ATTRSET,
|
| 452 |
+
XSLT_FUNC_LITERAL_RESULT_ELEMENT,
|
| 453 |
+
XSLT_FUNC_UNKOWN_FORWARDS_COMPAT
|
| 454 |
+
#endif
|
| 455 |
+
} xsltStyleType;
|
| 456 |
+
|
| 457 |
+
/**
|
| 458 |
+
* xsltElemPreCompDeallocator:
|
| 459 |
+
* @comp: the #xsltElemPreComp to free up
|
| 460 |
+
*
|
| 461 |
+
* Deallocates an #xsltElemPreComp structure.
|
| 462 |
+
*/
|
| 463 |
+
typedef void (*xsltElemPreCompDeallocator) (xsltElemPreCompPtr comp);
|
| 464 |
+
|
| 465 |
+
/**
|
| 466 |
+
* xsltElemPreComp:
|
| 467 |
+
*
|
| 468 |
+
* The basic structure for compiled items of the AST of the XSLT processor.
|
| 469 |
+
* This structure is also intended to be extended by extension implementors.
|
| 470 |
+
* TODO: This is somehow not nice, since it has a "free" field, which
|
| 471 |
+
* derived stylesheet-structs do not have.
|
| 472 |
+
*/
|
| 473 |
+
struct _xsltElemPreComp {
|
| 474 |
+
xsltElemPreCompPtr next; /* next item in the global chained
|
| 475 |
+
list held by xsltStylesheet. */
|
| 476 |
+
xsltStyleType type; /* type of the element */
|
| 477 |
+
xsltTransformFunction func; /* handling function */
|
| 478 |
+
xmlNodePtr inst; /* the node in the stylesheet's tree
|
| 479 |
+
corresponding to this item */
|
| 480 |
+
|
| 481 |
+
/* end of common part */
|
| 482 |
+
xsltElemPreCompDeallocator free; /* the deallocator */
|
| 483 |
+
};
|
| 484 |
+
|
| 485 |
+
/**
|
| 486 |
+
* xsltStylePreComp:
|
| 487 |
+
*
|
| 488 |
+
* The abstract basic structure for items of the XSLT processor.
|
| 489 |
+
* This includes:
|
| 490 |
+
* 1) compiled forms of XSLT instructions (xsl:if, xsl:attribute, etc.)
|
| 491 |
+
* 2) compiled forms of literal result elements
|
| 492 |
+
* 3) compiled forms of extension elements
|
| 493 |
+
*/
|
| 494 |
+
typedef struct _xsltStylePreComp xsltStylePreComp;
|
| 495 |
+
typedef xsltStylePreComp *xsltStylePreCompPtr;
|
| 496 |
+
|
| 497 |
+
#ifdef XSLT_REFACTORED
|
| 498 |
+
|
| 499 |
+
/*
|
| 500 |
+
* Some pointer-list utility functions.
|
| 501 |
+
*/
|
| 502 |
+
XSLTPUBFUN xsltPointerListPtr XSLTCALL
|
| 503 |
+
xsltPointerListCreate (int initialSize);
|
| 504 |
+
XSLTPUBFUN void XSLTCALL
|
| 505 |
+
xsltPointerListFree (xsltPointerListPtr list);
|
| 506 |
+
XSLTPUBFUN void XSLTCALL
|
| 507 |
+
xsltPointerListClear (xsltPointerListPtr list);
|
| 508 |
+
XSLTPUBFUN int XSLTCALL
|
| 509 |
+
xsltPointerListAddSize (xsltPointerListPtr list,
|
| 510 |
+
void *item,
|
| 511 |
+
int initialSize);
|
| 512 |
+
|
| 513 |
+
/************************************************************************
|
| 514 |
+
* *
|
| 515 |
+
* Refactored structures *
|
| 516 |
+
* *
|
| 517 |
+
************************************************************************/
|
| 518 |
+
|
| 519 |
+
typedef struct _xsltNsListContainer xsltNsListContainer;
|
| 520 |
+
typedef xsltNsListContainer *xsltNsListContainerPtr;
|
| 521 |
+
struct _xsltNsListContainer {
|
| 522 |
+
xmlNsPtr *list;
|
| 523 |
+
int totalNumber;
|
| 524 |
+
int xpathNumber;
|
| 525 |
+
};
|
| 526 |
+
|
| 527 |
+
/**
|
| 528 |
+
* XSLT_ITEM_COMPATIBILITY_FIELDS:
|
| 529 |
+
*
|
| 530 |
+
* Fields for API compatibility to the structure
|
| 531 |
+
* _xsltElemPreComp which is used for extension functions.
|
| 532 |
+
* Note that @next is used for storage; it does not reflect a next
|
| 533 |
+
* sibling in the tree.
|
| 534 |
+
* TODO: Evaluate if we really need such a compatibility.
|
| 535 |
+
*/
|
| 536 |
+
#define XSLT_ITEM_COMPATIBILITY_FIELDS \
|
| 537 |
+
xsltElemPreCompPtr next;\
|
| 538 |
+
xsltStyleType type;\
|
| 539 |
+
xsltTransformFunction func;\
|
| 540 |
+
xmlNodePtr inst;
|
| 541 |
+
|
| 542 |
+
/**
|
| 543 |
+
* XSLT_ITEM_NAVIGATION_FIELDS:
|
| 544 |
+
*
|
| 545 |
+
* Currently empty.
|
| 546 |
+
* TODO: It is intended to hold navigational fields in the future.
|
| 547 |
+
*/
|
| 548 |
+
#define XSLT_ITEM_NAVIGATION_FIELDS
|
| 549 |
+
/*
|
| 550 |
+
xsltStylePreCompPtr parent;\
|
| 551 |
+
xsltStylePreCompPtr children;\
|
| 552 |
+
xsltStylePreCompPtr nextItem;
|
| 553 |
+
*/
|
| 554 |
+
|
| 555 |
+
/**
|
| 556 |
+
* XSLT_ITEM_NSINSCOPE_FIELDS:
|
| 557 |
+
*
|
| 558 |
+
* The in-scope namespaces.
|
| 559 |
+
*/
|
| 560 |
+
#define XSLT_ITEM_NSINSCOPE_FIELDS xsltNsListContainerPtr inScopeNs;
|
| 561 |
+
|
| 562 |
+
/**
|
| 563 |
+
* XSLT_ITEM_COMMON_FIELDS:
|
| 564 |
+
*
|
| 565 |
+
* Common fields used for all items.
|
| 566 |
+
*/
|
| 567 |
+
#define XSLT_ITEM_COMMON_FIELDS \
|
| 568 |
+
XSLT_ITEM_COMPATIBILITY_FIELDS \
|
| 569 |
+
XSLT_ITEM_NAVIGATION_FIELDS \
|
| 570 |
+
XSLT_ITEM_NSINSCOPE_FIELDS
|
| 571 |
+
|
| 572 |
+
/**
|
| 573 |
+
* _xsltStylePreComp:
|
| 574 |
+
*
|
| 575 |
+
* The abstract basic structure for items of the XSLT processor.
|
| 576 |
+
* This includes:
|
| 577 |
+
* 1) compiled forms of XSLT instructions (e.g. xsl:if, xsl:attribute, etc.)
|
| 578 |
+
* 2) compiled forms of literal result elements
|
| 579 |
+
* 3) various properties for XSLT instructions (e.g. xsl:when,
|
| 580 |
+
* xsl:with-param)
|
| 581 |
+
*
|
| 582 |
+
* REVISIT TODO: Keep this structure equal to the fields
|
| 583 |
+
* defined by XSLT_ITEM_COMMON_FIELDS
|
| 584 |
+
*/
|
| 585 |
+
struct _xsltStylePreComp {
|
| 586 |
+
xsltElemPreCompPtr next; /* next item in the global chained
|
| 587 |
+
list held by xsltStylesheet */
|
| 588 |
+
xsltStyleType type; /* type of the item */
|
| 589 |
+
xsltTransformFunction func; /* handling function */
|
| 590 |
+
xmlNodePtr inst; /* the node in the stylesheet's tree
|
| 591 |
+
corresponding to this item. */
|
| 592 |
+
/* Currently no navigational fields. */
|
| 593 |
+
xsltNsListContainerPtr inScopeNs;
|
| 594 |
+
};
|
| 595 |
+
|
| 596 |
+
/**
|
| 597 |
+
* xsltStyleBasicEmptyItem:
|
| 598 |
+
*
|
| 599 |
+
* Abstract structure only used as a short-cut for
|
| 600 |
+
* XSLT items with no extra fields.
|
| 601 |
+
* NOTE that it is intended that this structure looks the same as
|
| 602 |
+
* _xsltStylePreComp.
|
| 603 |
+
*/
|
| 604 |
+
typedef struct _xsltStyleBasicEmptyItem xsltStyleBasicEmptyItem;
|
| 605 |
+
typedef xsltStyleBasicEmptyItem *xsltStyleBasicEmptyItemPtr;
|
| 606 |
+
|
| 607 |
+
struct _xsltStyleBasicEmptyItem {
|
| 608 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 609 |
+
};
|
| 610 |
+
|
| 611 |
+
/**
|
| 612 |
+
* xsltStyleBasicExpressionItem:
|
| 613 |
+
*
|
| 614 |
+
* Abstract structure only used as a short-cut for
|
| 615 |
+
* XSLT items with just an expression.
|
| 616 |
+
*/
|
| 617 |
+
typedef struct _xsltStyleBasicExpressionItem xsltStyleBasicExpressionItem;
|
| 618 |
+
typedef xsltStyleBasicExpressionItem *xsltStyleBasicExpressionItemPtr;
|
| 619 |
+
|
| 620 |
+
struct _xsltStyleBasicExpressionItem {
|
| 621 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 622 |
+
|
| 623 |
+
const xmlChar *select; /* TODO: Change this to "expression". */
|
| 624 |
+
xmlXPathCompExprPtr comp; /* TODO: Change this to compExpr. */
|
| 625 |
+
};
|
| 626 |
+
|
| 627 |
+
/************************************************************************
|
| 628 |
+
* *
|
| 629 |
+
* XSLT-instructions/declarations *
|
| 630 |
+
* *
|
| 631 |
+
************************************************************************/
|
| 632 |
+
|
| 633 |
+
/**
|
| 634 |
+
* xsltStyleItemElement:
|
| 635 |
+
*
|
| 636 |
+
* <!-- Category: instruction -->
|
| 637 |
+
* <xsl:element
|
| 638 |
+
* name = { qname }
|
| 639 |
+
* namespace = { uri-reference }
|
| 640 |
+
* use-attribute-sets = qnames>
|
| 641 |
+
* <!-- Content: template -->
|
| 642 |
+
* </xsl:element>
|
| 643 |
+
*/
|
| 644 |
+
typedef struct _xsltStyleItemElement xsltStyleItemElement;
|
| 645 |
+
typedef xsltStyleItemElement *xsltStyleItemElementPtr;
|
| 646 |
+
|
| 647 |
+
struct _xsltStyleItemElement {
|
| 648 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 649 |
+
|
| 650 |
+
const xmlChar *use;
|
| 651 |
+
int has_use;
|
| 652 |
+
const xmlChar *name;
|
| 653 |
+
int has_name;
|
| 654 |
+
const xmlChar *ns;
|
| 655 |
+
const xmlChar *nsPrefix;
|
| 656 |
+
int has_ns;
|
| 657 |
+
};
|
| 658 |
+
|
| 659 |
+
/**
|
| 660 |
+
* xsltStyleItemAttribute:
|
| 661 |
+
*
|
| 662 |
+
* <!-- Category: instruction -->
|
| 663 |
+
* <xsl:attribute
|
| 664 |
+
* name = { qname }
|
| 665 |
+
* namespace = { uri-reference }>
|
| 666 |
+
* <!-- Content: template -->
|
| 667 |
+
* </xsl:attribute>
|
| 668 |
+
*/
|
| 669 |
+
typedef struct _xsltStyleItemAttribute xsltStyleItemAttribute;
|
| 670 |
+
typedef xsltStyleItemAttribute *xsltStyleItemAttributePtr;
|
| 671 |
+
|
| 672 |
+
struct _xsltStyleItemAttribute {
|
| 673 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 674 |
+
const xmlChar *name;
|
| 675 |
+
int has_name;
|
| 676 |
+
const xmlChar *ns;
|
| 677 |
+
const xmlChar *nsPrefix;
|
| 678 |
+
int has_ns;
|
| 679 |
+
};
|
| 680 |
+
|
| 681 |
+
/**
|
| 682 |
+
* xsltStyleItemText:
|
| 683 |
+
*
|
| 684 |
+
* <!-- Category: instruction -->
|
| 685 |
+
* <xsl:text
|
| 686 |
+
* disable-output-escaping = "yes" | "no">
|
| 687 |
+
* <!-- Content: #PCDATA -->
|
| 688 |
+
* </xsl:text>
|
| 689 |
+
*/
|
| 690 |
+
typedef struct _xsltStyleItemText xsltStyleItemText;
|
| 691 |
+
typedef xsltStyleItemText *xsltStyleItemTextPtr;
|
| 692 |
+
|
| 693 |
+
struct _xsltStyleItemText {
|
| 694 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 695 |
+
int noescape; /* text */
|
| 696 |
+
};
|
| 697 |
+
|
| 698 |
+
/**
|
| 699 |
+
* xsltStyleItemComment:
|
| 700 |
+
*
|
| 701 |
+
* <!-- Category: instruction -->
|
| 702 |
+
* <xsl:comment>
|
| 703 |
+
* <!-- Content: template -->
|
| 704 |
+
* </xsl:comment>
|
| 705 |
+
*/
|
| 706 |
+
typedef xsltStyleBasicEmptyItem xsltStyleItemComment;
|
| 707 |
+
typedef xsltStyleItemComment *xsltStyleItemCommentPtr;
|
| 708 |
+
|
| 709 |
+
/**
|
| 710 |
+
* xsltStyleItemPI:
|
| 711 |
+
*
|
| 712 |
+
* <!-- Category: instruction -->
|
| 713 |
+
* <xsl:processing-instruction
|
| 714 |
+
* name = { ncname }>
|
| 715 |
+
* <!-- Content: template -->
|
| 716 |
+
* </xsl:processing-instruction>
|
| 717 |
+
*/
|
| 718 |
+
typedef struct _xsltStyleItemPI xsltStyleItemPI;
|
| 719 |
+
typedef xsltStyleItemPI *xsltStyleItemPIPtr;
|
| 720 |
+
|
| 721 |
+
struct _xsltStyleItemPI {
|
| 722 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 723 |
+
const xmlChar *name;
|
| 724 |
+
int has_name;
|
| 725 |
+
};
|
| 726 |
+
|
| 727 |
+
/**
|
| 728 |
+
* xsltStyleItemApplyImports:
|
| 729 |
+
*
|
| 730 |
+
* <!-- Category: instruction -->
|
| 731 |
+
* <xsl:apply-imports />
|
| 732 |
+
*/
|
| 733 |
+
typedef xsltStyleBasicEmptyItem xsltStyleItemApplyImports;
|
| 734 |
+
typedef xsltStyleItemApplyImports *xsltStyleItemApplyImportsPtr;
|
| 735 |
+
|
| 736 |
+
/**
|
| 737 |
+
* xsltStyleItemApplyTemplates:
|
| 738 |
+
*
|
| 739 |
+
* <!-- Category: instruction -->
|
| 740 |
+
* <xsl:apply-templates
|
| 741 |
+
* select = node-set-expression
|
| 742 |
+
* mode = qname>
|
| 743 |
+
* <!-- Content: (xsl:sort | xsl:with-param)* -->
|
| 744 |
+
* </xsl:apply-templates>
|
| 745 |
+
*/
|
| 746 |
+
typedef struct _xsltStyleItemApplyTemplates xsltStyleItemApplyTemplates;
|
| 747 |
+
typedef xsltStyleItemApplyTemplates *xsltStyleItemApplyTemplatesPtr;
|
| 748 |
+
|
| 749 |
+
struct _xsltStyleItemApplyTemplates {
|
| 750 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 751 |
+
|
| 752 |
+
const xmlChar *mode; /* apply-templates */
|
| 753 |
+
const xmlChar *modeURI; /* apply-templates */
|
| 754 |
+
const xmlChar *select; /* sort, copy-of, value-of, apply-templates */
|
| 755 |
+
xmlXPathCompExprPtr comp; /* a precompiled XPath expression */
|
| 756 |
+
/* TODO: with-params */
|
| 757 |
+
};
|
| 758 |
+
|
| 759 |
+
/**
|
| 760 |
+
* xsltStyleItemCallTemplate:
|
| 761 |
+
*
|
| 762 |
+
* <!-- Category: instruction -->
|
| 763 |
+
* <xsl:call-template
|
| 764 |
+
* name = qname>
|
| 765 |
+
* <!-- Content: xsl:with-param* -->
|
| 766 |
+
* </xsl:call-template>
|
| 767 |
+
*/
|
| 768 |
+
typedef struct _xsltStyleItemCallTemplate xsltStyleItemCallTemplate;
|
| 769 |
+
typedef xsltStyleItemCallTemplate *xsltStyleItemCallTemplatePtr;
|
| 770 |
+
|
| 771 |
+
struct _xsltStyleItemCallTemplate {
|
| 772 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 773 |
+
|
| 774 |
+
xsltTemplatePtr templ; /* call-template */
|
| 775 |
+
const xmlChar *name; /* element, attribute, pi */
|
| 776 |
+
int has_name; /* element, attribute, pi */
|
| 777 |
+
const xmlChar *ns; /* element */
|
| 778 |
+
int has_ns; /* element */
|
| 779 |
+
/* TODO: with-params */
|
| 780 |
+
};
|
| 781 |
+
|
| 782 |
+
/**
|
| 783 |
+
* xsltStyleItemCopy:
|
| 784 |
+
*
|
| 785 |
+
* <!-- Category: instruction -->
|
| 786 |
+
* <xsl:copy
|
| 787 |
+
* use-attribute-sets = qnames>
|
| 788 |
+
* <!-- Content: template -->
|
| 789 |
+
* </xsl:copy>
|
| 790 |
+
*/
|
| 791 |
+
typedef struct _xsltStyleItemCopy xsltStyleItemCopy;
|
| 792 |
+
typedef xsltStyleItemCopy *xsltStyleItemCopyPtr;
|
| 793 |
+
|
| 794 |
+
struct _xsltStyleItemCopy {
|
| 795 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 796 |
+
const xmlChar *use; /* copy, element */
|
| 797 |
+
int has_use; /* copy, element */
|
| 798 |
+
};
|
| 799 |
+
|
| 800 |
+
/**
|
| 801 |
+
* xsltStyleItemIf:
|
| 802 |
+
*
|
| 803 |
+
* <!-- Category: instruction -->
|
| 804 |
+
* <xsl:if
|
| 805 |
+
* test = boolean-expression>
|
| 806 |
+
* <!-- Content: template -->
|
| 807 |
+
* </xsl:if>
|
| 808 |
+
*/
|
| 809 |
+
typedef struct _xsltStyleItemIf xsltStyleItemIf;
|
| 810 |
+
typedef xsltStyleItemIf *xsltStyleItemIfPtr;
|
| 811 |
+
|
| 812 |
+
struct _xsltStyleItemIf {
|
| 813 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 814 |
+
|
| 815 |
+
const xmlChar *test; /* if */
|
| 816 |
+
xmlXPathCompExprPtr comp; /* a precompiled XPath expression */
|
| 817 |
+
};
|
| 818 |
+
|
| 819 |
+
|
| 820 |
+
/**
|
| 821 |
+
* xsltStyleItemCopyOf:
|
| 822 |
+
*
|
| 823 |
+
* <!-- Category: instruction -->
|
| 824 |
+
* <xsl:copy-of
|
| 825 |
+
* select = expression />
|
| 826 |
+
*/
|
| 827 |
+
typedef xsltStyleBasicExpressionItem xsltStyleItemCopyOf;
|
| 828 |
+
typedef xsltStyleItemCopyOf *xsltStyleItemCopyOfPtr;
|
| 829 |
+
|
| 830 |
+
/**
|
| 831 |
+
* xsltStyleItemValueOf:
|
| 832 |
+
*
|
| 833 |
+
* <!-- Category: instruction -->
|
| 834 |
+
* <xsl:value-of
|
| 835 |
+
* select = string-expression
|
| 836 |
+
* disable-output-escaping = "yes" | "no" />
|
| 837 |
+
*/
|
| 838 |
+
typedef struct _xsltStyleItemValueOf xsltStyleItemValueOf;
|
| 839 |
+
typedef xsltStyleItemValueOf *xsltStyleItemValueOfPtr;
|
| 840 |
+
|
| 841 |
+
struct _xsltStyleItemValueOf {
|
| 842 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 843 |
+
|
| 844 |
+
const xmlChar *select;
|
| 845 |
+
xmlXPathCompExprPtr comp; /* a precompiled XPath expression */
|
| 846 |
+
int noescape;
|
| 847 |
+
};
|
| 848 |
+
|
| 849 |
+
/**
|
| 850 |
+
* xsltStyleItemNumber:
|
| 851 |
+
*
|
| 852 |
+
* <!-- Category: instruction -->
|
| 853 |
+
* <xsl:number
|
| 854 |
+
* level = "single" | "multiple" | "any"
|
| 855 |
+
* count = pattern
|
| 856 |
+
* from = pattern
|
| 857 |
+
* value = number-expression
|
| 858 |
+
* format = { string }
|
| 859 |
+
* lang = { nmtoken }
|
| 860 |
+
* letter-value = { "alphabetic" | "traditional" }
|
| 861 |
+
* grouping-separator = { char }
|
| 862 |
+
* grouping-size = { number } />
|
| 863 |
+
*/
|
| 864 |
+
typedef struct _xsltStyleItemNumber xsltStyleItemNumber;
|
| 865 |
+
typedef xsltStyleItemNumber *xsltStyleItemNumberPtr;
|
| 866 |
+
|
| 867 |
+
struct _xsltStyleItemNumber {
|
| 868 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 869 |
+
xsltNumberData numdata; /* number */
|
| 870 |
+
};
|
| 871 |
+
|
| 872 |
+
/**
|
| 873 |
+
* xsltStyleItemChoose:
|
| 874 |
+
*
|
| 875 |
+
* <!-- Category: instruction -->
|
| 876 |
+
* <xsl:choose>
|
| 877 |
+
* <!-- Content: (xsl:when+, xsl:otherwise?) -->
|
| 878 |
+
* </xsl:choose>
|
| 879 |
+
*/
|
| 880 |
+
typedef xsltStyleBasicEmptyItem xsltStyleItemChoose;
|
| 881 |
+
typedef xsltStyleItemChoose *xsltStyleItemChoosePtr;
|
| 882 |
+
|
| 883 |
+
/**
|
| 884 |
+
* xsltStyleItemFallback:
|
| 885 |
+
*
|
| 886 |
+
* <!-- Category: instruction -->
|
| 887 |
+
* <xsl:fallback>
|
| 888 |
+
* <!-- Content: template -->
|
| 889 |
+
* </xsl:fallback>
|
| 890 |
+
*/
|
| 891 |
+
typedef xsltStyleBasicEmptyItem xsltStyleItemFallback;
|
| 892 |
+
typedef xsltStyleItemFallback *xsltStyleItemFallbackPtr;
|
| 893 |
+
|
| 894 |
+
/**
|
| 895 |
+
* xsltStyleItemForEach:
|
| 896 |
+
*
|
| 897 |
+
* <!-- Category: instruction -->
|
| 898 |
+
* <xsl:for-each
|
| 899 |
+
* select = node-set-expression>
|
| 900 |
+
* <!-- Content: (xsl:sort*, template) -->
|
| 901 |
+
* </xsl:for-each>
|
| 902 |
+
*/
|
| 903 |
+
typedef xsltStyleBasicExpressionItem xsltStyleItemForEach;
|
| 904 |
+
typedef xsltStyleItemForEach *xsltStyleItemForEachPtr;
|
| 905 |
+
|
| 906 |
+
/**
|
| 907 |
+
* xsltStyleItemMessage:
|
| 908 |
+
*
|
| 909 |
+
* <!-- Category: instruction -->
|
| 910 |
+
* <xsl:message
|
| 911 |
+
* terminate = "yes" | "no">
|
| 912 |
+
* <!-- Content: template -->
|
| 913 |
+
* </xsl:message>
|
| 914 |
+
*/
|
| 915 |
+
typedef struct _xsltStyleItemMessage xsltStyleItemMessage;
|
| 916 |
+
typedef xsltStyleItemMessage *xsltStyleItemMessagePtr;
|
| 917 |
+
|
| 918 |
+
struct _xsltStyleItemMessage {
|
| 919 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 920 |
+
int terminate;
|
| 921 |
+
};
|
| 922 |
+
|
| 923 |
+
/**
|
| 924 |
+
* xsltStyleItemDocument:
|
| 925 |
+
*
|
| 926 |
+
* NOTE: This is not an instruction of XSLT 1.0.
|
| 927 |
+
*/
|
| 928 |
+
typedef struct _xsltStyleItemDocument xsltStyleItemDocument;
|
| 929 |
+
typedef xsltStyleItemDocument *xsltStyleItemDocumentPtr;
|
| 930 |
+
|
| 931 |
+
struct _xsltStyleItemDocument {
|
| 932 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 933 |
+
int ver11; /* assigned: in xsltDocumentComp;
|
| 934 |
+
read: nowhere;
|
| 935 |
+
TODO: Check if we need. */
|
| 936 |
+
const xmlChar *filename; /* document URL */
|
| 937 |
+
int has_filename;
|
| 938 |
+
};
|
| 939 |
+
|
| 940 |
+
/************************************************************************
|
| 941 |
+
* *
|
| 942 |
+
* Non-instructions (actually properties of instructions/declarations) *
|
| 943 |
+
* *
|
| 944 |
+
************************************************************************/
|
| 945 |
+
|
| 946 |
+
/**
|
| 947 |
+
* xsltStyleBasicItemVariable:
|
| 948 |
+
*
|
| 949 |
+
* Basic struct for xsl:variable, xsl:param and xsl:with-param.
|
| 950 |
+
* It's currently important to have equal fields, since
|
| 951 |
+
* xsltParseStylesheetCallerParam() is used with xsl:with-param from
|
| 952 |
+
* the xslt side and with xsl:param from the exslt side (in
|
| 953 |
+
* exsltFuncFunctionFunction()).
|
| 954 |
+
*
|
| 955 |
+
* FUTURE NOTE: In XSLT 2.0 xsl:param, xsl:variable and xsl:with-param
|
| 956 |
+
* have additional different fields.
|
| 957 |
+
*/
|
| 958 |
+
typedef struct _xsltStyleBasicItemVariable xsltStyleBasicItemVariable;
|
| 959 |
+
typedef xsltStyleBasicItemVariable *xsltStyleBasicItemVariablePtr;
|
| 960 |
+
|
| 961 |
+
struct _xsltStyleBasicItemVariable {
|
| 962 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 963 |
+
|
| 964 |
+
const xmlChar *select;
|
| 965 |
+
xmlXPathCompExprPtr comp;
|
| 966 |
+
|
| 967 |
+
const xmlChar *name;
|
| 968 |
+
int has_name;
|
| 969 |
+
const xmlChar *ns;
|
| 970 |
+
int has_ns;
|
| 971 |
+
};
|
| 972 |
+
|
| 973 |
+
/**
|
| 974 |
+
* xsltStyleItemVariable:
|
| 975 |
+
*
|
| 976 |
+
* <!-- Category: top-level-element -->
|
| 977 |
+
* <xsl:param
|
| 978 |
+
* name = qname
|
| 979 |
+
* select = expression>
|
| 980 |
+
* <!-- Content: template -->
|
| 981 |
+
* </xsl:param>
|
| 982 |
+
*/
|
| 983 |
+
typedef xsltStyleBasicItemVariable xsltStyleItemVariable;
|
| 984 |
+
typedef xsltStyleItemVariable *xsltStyleItemVariablePtr;
|
| 985 |
+
|
| 986 |
+
/**
|
| 987 |
+
* xsltStyleItemParam:
|
| 988 |
+
*
|
| 989 |
+
* <!-- Category: top-level-element -->
|
| 990 |
+
* <xsl:param
|
| 991 |
+
* name = qname
|
| 992 |
+
* select = expression>
|
| 993 |
+
* <!-- Content: template -->
|
| 994 |
+
* </xsl:param>
|
| 995 |
+
*/
|
| 996 |
+
typedef struct _xsltStyleItemParam xsltStyleItemParam;
|
| 997 |
+
typedef xsltStyleItemParam *xsltStyleItemParamPtr;
|
| 998 |
+
|
| 999 |
+
struct _xsltStyleItemParam {
|
| 1000 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 1001 |
+
|
| 1002 |
+
const xmlChar *select;
|
| 1003 |
+
xmlXPathCompExprPtr comp;
|
| 1004 |
+
|
| 1005 |
+
const xmlChar *name;
|
| 1006 |
+
int has_name;
|
| 1007 |
+
const xmlChar *ns;
|
| 1008 |
+
int has_ns;
|
| 1009 |
+
};
|
| 1010 |
+
|
| 1011 |
+
/**
|
| 1012 |
+
* xsltStyleItemWithParam:
|
| 1013 |
+
*
|
| 1014 |
+
* <xsl:with-param
|
| 1015 |
+
* name = qname
|
| 1016 |
+
* select = expression>
|
| 1017 |
+
* <!-- Content: template -->
|
| 1018 |
+
* </xsl:with-param>
|
| 1019 |
+
*/
|
| 1020 |
+
typedef xsltStyleBasicItemVariable xsltStyleItemWithParam;
|
| 1021 |
+
typedef xsltStyleItemWithParam *xsltStyleItemWithParamPtr;
|
| 1022 |
+
|
| 1023 |
+
/**
|
| 1024 |
+
* xsltStyleItemSort:
|
| 1025 |
+
*
|
| 1026 |
+
* Reflects the XSLT xsl:sort item.
|
| 1027 |
+
* Allowed parents: xsl:apply-templates, xsl:for-each
|
| 1028 |
+
* <xsl:sort
|
| 1029 |
+
* select = string-expression
|
| 1030 |
+
* lang = { nmtoken }
|
| 1031 |
+
* data-type = { "text" | "number" | qname-but-not-ncname }
|
| 1032 |
+
* order = { "ascending" | "descending" }
|
| 1033 |
+
* case-order = { "upper-first" | "lower-first" } />
|
| 1034 |
+
*/
|
| 1035 |
+
typedef struct _xsltStyleItemSort xsltStyleItemSort;
|
| 1036 |
+
typedef xsltStyleItemSort *xsltStyleItemSortPtr;
|
| 1037 |
+
|
| 1038 |
+
struct _xsltStyleItemSort {
|
| 1039 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 1040 |
+
|
| 1041 |
+
const xmlChar *stype; /* sort */
|
| 1042 |
+
int has_stype; /* sort */
|
| 1043 |
+
int number; /* sort */
|
| 1044 |
+
const xmlChar *order; /* sort */
|
| 1045 |
+
int has_order; /* sort */
|
| 1046 |
+
int descending; /* sort */
|
| 1047 |
+
const xmlChar *lang; /* sort */
|
| 1048 |
+
int has_lang; /* sort */
|
| 1049 |
+
const xmlChar *case_order; /* sort */
|
| 1050 |
+
int lower_first; /* sort */
|
| 1051 |
+
|
| 1052 |
+
const xmlChar *use;
|
| 1053 |
+
int has_use;
|
| 1054 |
+
|
| 1055 |
+
const xmlChar *select; /* sort, copy-of, value-of, apply-templates */
|
| 1056 |
+
|
| 1057 |
+
xmlXPathCompExprPtr comp; /* a precompiled XPath expression */
|
| 1058 |
+
};
|
| 1059 |
+
|
| 1060 |
+
|
| 1061 |
+
/**
|
| 1062 |
+
* xsltStyleItemWhen:
|
| 1063 |
+
*
|
| 1064 |
+
* <xsl:when
|
| 1065 |
+
* test = boolean-expression>
|
| 1066 |
+
* <!-- Content: template -->
|
| 1067 |
+
* </xsl:when>
|
| 1068 |
+
* Allowed parent: xsl:choose
|
| 1069 |
+
*/
|
| 1070 |
+
typedef struct _xsltStyleItemWhen xsltStyleItemWhen;
|
| 1071 |
+
typedef xsltStyleItemWhen *xsltStyleItemWhenPtr;
|
| 1072 |
+
|
| 1073 |
+
struct _xsltStyleItemWhen {
|
| 1074 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 1075 |
+
|
| 1076 |
+
const xmlChar *test;
|
| 1077 |
+
xmlXPathCompExprPtr comp;
|
| 1078 |
+
};
|
| 1079 |
+
|
| 1080 |
+
/**
|
| 1081 |
+
* xsltStyleItemOtherwise:
|
| 1082 |
+
*
|
| 1083 |
+
* Allowed parent: xsl:choose
|
| 1084 |
+
* <xsl:otherwise>
|
| 1085 |
+
* <!-- Content: template -->
|
| 1086 |
+
* </xsl:otherwise>
|
| 1087 |
+
*/
|
| 1088 |
+
typedef struct _xsltStyleItemOtherwise xsltStyleItemOtherwise;
|
| 1089 |
+
typedef xsltStyleItemOtherwise *xsltStyleItemOtherwisePtr;
|
| 1090 |
+
|
| 1091 |
+
struct _xsltStyleItemOtherwise {
|
| 1092 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 1093 |
+
};
|
| 1094 |
+
|
| 1095 |
+
typedef struct _xsltStyleItemInclude xsltStyleItemInclude;
|
| 1096 |
+
typedef xsltStyleItemInclude *xsltStyleItemIncludePtr;
|
| 1097 |
+
|
| 1098 |
+
struct _xsltStyleItemInclude {
|
| 1099 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 1100 |
+
xsltDocumentPtr include;
|
| 1101 |
+
};
|
| 1102 |
+
|
| 1103 |
+
/************************************************************************
|
| 1104 |
+
* *
|
| 1105 |
+
* XSLT elements in forwards-compatible mode *
|
| 1106 |
+
* *
|
| 1107 |
+
************************************************************************/
|
| 1108 |
+
|
| 1109 |
+
typedef struct _xsltStyleItemUknown xsltStyleItemUknown;
|
| 1110 |
+
typedef xsltStyleItemUknown *xsltStyleItemUknownPtr;
|
| 1111 |
+
struct _xsltStyleItemUknown {
|
| 1112 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 1113 |
+
};
|
| 1114 |
+
|
| 1115 |
+
|
| 1116 |
+
/************************************************************************
|
| 1117 |
+
* *
|
| 1118 |
+
* Extension elements *
|
| 1119 |
+
* *
|
| 1120 |
+
************************************************************************/
|
| 1121 |
+
|
| 1122 |
+
/*
|
| 1123 |
+
* xsltStyleItemExtElement:
|
| 1124 |
+
*
|
| 1125 |
+
* Reflects extension elements.
|
| 1126 |
+
*
|
| 1127 |
+
* NOTE: Due to the fact that the structure xsltElemPreComp is most
|
| 1128 |
+
* probably already heavily in use out there by users, so we cannot
|
| 1129 |
+
* easily change it, we'll create an intermediate structure which will
|
| 1130 |
+
* hold an xsltElemPreCompPtr.
|
| 1131 |
+
* BIG NOTE: The only problem I see here is that the user processes the
|
| 1132 |
+
* content of the stylesheet tree, possibly he'll lookup the node->psvi
|
| 1133 |
+
* fields in order to find subsequent extension functions.
|
| 1134 |
+
* In this case, the user's code will break, since the node->psvi
|
| 1135 |
+
* field will hold now the xsltStyleItemExtElementPtr and not
|
| 1136 |
+
* the xsltElemPreCompPtr.
|
| 1137 |
+
* However the place where the structure is anchored in the node-tree,
|
| 1138 |
+
* namely node->psvi, has beed already once been moved from node->_private
|
| 1139 |
+
* to node->psvi, so we have a precedent here, which, I think, should allow
|
| 1140 |
+
* us to change such semantics without headaches.
|
| 1141 |
+
*/
|
| 1142 |
+
typedef struct _xsltStyleItemExtElement xsltStyleItemExtElement;
|
| 1143 |
+
typedef xsltStyleItemExtElement *xsltStyleItemExtElementPtr;
|
| 1144 |
+
struct _xsltStyleItemExtElement {
|
| 1145 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 1146 |
+
xsltElemPreCompPtr item;
|
| 1147 |
+
};
|
| 1148 |
+
|
| 1149 |
+
/************************************************************************
|
| 1150 |
+
* *
|
| 1151 |
+
* Literal result elements *
|
| 1152 |
+
* *
|
| 1153 |
+
************************************************************************/
|
| 1154 |
+
|
| 1155 |
+
typedef struct _xsltEffectiveNs xsltEffectiveNs;
|
| 1156 |
+
typedef xsltEffectiveNs *xsltEffectiveNsPtr;
|
| 1157 |
+
struct _xsltEffectiveNs {
|
| 1158 |
+
xsltEffectiveNsPtr nextInStore; /* storage next */
|
| 1159 |
+
xsltEffectiveNsPtr next; /* next item in the list */
|
| 1160 |
+
const xmlChar *prefix;
|
| 1161 |
+
const xmlChar *nsName;
|
| 1162 |
+
/*
|
| 1163 |
+
* Indicates if eclared on the literal result element; dunno if really
|
| 1164 |
+
* needed.
|
| 1165 |
+
*/
|
| 1166 |
+
int holdByElem;
|
| 1167 |
+
};
|
| 1168 |
+
|
| 1169 |
+
/*
|
| 1170 |
+
* Info for literal result elements.
|
| 1171 |
+
* This will be set on the elem->psvi field and will be
|
| 1172 |
+
* shared by literal result elements, which have the same
|
| 1173 |
+
* excluded result namespaces; i.e., this *won't* be created uniquely
|
| 1174 |
+
* for every literal result element.
|
| 1175 |
+
*/
|
| 1176 |
+
typedef struct _xsltStyleItemLRElementInfo xsltStyleItemLRElementInfo;
|
| 1177 |
+
typedef xsltStyleItemLRElementInfo *xsltStyleItemLRElementInfoPtr;
|
| 1178 |
+
struct _xsltStyleItemLRElementInfo {
|
| 1179 |
+
XSLT_ITEM_COMMON_FIELDS
|
| 1180 |
+
/*
|
| 1181 |
+
* @effectiveNs is the set of effective ns-nodes
|
| 1182 |
+
* on the literal result element, which will be added to the result
|
| 1183 |
+
* element if not already existing in the result tree.
|
| 1184 |
+
* This means that excluded namespaces (via exclude-result-prefixes,
|
| 1185 |
+
* extension-element-prefixes and the XSLT namespace) not added
|
| 1186 |
+
* to the set.
|
| 1187 |
+
* Namespace-aliasing was applied on the @effectiveNs.
|
| 1188 |
+
*/
|
| 1189 |
+
xsltEffectiveNsPtr effectiveNs;
|
| 1190 |
+
|
| 1191 |
+
};
|
| 1192 |
+
|
| 1193 |
+
#ifdef XSLT_REFACTORED
|
| 1194 |
+
|
| 1195 |
+
typedef struct _xsltNsAlias xsltNsAlias;
|
| 1196 |
+
typedef xsltNsAlias *xsltNsAliasPtr;
|
| 1197 |
+
struct _xsltNsAlias {
|
| 1198 |
+
xsltNsAliasPtr next; /* next in the list */
|
| 1199 |
+
xmlNsPtr literalNs;
|
| 1200 |
+
xmlNsPtr targetNs;
|
| 1201 |
+
xmlDocPtr docOfTargetNs;
|
| 1202 |
+
};
|
| 1203 |
+
#endif
|
| 1204 |
+
|
| 1205 |
+
#ifdef XSLT_REFACTORED_XSLT_NSCOMP
|
| 1206 |
+
|
| 1207 |
+
typedef struct _xsltNsMap xsltNsMap;
|
| 1208 |
+
typedef xsltNsMap *xsltNsMapPtr;
|
| 1209 |
+
struct _xsltNsMap {
|
| 1210 |
+
xsltNsMapPtr next; /* next in the list */
|
| 1211 |
+
xmlDocPtr doc;
|
| 1212 |
+
xmlNodePtr elem; /* the element holding the ns-decl */
|
| 1213 |
+
xmlNsPtr ns; /* the xmlNs structure holding the XML namespace name */
|
| 1214 |
+
const xmlChar *origNsName; /* the original XML namespace name */
|
| 1215 |
+
const xmlChar *newNsName; /* the mapped XML namespace name */
|
| 1216 |
+
};
|
| 1217 |
+
#endif
|
| 1218 |
+
|
| 1219 |
+
/************************************************************************
|
| 1220 |
+
* *
|
| 1221 |
+
* Compile-time structures for *internal* use only *
|
| 1222 |
+
* *
|
| 1223 |
+
************************************************************************/
|
| 1224 |
+
|
| 1225 |
+
typedef struct _xsltPrincipalStylesheetData xsltPrincipalStylesheetData;
|
| 1226 |
+
typedef xsltPrincipalStylesheetData *xsltPrincipalStylesheetDataPtr;
|
| 1227 |
+
|
| 1228 |
+
typedef struct _xsltNsList xsltNsList;
|
| 1229 |
+
typedef xsltNsList *xsltNsListPtr;
|
| 1230 |
+
struct _xsltNsList {
|
| 1231 |
+
xsltNsListPtr next; /* next in the list */
|
| 1232 |
+
xmlNsPtr ns;
|
| 1233 |
+
};
|
| 1234 |
+
|
| 1235 |
+
/*
|
| 1236 |
+
* xsltVarInfo:
|
| 1237 |
+
*
|
| 1238 |
+
* Used at compilation time for parameters and variables.
|
| 1239 |
+
*/
|
| 1240 |
+
typedef struct _xsltVarInfo xsltVarInfo;
|
| 1241 |
+
typedef xsltVarInfo *xsltVarInfoPtr;
|
| 1242 |
+
struct _xsltVarInfo {
|
| 1243 |
+
xsltVarInfoPtr next; /* next in the list */
|
| 1244 |
+
xsltVarInfoPtr prev;
|
| 1245 |
+
int depth; /* the depth in the tree */
|
| 1246 |
+
const xmlChar *name;
|
| 1247 |
+
const xmlChar *nsName;
|
| 1248 |
+
};
|
| 1249 |
+
|
| 1250 |
+
/**
|
| 1251 |
+
* xsltCompilerNodeInfo:
|
| 1252 |
+
*
|
| 1253 |
+
* Per-node information during compile-time.
|
| 1254 |
+
*/
|
| 1255 |
+
typedef struct _xsltCompilerNodeInfo xsltCompilerNodeInfo;
|
| 1256 |
+
typedef xsltCompilerNodeInfo *xsltCompilerNodeInfoPtr;
|
| 1257 |
+
struct _xsltCompilerNodeInfo {
|
| 1258 |
+
xsltCompilerNodeInfoPtr next;
|
| 1259 |
+
xsltCompilerNodeInfoPtr prev;
|
| 1260 |
+
xmlNodePtr node;
|
| 1261 |
+
int depth;
|
| 1262 |
+
xsltTemplatePtr templ; /* The owning template */
|
| 1263 |
+
int category; /* XSLT element, LR-element or
|
| 1264 |
+
extension element */
|
| 1265 |
+
xsltStyleType type;
|
| 1266 |
+
xsltElemPreCompPtr item; /* The compiled information */
|
| 1267 |
+
/* The current in-scope namespaces */
|
| 1268 |
+
xsltNsListContainerPtr inScopeNs;
|
| 1269 |
+
/* The current excluded result namespaces */
|
| 1270 |
+
xsltPointerListPtr exclResultNs;
|
| 1271 |
+
/* The current extension instruction namespaces */
|
| 1272 |
+
xsltPointerListPtr extElemNs;
|
| 1273 |
+
|
| 1274 |
+
/* The current info for literal result elements. */
|
| 1275 |
+
xsltStyleItemLRElementInfoPtr litResElemInfo;
|
| 1276 |
+
/*
|
| 1277 |
+
* Set to 1 if in-scope namespaces changed,
|
| 1278 |
+
* or excluded result namespaces changed,
|
| 1279 |
+
* or extension element namespaces changed.
|
| 1280 |
+
* This will trigger creation of new infos
|
| 1281 |
+
* for literal result elements.
|
| 1282 |
+
*/
|
| 1283 |
+
int nsChanged;
|
| 1284 |
+
int preserveWhitespace;
|
| 1285 |
+
int stripWhitespace;
|
| 1286 |
+
int isRoot; /* whether this is the stylesheet's root node */
|
| 1287 |
+
int forwardsCompat; /* whether forwards-compatible mode is enabled */
|
| 1288 |
+
/* whether the content of an extension element was processed */
|
| 1289 |
+
int extContentHandled;
|
| 1290 |
+
/* the type of the current child */
|
| 1291 |
+
xsltStyleType curChildType;
|
| 1292 |
+
};
|
| 1293 |
+
|
| 1294 |
+
/**
|
| 1295 |
+
* XSLT_CCTXT:
|
| 1296 |
+
*
|
| 1297 |
+
* get pointer to compiler context
|
| 1298 |
+
*/
|
| 1299 |
+
#define XSLT_CCTXT(style) ((xsltCompilerCtxtPtr) style->compCtxt)
|
| 1300 |
+
|
| 1301 |
+
typedef enum {
|
| 1302 |
+
XSLT_ERROR_SEVERITY_ERROR = 0,
|
| 1303 |
+
XSLT_ERROR_SEVERITY_WARNING
|
| 1304 |
+
} xsltErrorSeverityType;
|
| 1305 |
+
|
| 1306 |
+
typedef struct _xsltCompilerCtxt xsltCompilerCtxt;
|
| 1307 |
+
typedef xsltCompilerCtxt *xsltCompilerCtxtPtr;
|
| 1308 |
+
struct _xsltCompilerCtxt {
|
| 1309 |
+
void *errorCtxt; /* user specific error context */
|
| 1310 |
+
/*
|
| 1311 |
+
* used for error/warning reports; e.g. XSLT_ERROR_SEVERITY_WARNING */
|
| 1312 |
+
xsltErrorSeverityType errSeverity;
|
| 1313 |
+
int warnings; /* TODO: number of warnings found at
|
| 1314 |
+
compilation */
|
| 1315 |
+
int errors; /* TODO: number of errors found at
|
| 1316 |
+
compilation */
|
| 1317 |
+
xmlDictPtr dict;
|
| 1318 |
+
xsltStylesheetPtr style;
|
| 1319 |
+
int simplified; /* whether this is a simplified stylesheet */
|
| 1320 |
+
/* TODO: structured/unstructured error contexts. */
|
| 1321 |
+
int depth; /* Current depth of processing */
|
| 1322 |
+
|
| 1323 |
+
xsltCompilerNodeInfoPtr inode;
|
| 1324 |
+
xsltCompilerNodeInfoPtr inodeList;
|
| 1325 |
+
xsltCompilerNodeInfoPtr inodeLast;
|
| 1326 |
+
xsltPointerListPtr tmpList; /* Used for various purposes */
|
| 1327 |
+
/*
|
| 1328 |
+
* The XSLT version as specified by the stylesheet's root element.
|
| 1329 |
+
*/
|
| 1330 |
+
int isInclude;
|
| 1331 |
+
int hasForwardsCompat; /* whether forwards-compatible mode was used
|
| 1332 |
+
in a parsing episode */
|
| 1333 |
+
int maxNodeInfos; /* TEMP TODO: just for the interest */
|
| 1334 |
+
int maxLREs; /* TEMP TODO: just for the interest */
|
| 1335 |
+
/*
|
| 1336 |
+
* In order to keep the old behaviour, applying strict rules of
|
| 1337 |
+
* the spec can be turned off. This has effect only on special
|
| 1338 |
+
* mechanisms like whitespace-stripping in the stylesheet.
|
| 1339 |
+
*/
|
| 1340 |
+
int strict;
|
| 1341 |
+
xsltPrincipalStylesheetDataPtr psData;
|
| 1342 |
+
xsltStyleItemUknownPtr unknownItem;
|
| 1343 |
+
int hasNsAliases; /* Indicator if there was an xsl:namespace-alias. */
|
| 1344 |
+
xsltNsAliasPtr nsAliases;
|
| 1345 |
+
xsltVarInfoPtr ivars; /* Storage of local in-scope variables/params. */
|
| 1346 |
+
xsltVarInfoPtr ivar; /* topmost local variable/param. */
|
| 1347 |
+
};
|
| 1348 |
+
|
| 1349 |
+
#else /* XSLT_REFACTORED */
|
| 1350 |
+
/*
|
| 1351 |
+
* The old structures before refactoring.
|
| 1352 |
+
*/
|
| 1353 |
+
|
| 1354 |
+
/**
|
| 1355 |
+
* _xsltStylePreComp:
|
| 1356 |
+
*
|
| 1357 |
+
* The in-memory structure corresponding to XSLT stylesheet constructs
|
| 1358 |
+
* precomputed data.
|
| 1359 |
+
*/
|
| 1360 |
+
struct _xsltStylePreComp {
|
| 1361 |
+
xsltElemPreCompPtr next; /* chained list */
|
| 1362 |
+
xsltStyleType type; /* type of the element */
|
| 1363 |
+
xsltTransformFunction func; /* handling function */
|
| 1364 |
+
xmlNodePtr inst; /* the instruction */
|
| 1365 |
+
|
| 1366 |
+
/*
|
| 1367 |
+
* Pre computed values.
|
| 1368 |
+
*/
|
| 1369 |
+
|
| 1370 |
+
const xmlChar *stype; /* sort */
|
| 1371 |
+
int has_stype; /* sort */
|
| 1372 |
+
int number; /* sort */
|
| 1373 |
+
const xmlChar *order; /* sort */
|
| 1374 |
+
int has_order; /* sort */
|
| 1375 |
+
int descending; /* sort */
|
| 1376 |
+
const xmlChar *lang; /* sort */
|
| 1377 |
+
int has_lang; /* sort */
|
| 1378 |
+
const xmlChar *case_order; /* sort */
|
| 1379 |
+
int lower_first; /* sort */
|
| 1380 |
+
|
| 1381 |
+
const xmlChar *use; /* copy, element */
|
| 1382 |
+
int has_use; /* copy, element */
|
| 1383 |
+
|
| 1384 |
+
int noescape; /* text */
|
| 1385 |
+
|
| 1386 |
+
const xmlChar *name; /* element, attribute, pi */
|
| 1387 |
+
int has_name; /* element, attribute, pi */
|
| 1388 |
+
const xmlChar *ns; /* element */
|
| 1389 |
+
int has_ns; /* element */
|
| 1390 |
+
|
| 1391 |
+
const xmlChar *mode; /* apply-templates */
|
| 1392 |
+
const xmlChar *modeURI; /* apply-templates */
|
| 1393 |
+
|
| 1394 |
+
const xmlChar *test; /* if */
|
| 1395 |
+
|
| 1396 |
+
xsltTemplatePtr templ; /* call-template */
|
| 1397 |
+
|
| 1398 |
+
const xmlChar *select; /* sort, copy-of, value-of, apply-templates */
|
| 1399 |
+
|
| 1400 |
+
int ver11; /* document */
|
| 1401 |
+
const xmlChar *filename; /* document URL */
|
| 1402 |
+
int has_filename; /* document */
|
| 1403 |
+
|
| 1404 |
+
xsltNumberData numdata; /* number */
|
| 1405 |
+
|
| 1406 |
+
xmlXPathCompExprPtr comp; /* a precompiled XPath expression */
|
| 1407 |
+
xmlNsPtr *nsList; /* the namespaces in scope */
|
| 1408 |
+
int nsNr; /* the number of namespaces in scope */
|
| 1409 |
+
};
|
| 1410 |
+
|
| 1411 |
+
#endif /* XSLT_REFACTORED */
|
| 1412 |
+
|
| 1413 |
+
|
| 1414 |
+
/*
|
| 1415 |
+
* The in-memory structure corresponding to an XSLT Variable
|
| 1416 |
+
* or Param.
|
| 1417 |
+
*/
|
| 1418 |
+
typedef struct _xsltStackElem xsltStackElem;
|
| 1419 |
+
typedef xsltStackElem *xsltStackElemPtr;
|
| 1420 |
+
struct _xsltStackElem {
|
| 1421 |
+
struct _xsltStackElem *next;/* chained list */
|
| 1422 |
+
xsltStylePreCompPtr comp; /* the compiled form */
|
| 1423 |
+
int computed; /* was the evaluation done */
|
| 1424 |
+
const xmlChar *name; /* the local part of the name QName */
|
| 1425 |
+
const xmlChar *nameURI; /* the URI part of the name QName */
|
| 1426 |
+
const xmlChar *select; /* the eval string */
|
| 1427 |
+
xmlNodePtr tree; /* the sequence constructor if no eval
|
| 1428 |
+
string or the location */
|
| 1429 |
+
xmlXPathObjectPtr value; /* The value if computed */
|
| 1430 |
+
xmlDocPtr fragment; /* The Result Tree Fragments (needed for XSLT 1.0)
|
| 1431 |
+
which are bound to the variable's lifetime. */
|
| 1432 |
+
int level; /* the depth in the tree;
|
| 1433 |
+
-1 if persistent (e.g. a given xsl:with-param) */
|
| 1434 |
+
xsltTransformContextPtr context; /* The transformation context; needed to cache
|
| 1435 |
+
the variables */
|
| 1436 |
+
int flags;
|
| 1437 |
+
};
|
| 1438 |
+
|
| 1439 |
+
#ifdef XSLT_REFACTORED
|
| 1440 |
+
|
| 1441 |
+
struct _xsltPrincipalStylesheetData {
|
| 1442 |
+
/*
|
| 1443 |
+
* Namespace dictionary for ns-prefixes and ns-names:
|
| 1444 |
+
* TODO: Shared between stylesheets, and XPath mechanisms.
|
| 1445 |
+
* Not used yet.
|
| 1446 |
+
*/
|
| 1447 |
+
xmlDictPtr namespaceDict;
|
| 1448 |
+
/*
|
| 1449 |
+
* Global list of in-scope namespaces.
|
| 1450 |
+
*/
|
| 1451 |
+
xsltPointerListPtr inScopeNamespaces;
|
| 1452 |
+
/*
|
| 1453 |
+
* Global list of information for [xsl:]excluded-result-prefixes.
|
| 1454 |
+
*/
|
| 1455 |
+
xsltPointerListPtr exclResultNamespaces;
|
| 1456 |
+
/*
|
| 1457 |
+
* Global list of information for [xsl:]extension-element-prefixes.
|
| 1458 |
+
*/
|
| 1459 |
+
xsltPointerListPtr extElemNamespaces;
|
| 1460 |
+
xsltEffectiveNsPtr effectiveNs;
|
| 1461 |
+
#ifdef XSLT_REFACTORED_XSLT_NSCOMP
|
| 1462 |
+
/*
|
| 1463 |
+
* Namespace name map to get rid of string comparison of namespace names.
|
| 1464 |
+
*/
|
| 1465 |
+
xsltNsMapPtr nsMap;
|
| 1466 |
+
#endif
|
| 1467 |
+
};
|
| 1468 |
+
|
| 1469 |
+
|
| 1470 |
+
#endif
|
| 1471 |
+
/*
|
| 1472 |
+
* Note that we added a @compCtxt field to anchor an stylesheet compilation
|
| 1473 |
+
* context, since, due to historical reasons, various compile-time function
|
| 1474 |
+
* take only the stylesheet as argument and not a compilation context.
|
| 1475 |
+
*/
|
| 1476 |
+
struct _xsltStylesheet {
|
| 1477 |
+
/*
|
| 1478 |
+
* The stylesheet import relation is kept as a tree.
|
| 1479 |
+
*/
|
| 1480 |
+
struct _xsltStylesheet *parent;
|
| 1481 |
+
struct _xsltStylesheet *next;
|
| 1482 |
+
struct _xsltStylesheet *imports;
|
| 1483 |
+
|
| 1484 |
+
xsltDocumentPtr docList; /* the include document list */
|
| 1485 |
+
|
| 1486 |
+
/*
|
| 1487 |
+
* General data on the style sheet document.
|
| 1488 |
+
*/
|
| 1489 |
+
xmlDocPtr doc; /* the parsed XML stylesheet */
|
| 1490 |
+
xmlHashTablePtr stripSpaces;/* the hash table of the strip-space and
|
| 1491 |
+
preserve space elements */
|
| 1492 |
+
int stripAll; /* strip-space * (1) preserve-space * (-1) */
|
| 1493 |
+
xmlHashTablePtr cdataSection;/* the hash table of the cdata-section */
|
| 1494 |
+
|
| 1495 |
+
/*
|
| 1496 |
+
* Global variable or parameters.
|
| 1497 |
+
*/
|
| 1498 |
+
xsltStackElemPtr variables; /* linked list of param and variables */
|
| 1499 |
+
|
| 1500 |
+
/*
|
| 1501 |
+
* Template descriptions.
|
| 1502 |
+
*/
|
| 1503 |
+
xsltTemplatePtr templates; /* the ordered list of templates */
|
| 1504 |
+
xmlHashTablePtr templatesHash; /* hash table or wherever compiled
|
| 1505 |
+
templates information is stored */
|
| 1506 |
+
struct _xsltCompMatch *rootMatch; /* template based on / */
|
| 1507 |
+
struct _xsltCompMatch *keyMatch; /* template based on key() */
|
| 1508 |
+
struct _xsltCompMatch *elemMatch; /* template based on * */
|
| 1509 |
+
struct _xsltCompMatch *attrMatch; /* template based on @* */
|
| 1510 |
+
struct _xsltCompMatch *parentMatch; /* template based on .. */
|
| 1511 |
+
struct _xsltCompMatch *textMatch; /* template based on text() */
|
| 1512 |
+
struct _xsltCompMatch *piMatch; /* template based on
|
| 1513 |
+
processing-instruction() */
|
| 1514 |
+
struct _xsltCompMatch *commentMatch; /* template based on comment() */
|
| 1515 |
+
|
| 1516 |
+
/*
|
| 1517 |
+
* Namespace aliases.
|
| 1518 |
+
* NOTE: Not used in the refactored code.
|
| 1519 |
+
*/
|
| 1520 |
+
xmlHashTablePtr nsAliases; /* the namespace alias hash tables */
|
| 1521 |
+
|
| 1522 |
+
/*
|
| 1523 |
+
* Attribute sets.
|
| 1524 |
+
*/
|
| 1525 |
+
xmlHashTablePtr attributeSets;/* the attribute sets hash tables */
|
| 1526 |
+
|
| 1527 |
+
/*
|
| 1528 |
+
* Namespaces.
|
| 1529 |
+
* TODO: Eliminate this.
|
| 1530 |
+
*/
|
| 1531 |
+
xmlHashTablePtr nsHash; /* the set of namespaces in use:
|
| 1532 |
+
ATTENTION: This is used for
|
| 1533 |
+
execution of XPath expressions; unfortunately
|
| 1534 |
+
it restricts the stylesheet to have distinct
|
| 1535 |
+
prefixes.
|
| 1536 |
+
TODO: We need to get rid of this.
|
| 1537 |
+
*/
|
| 1538 |
+
void *nsDefs; /* ATTENTION TODO: This is currently used to store
|
| 1539 |
+
xsltExtDefPtr (in extensions.c) and
|
| 1540 |
+
*not* xmlNsPtr.
|
| 1541 |
+
*/
|
| 1542 |
+
|
| 1543 |
+
/*
|
| 1544 |
+
* Key definitions.
|
| 1545 |
+
*/
|
| 1546 |
+
void *keys; /* key definitions */
|
| 1547 |
+
|
| 1548 |
+
/*
|
| 1549 |
+
* Output related stuff.
|
| 1550 |
+
*/
|
| 1551 |
+
xmlChar *method; /* the output method */
|
| 1552 |
+
xmlChar *methodURI; /* associated namespace if any */
|
| 1553 |
+
xmlChar *version; /* version string */
|
| 1554 |
+
xmlChar *encoding; /* encoding string */
|
| 1555 |
+
int omitXmlDeclaration; /* omit-xml-declaration = "yes" | "no" */
|
| 1556 |
+
|
| 1557 |
+
/*
|
| 1558 |
+
* Number formatting.
|
| 1559 |
+
*/
|
| 1560 |
+
xsltDecimalFormatPtr decimalFormat;
|
| 1561 |
+
int standalone; /* standalone = "yes" | "no" */
|
| 1562 |
+
xmlChar *doctypePublic; /* doctype-public string */
|
| 1563 |
+
xmlChar *doctypeSystem; /* doctype-system string */
|
| 1564 |
+
int indent; /* should output being indented */
|
| 1565 |
+
xmlChar *mediaType; /* media-type string */
|
| 1566 |
+
|
| 1567 |
+
/*
|
| 1568 |
+
* Precomputed blocks.
|
| 1569 |
+
*/
|
| 1570 |
+
xsltElemPreCompPtr preComps;/* list of precomputed blocks */
|
| 1571 |
+
int warnings; /* number of warnings found at compilation */
|
| 1572 |
+
int errors; /* number of errors found at compilation */
|
| 1573 |
+
|
| 1574 |
+
xmlChar *exclPrefix; /* last excluded prefixes */
|
| 1575 |
+
xmlChar **exclPrefixTab; /* array of excluded prefixes */
|
| 1576 |
+
int exclPrefixNr; /* number of excluded prefixes in scope */
|
| 1577 |
+
int exclPrefixMax; /* size of the array */
|
| 1578 |
+
|
| 1579 |
+
void *_private; /* user defined data */
|
| 1580 |
+
|
| 1581 |
+
/*
|
| 1582 |
+
* Extensions.
|
| 1583 |
+
*/
|
| 1584 |
+
xmlHashTablePtr extInfos; /* the extension data */
|
| 1585 |
+
int extrasNr; /* the number of extras required */
|
| 1586 |
+
|
| 1587 |
+
/*
|
| 1588 |
+
* For keeping track of nested includes
|
| 1589 |
+
*/
|
| 1590 |
+
xsltDocumentPtr includes; /* points to last nested include */
|
| 1591 |
+
|
| 1592 |
+
/*
|
| 1593 |
+
* dictionary: shared between stylesheet, context and documents.
|
| 1594 |
+
*/
|
| 1595 |
+
xmlDictPtr dict;
|
| 1596 |
+
/*
|
| 1597 |
+
* precompiled attribute value templates.
|
| 1598 |
+
*/
|
| 1599 |
+
void *attVTs;
|
| 1600 |
+
/*
|
| 1601 |
+
* if namespace-alias has an alias for the default stylesheet prefix
|
| 1602 |
+
* NOTE: Not used in the refactored code.
|
| 1603 |
+
*/
|
| 1604 |
+
const xmlChar *defaultAlias;
|
| 1605 |
+
/*
|
| 1606 |
+
* bypass pre-processing (already done) (used in imports)
|
| 1607 |
+
*/
|
| 1608 |
+
int nopreproc;
|
| 1609 |
+
/*
|
| 1610 |
+
* all document text strings were internalized
|
| 1611 |
+
*/
|
| 1612 |
+
int internalized;
|
| 1613 |
+
/*
|
| 1614 |
+
* Literal Result Element as Stylesheet c.f. section 2.3
|
| 1615 |
+
*/
|
| 1616 |
+
int literal_result;
|
| 1617 |
+
/*
|
| 1618 |
+
* The principal stylesheet
|
| 1619 |
+
*/
|
| 1620 |
+
xsltStylesheetPtr principal;
|
| 1621 |
+
#ifdef XSLT_REFACTORED
|
| 1622 |
+
/*
|
| 1623 |
+
* Compilation context used during compile-time.
|
| 1624 |
+
*/
|
| 1625 |
+
xsltCompilerCtxtPtr compCtxt; /* TODO: Change this to (void *). */
|
| 1626 |
+
|
| 1627 |
+
xsltPrincipalStylesheetDataPtr principalData;
|
| 1628 |
+
#endif
|
| 1629 |
+
/*
|
| 1630 |
+
* Forwards-compatible processing
|
| 1631 |
+
*/
|
| 1632 |
+
int forwards_compatible;
|
| 1633 |
+
|
| 1634 |
+
xmlHashTablePtr namedTemplates; /* hash table of named templates */
|
| 1635 |
+
|
| 1636 |
+
xmlXPathContextPtr xpathCtxt;
|
| 1637 |
+
|
| 1638 |
+
unsigned long opLimit;
|
| 1639 |
+
unsigned long opCount;
|
| 1640 |
+
};
|
| 1641 |
+
|
| 1642 |
+
typedef struct _xsltTransformCache xsltTransformCache;
|
| 1643 |
+
typedef xsltTransformCache *xsltTransformCachePtr;
|
| 1644 |
+
struct _xsltTransformCache {
|
| 1645 |
+
xmlDocPtr RVT;
|
| 1646 |
+
int nbRVT;
|
| 1647 |
+
xsltStackElemPtr stackItems;
|
| 1648 |
+
int nbStackItems;
|
| 1649 |
+
#ifdef XSLT_DEBUG_PROFILE_CACHE
|
| 1650 |
+
int dbgCachedRVTs;
|
| 1651 |
+
int dbgReusedRVTs;
|
| 1652 |
+
int dbgCachedVars;
|
| 1653 |
+
int dbgReusedVars;
|
| 1654 |
+
#endif
|
| 1655 |
+
};
|
| 1656 |
+
|
| 1657 |
+
/*
|
| 1658 |
+
* The in-memory structure corresponding to an XSLT Transformation.
|
| 1659 |
+
*/
|
| 1660 |
+
typedef enum {
|
| 1661 |
+
XSLT_OUTPUT_XML = 0,
|
| 1662 |
+
XSLT_OUTPUT_HTML,
|
| 1663 |
+
XSLT_OUTPUT_TEXT
|
| 1664 |
+
} xsltOutputType;
|
| 1665 |
+
|
| 1666 |
+
typedef void *
|
| 1667 |
+
(*xsltNewLocaleFunc)(const xmlChar *lang, int lowerFirst);
|
| 1668 |
+
typedef void
|
| 1669 |
+
(*xsltFreeLocaleFunc)(void *locale);
|
| 1670 |
+
typedef xmlChar *
|
| 1671 |
+
(*xsltGenSortKeyFunc)(void *locale, const xmlChar *lang);
|
| 1672 |
+
|
| 1673 |
+
typedef enum {
|
| 1674 |
+
XSLT_STATE_OK = 0,
|
| 1675 |
+
XSLT_STATE_ERROR,
|
| 1676 |
+
XSLT_STATE_STOPPED
|
| 1677 |
+
} xsltTransformState;
|
| 1678 |
+
|
| 1679 |
+
struct _xsltTransformContext {
|
| 1680 |
+
xsltStylesheetPtr style; /* the stylesheet used */
|
| 1681 |
+
xsltOutputType type; /* the type of output */
|
| 1682 |
+
|
| 1683 |
+
xsltTemplatePtr templ; /* the current template */
|
| 1684 |
+
int templNr; /* Nb of templates in the stack */
|
| 1685 |
+
int templMax; /* Size of the templtes stack */
|
| 1686 |
+
xsltTemplatePtr *templTab; /* the template stack */
|
| 1687 |
+
|
| 1688 |
+
xsltStackElemPtr vars; /* the current variable list */
|
| 1689 |
+
int varsNr; /* Nb of variable list in the stack */
|
| 1690 |
+
int varsMax; /* Size of the variable list stack */
|
| 1691 |
+
xsltStackElemPtr *varsTab; /* the variable list stack */
|
| 1692 |
+
int varsBase; /* the var base for current templ */
|
| 1693 |
+
|
| 1694 |
+
/*
|
| 1695 |
+
* Extensions
|
| 1696 |
+
*/
|
| 1697 |
+
xmlHashTablePtr extFunctions; /* the extension functions */
|
| 1698 |
+
xmlHashTablePtr extElements; /* the extension elements */
|
| 1699 |
+
xmlHashTablePtr extInfos; /* the extension data */
|
| 1700 |
+
|
| 1701 |
+
const xmlChar *mode; /* the current mode */
|
| 1702 |
+
const xmlChar *modeURI; /* the current mode URI */
|
| 1703 |
+
|
| 1704 |
+
xsltDocumentPtr docList; /* the document list */
|
| 1705 |
+
|
| 1706 |
+
xsltDocumentPtr document; /* the current source document; can be NULL if an RTF */
|
| 1707 |
+
xmlNodePtr node; /* the current node being processed */
|
| 1708 |
+
xmlNodeSetPtr nodeList; /* the current node list */
|
| 1709 |
+
/* xmlNodePtr current; the node */
|
| 1710 |
+
|
| 1711 |
+
xmlDocPtr output; /* the resulting document */
|
| 1712 |
+
xmlNodePtr insert; /* the insertion node */
|
| 1713 |
+
|
| 1714 |
+
xmlXPathContextPtr xpathCtxt; /* the XPath context */
|
| 1715 |
+
xsltTransformState state; /* the current state */
|
| 1716 |
+
|
| 1717 |
+
/*
|
| 1718 |
+
* Global variables
|
| 1719 |
+
*/
|
| 1720 |
+
xmlHashTablePtr globalVars; /* the global variables and params */
|
| 1721 |
+
|
| 1722 |
+
xmlNodePtr inst; /* the instruction in the stylesheet */
|
| 1723 |
+
|
| 1724 |
+
int xinclude; /* should XInclude be processed */
|
| 1725 |
+
|
| 1726 |
+
const char * outputFile; /* the output URI if known */
|
| 1727 |
+
|
| 1728 |
+
int profile; /* is this run profiled */
|
| 1729 |
+
long prof; /* the current profiled value */
|
| 1730 |
+
int profNr; /* Nb of templates in the stack */
|
| 1731 |
+
int profMax; /* Size of the templtaes stack */
|
| 1732 |
+
long *profTab; /* the profile template stack */
|
| 1733 |
+
|
| 1734 |
+
void *_private; /* user defined data */
|
| 1735 |
+
|
| 1736 |
+
int extrasNr; /* the number of extras used */
|
| 1737 |
+
int extrasMax; /* the number of extras allocated */
|
| 1738 |
+
xsltRuntimeExtraPtr extras; /* extra per runtime information */
|
| 1739 |
+
|
| 1740 |
+
xsltDocumentPtr styleList; /* the stylesheet docs list */
|
| 1741 |
+
void * sec; /* the security preferences if any */
|
| 1742 |
+
|
| 1743 |
+
xmlGenericErrorFunc error; /* a specific error handler */
|
| 1744 |
+
void * errctx; /* context for the error handler */
|
| 1745 |
+
|
| 1746 |
+
xsltSortFunc sortfunc; /* a ctxt specific sort routine */
|
| 1747 |
+
|
| 1748 |
+
/*
|
| 1749 |
+
* handling of temporary Result Value Tree
|
| 1750 |
+
* (XSLT 1.0 term: "Result Tree Fragment")
|
| 1751 |
+
*/
|
| 1752 |
+
xmlDocPtr tmpRVT; /* list of RVT without persistance */
|
| 1753 |
+
xmlDocPtr persistRVT; /* list of persistant RVTs */
|
| 1754 |
+
int ctxtflags; /* context processing flags */
|
| 1755 |
+
|
| 1756 |
+
/*
|
| 1757 |
+
* Speed optimization when coalescing text nodes
|
| 1758 |
+
*/
|
| 1759 |
+
const xmlChar *lasttext; /* last text node content */
|
| 1760 |
+
int lasttsize; /* last text node size */
|
| 1761 |
+
int lasttuse; /* last text node use */
|
| 1762 |
+
/*
|
| 1763 |
+
* Per Context Debugging
|
| 1764 |
+
*/
|
| 1765 |
+
int debugStatus; /* the context level debug status */
|
| 1766 |
+
unsigned long* traceCode; /* pointer to the variable holding the mask */
|
| 1767 |
+
|
| 1768 |
+
int parserOptions; /* parser options xmlParserOption */
|
| 1769 |
+
|
| 1770 |
+
/*
|
| 1771 |
+
* dictionary: shared between stylesheet, context and documents.
|
| 1772 |
+
*/
|
| 1773 |
+
xmlDictPtr dict;
|
| 1774 |
+
xmlDocPtr tmpDoc; /* Obsolete; not used in the library. */
|
| 1775 |
+
/*
|
| 1776 |
+
* all document text strings are internalized
|
| 1777 |
+
*/
|
| 1778 |
+
int internalized;
|
| 1779 |
+
int nbKeys;
|
| 1780 |
+
int hasTemplKeyPatterns;
|
| 1781 |
+
xsltTemplatePtr currentTemplateRule; /* the Current Template Rule */
|
| 1782 |
+
xmlNodePtr initialContextNode;
|
| 1783 |
+
xmlDocPtr initialContextDoc;
|
| 1784 |
+
xsltTransformCachePtr cache;
|
| 1785 |
+
void *contextVariable; /* the current variable item */
|
| 1786 |
+
xmlDocPtr localRVT; /* list of local tree fragments; will be freed when
|
| 1787 |
+
the instruction which created the fragment
|
| 1788 |
+
exits */
|
| 1789 |
+
xmlDocPtr localRVTBase; /* Obsolete */
|
| 1790 |
+
int keyInitLevel; /* Needed to catch recursive keys issues */
|
| 1791 |
+
int depth; /* Needed to catch recursions */
|
| 1792 |
+
int maxTemplateDepth;
|
| 1793 |
+
int maxTemplateVars;
|
| 1794 |
+
unsigned long opLimit;
|
| 1795 |
+
unsigned long opCount;
|
| 1796 |
+
int sourceDocDirty;
|
| 1797 |
+
unsigned long currentId; /* For generate-id() */
|
| 1798 |
+
|
| 1799 |
+
xsltNewLocaleFunc newLocale;
|
| 1800 |
+
xsltFreeLocaleFunc freeLocale;
|
| 1801 |
+
xsltGenSortKeyFunc genSortKey;
|
| 1802 |
+
};
|
| 1803 |
+
|
| 1804 |
+
/**
|
| 1805 |
+
* CHECK_STOPPED:
|
| 1806 |
+
*
|
| 1807 |
+
* Macro to check if the XSLT processing should be stopped.
|
| 1808 |
+
* Will return from the function.
|
| 1809 |
+
*/
|
| 1810 |
+
#define CHECK_STOPPED if (ctxt->state == XSLT_STATE_STOPPED) return;
|
| 1811 |
+
|
| 1812 |
+
/**
|
| 1813 |
+
* CHECK_STOPPEDE:
|
| 1814 |
+
*
|
| 1815 |
+
* Macro to check if the XSLT processing should be stopped.
|
| 1816 |
+
* Will goto the error: label.
|
| 1817 |
+
*/
|
| 1818 |
+
#define CHECK_STOPPEDE if (ctxt->state == XSLT_STATE_STOPPED) goto error;
|
| 1819 |
+
|
| 1820 |
+
/**
|
| 1821 |
+
* CHECK_STOPPED0:
|
| 1822 |
+
*
|
| 1823 |
+
* Macro to check if the XSLT processing should be stopped.
|
| 1824 |
+
* Will return from the function with a 0 value.
|
| 1825 |
+
*/
|
| 1826 |
+
#define CHECK_STOPPED0 if (ctxt->state == XSLT_STATE_STOPPED) return(0);
|
| 1827 |
+
|
| 1828 |
+
/*
|
| 1829 |
+
* The macro XML_CAST_FPTR is a hack to avoid a gcc warning about
|
| 1830 |
+
* possible incompatibilities between function pointers and object
|
| 1831 |
+
* pointers. It is defined in libxml/hash.h within recent versions
|
| 1832 |
+
* of libxml2, but is put here for compatibility.
|
| 1833 |
+
*/
|
| 1834 |
+
#ifndef XML_CAST_FPTR
|
| 1835 |
+
/**
|
| 1836 |
+
* XML_CAST_FPTR:
|
| 1837 |
+
* @fptr: pointer to a function
|
| 1838 |
+
*
|
| 1839 |
+
* Macro to do a casting from an object pointer to a
|
| 1840 |
+
* function pointer without encountering a warning from
|
| 1841 |
+
* gcc
|
| 1842 |
+
*
|
| 1843 |
+
* #define XML_CAST_FPTR(fptr) (*(void **)(&fptr))
|
| 1844 |
+
* This macro violated ISO C aliasing rules (gcc4 on s390 broke)
|
| 1845 |
+
* so it is disabled now
|
| 1846 |
+
*/
|
| 1847 |
+
|
| 1848 |
+
#define XML_CAST_FPTR(fptr) fptr
|
| 1849 |
+
#endif
|
| 1850 |
+
/*
|
| 1851 |
+
* Functions associated to the internal types
|
| 1852 |
+
xsltDecimalFormatPtr xsltDecimalFormatGetByName(xsltStylesheetPtr sheet,
|
| 1853 |
+
xmlChar *name);
|
| 1854 |
+
*/
|
| 1855 |
+
XSLTPUBFUN xsltStylesheetPtr XSLTCALL
|
| 1856 |
+
xsltNewStylesheet (void);
|
| 1857 |
+
XSLTPUBFUN xsltStylesheetPtr XSLTCALL
|
| 1858 |
+
xsltParseStylesheetFile (const xmlChar* filename);
|
| 1859 |
+
XSLTPUBFUN void XSLTCALL
|
| 1860 |
+
xsltFreeStylesheet (xsltStylesheetPtr style);
|
| 1861 |
+
XSLTPUBFUN int XSLTCALL
|
| 1862 |
+
xsltIsBlank (xmlChar *str);
|
| 1863 |
+
XSLTPUBFUN void XSLTCALL
|
| 1864 |
+
xsltFreeStackElemList (xsltStackElemPtr elem);
|
| 1865 |
+
XSLTPUBFUN xsltDecimalFormatPtr XSLTCALL
|
| 1866 |
+
xsltDecimalFormatGetByName(xsltStylesheetPtr style,
|
| 1867 |
+
xmlChar *name);
|
| 1868 |
+
XSLTPUBFUN xsltDecimalFormatPtr XSLTCALL
|
| 1869 |
+
xsltDecimalFormatGetByQName(xsltStylesheetPtr style,
|
| 1870 |
+
const xmlChar *nsUri,
|
| 1871 |
+
const xmlChar *name);
|
| 1872 |
+
|
| 1873 |
+
XSLTPUBFUN xsltStylesheetPtr XSLTCALL
|
| 1874 |
+
xsltParseStylesheetProcess(xsltStylesheetPtr ret,
|
| 1875 |
+
xmlDocPtr doc);
|
| 1876 |
+
XSLTPUBFUN void XSLTCALL
|
| 1877 |
+
xsltParseStylesheetOutput(xsltStylesheetPtr style,
|
| 1878 |
+
xmlNodePtr cur);
|
| 1879 |
+
XSLTPUBFUN xsltStylesheetPtr XSLTCALL
|
| 1880 |
+
xsltParseStylesheetDoc (xmlDocPtr doc);
|
| 1881 |
+
XSLTPUBFUN xsltStylesheetPtr XSLTCALL
|
| 1882 |
+
xsltParseStylesheetImportedDoc(xmlDocPtr doc,
|
| 1883 |
+
xsltStylesheetPtr style);
|
| 1884 |
+
XSLTPUBFUN int XSLTCALL
|
| 1885 |
+
xsltParseStylesheetUser(xsltStylesheetPtr style,
|
| 1886 |
+
xmlDocPtr doc);
|
| 1887 |
+
XSLTPUBFUN xsltStylesheetPtr XSLTCALL
|
| 1888 |
+
xsltLoadStylesheetPI (xmlDocPtr doc);
|
| 1889 |
+
XSLTPUBFUN void XSLTCALL
|
| 1890 |
+
xsltNumberFormat (xsltTransformContextPtr ctxt,
|
| 1891 |
+
xsltNumberDataPtr data,
|
| 1892 |
+
xmlNodePtr node);
|
| 1893 |
+
XSLTPUBFUN xmlXPathError XSLTCALL
|
| 1894 |
+
xsltFormatNumberConversion(xsltDecimalFormatPtr self,
|
| 1895 |
+
xmlChar *format,
|
| 1896 |
+
double number,
|
| 1897 |
+
xmlChar **result);
|
| 1898 |
+
|
| 1899 |
+
XSLTPUBFUN void XSLTCALL
|
| 1900 |
+
xsltParseTemplateContent(xsltStylesheetPtr style,
|
| 1901 |
+
xmlNodePtr templ);
|
| 1902 |
+
XSLTPUBFUN int XSLTCALL
|
| 1903 |
+
xsltAllocateExtra (xsltStylesheetPtr style);
|
| 1904 |
+
XSLTPUBFUN int XSLTCALL
|
| 1905 |
+
xsltAllocateExtraCtxt (xsltTransformContextPtr ctxt);
|
| 1906 |
+
/*
|
| 1907 |
+
* Extra functions for Result Value Trees
|
| 1908 |
+
*/
|
| 1909 |
+
XSLTPUBFUN xmlDocPtr XSLTCALL
|
| 1910 |
+
xsltCreateRVT (xsltTransformContextPtr ctxt);
|
| 1911 |
+
XSLTPUBFUN int XSLTCALL
|
| 1912 |
+
xsltRegisterTmpRVT (xsltTransformContextPtr ctxt,
|
| 1913 |
+
xmlDocPtr RVT);
|
| 1914 |
+
XSLTPUBFUN int XSLTCALL
|
| 1915 |
+
xsltRegisterLocalRVT (xsltTransformContextPtr ctxt,
|
| 1916 |
+
xmlDocPtr RVT);
|
| 1917 |
+
XSLTPUBFUN int XSLTCALL
|
| 1918 |
+
xsltRegisterPersistRVT (xsltTransformContextPtr ctxt,
|
| 1919 |
+
xmlDocPtr RVT);
|
| 1920 |
+
XSLTPUBFUN int XSLTCALL
|
| 1921 |
+
xsltExtensionInstructionResultRegister(
|
| 1922 |
+
xsltTransformContextPtr ctxt,
|
| 1923 |
+
xmlXPathObjectPtr obj);
|
| 1924 |
+
XSLTPUBFUN int XSLTCALL
|
| 1925 |
+
xsltExtensionInstructionResultFinalize(
|
| 1926 |
+
xsltTransformContextPtr ctxt);
|
| 1927 |
+
XSLTPUBFUN int XSLTCALL
|
| 1928 |
+
xsltFlagRVTs(
|
| 1929 |
+
xsltTransformContextPtr ctxt,
|
| 1930 |
+
xmlXPathObjectPtr obj,
|
| 1931 |
+
int val);
|
| 1932 |
+
XSLTPUBFUN void XSLTCALL
|
| 1933 |
+
xsltFreeRVTs (xsltTransformContextPtr ctxt);
|
| 1934 |
+
XSLTPUBFUN void XSLTCALL
|
| 1935 |
+
xsltReleaseRVT (xsltTransformContextPtr ctxt,
|
| 1936 |
+
xmlDocPtr RVT);
|
| 1937 |
+
/*
|
| 1938 |
+
* Extra functions for Attribute Value Templates
|
| 1939 |
+
*/
|
| 1940 |
+
XSLTPUBFUN void XSLTCALL
|
| 1941 |
+
xsltCompileAttr (xsltStylesheetPtr style,
|
| 1942 |
+
xmlAttrPtr attr);
|
| 1943 |
+
XSLTPUBFUN xmlChar * XSLTCALL
|
| 1944 |
+
xsltEvalAVT (xsltTransformContextPtr ctxt,
|
| 1945 |
+
void *avt,
|
| 1946 |
+
xmlNodePtr node);
|
| 1947 |
+
XSLTPUBFUN void XSLTCALL
|
| 1948 |
+
xsltFreeAVTList (void *avt);
|
| 1949 |
+
|
| 1950 |
+
/*
|
| 1951 |
+
* Extra function for successful xsltCleanupGlobals / xsltInit sequence.
|
| 1952 |
+
*/
|
| 1953 |
+
|
| 1954 |
+
XSLTPUBFUN void XSLTCALL
|
| 1955 |
+
xsltUninit (void);
|
| 1956 |
+
|
| 1957 |
+
/************************************************************************
|
| 1958 |
+
* *
|
| 1959 |
+
* Compile-time functions for *internal* use only *
|
| 1960 |
+
* *
|
| 1961 |
+
************************************************************************/
|
| 1962 |
+
|
| 1963 |
+
#ifdef XSLT_REFACTORED
|
| 1964 |
+
XSLTPUBFUN void XSLTCALL
|
| 1965 |
+
xsltParseSequenceConstructor(
|
| 1966 |
+
xsltCompilerCtxtPtr cctxt,
|
| 1967 |
+
xmlNodePtr start);
|
| 1968 |
+
XSLTPUBFUN int XSLTCALL
|
| 1969 |
+
xsltParseAnyXSLTElem (xsltCompilerCtxtPtr cctxt,
|
| 1970 |
+
xmlNodePtr elem);
|
| 1971 |
+
#ifdef XSLT_REFACTORED_XSLT_NSCOMP
|
| 1972 |
+
XSLTPUBFUN int XSLTCALL
|
| 1973 |
+
xsltRestoreDocumentNamespaces(
|
| 1974 |
+
xsltNsMapPtr ns,
|
| 1975 |
+
xmlDocPtr doc);
|
| 1976 |
+
#endif
|
| 1977 |
+
#endif /* XSLT_REFACTORED */
|
| 1978 |
+
|
| 1979 |
+
/************************************************************************
|
| 1980 |
+
* *
|
| 1981 |
+
* Transformation-time functions for *internal* use only *
|
| 1982 |
+
* *
|
| 1983 |
+
************************************************************************/
|
| 1984 |
+
XSLTPUBFUN int XSLTCALL
|
| 1985 |
+
xsltInitCtxtKey (xsltTransformContextPtr ctxt,
|
| 1986 |
+
xsltDocumentPtr doc,
|
| 1987 |
+
xsltKeyDefPtr keyd);
|
| 1988 |
+
XSLTPUBFUN int XSLTCALL
|
| 1989 |
+
xsltInitAllDocKeys (xsltTransformContextPtr ctxt);
|
| 1990 |
+
#ifdef __cplusplus
|
| 1991 |
+
}
|
| 1992 |
+
#endif
|
| 1993 |
+
|
| 1994 |
+
#endif /* __XML_XSLT_H__ */
|
| 1995 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/xsltconfig.h
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: compile-time version information for the XSLT engine
|
| 3 |
+
* Description: compile-time version information for the XSLT engine
|
| 4 |
+
* this module is autogenerated.
|
| 5 |
+
*
|
| 6 |
+
* Copy: See Copyright for the status of this software.
|
| 7 |
+
*
|
| 8 |
+
* Author: Daniel Veillard
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
#ifndef __XML_XSLTCONFIG_H__
|
| 12 |
+
#define __XML_XSLTCONFIG_H__
|
| 13 |
+
|
| 14 |
+
#ifdef __cplusplus
|
| 15 |
+
extern "C" {
|
| 16 |
+
#endif
|
| 17 |
+
|
| 18 |
+
/**
|
| 19 |
+
* LIBXSLT_DOTTED_VERSION:
|
| 20 |
+
*
|
| 21 |
+
* the version string like "1.2.3"
|
| 22 |
+
*/
|
| 23 |
+
#define LIBXSLT_DOTTED_VERSION "1.1.43"
|
| 24 |
+
|
| 25 |
+
/**
|
| 26 |
+
* LIBXSLT_VERSION:
|
| 27 |
+
*
|
| 28 |
+
* the version number: 1.2.3 value is 10203
|
| 29 |
+
*/
|
| 30 |
+
#define LIBXSLT_VERSION 10143
|
| 31 |
+
|
| 32 |
+
/**
|
| 33 |
+
* LIBXSLT_VERSION_STRING:
|
| 34 |
+
*
|
| 35 |
+
* the version number string, 1.2.3 value is "10203"
|
| 36 |
+
*/
|
| 37 |
+
#define LIBXSLT_VERSION_STRING "10143"
|
| 38 |
+
|
| 39 |
+
/**
|
| 40 |
+
* LIBXSLT_VERSION_EXTRA:
|
| 41 |
+
*
|
| 42 |
+
* extra version information, used to show a Git commit description
|
| 43 |
+
*/
|
| 44 |
+
#define LIBXSLT_VERSION_EXTRA ""
|
| 45 |
+
|
| 46 |
+
/**
|
| 47 |
+
* WITH_XSLT_DEBUG:
|
| 48 |
+
*
|
| 49 |
+
* Activate the compilation of the debug reporting. Speed penalty
|
| 50 |
+
* is insignifiant and being able to run xsltpoc -v is useful. On
|
| 51 |
+
* by default unless --without-debug is passed to configure
|
| 52 |
+
*/
|
| 53 |
+
#if 0
|
| 54 |
+
#define WITH_XSLT_DEBUG
|
| 55 |
+
#endif
|
| 56 |
+
|
| 57 |
+
/**
|
| 58 |
+
* XSLT_NEED_TRIO:
|
| 59 |
+
*
|
| 60 |
+
* should be activated if the existing libc library lacks some of the
|
| 61 |
+
* string formatting function, in that case reuse the Trio ones already
|
| 62 |
+
* compiled in the libxml2 library.
|
| 63 |
+
*/
|
| 64 |
+
|
| 65 |
+
#if 0
|
| 66 |
+
#define XSLT_NEED_TRIO
|
| 67 |
+
#endif
|
| 68 |
+
#ifdef __VMS
|
| 69 |
+
#define HAVE_SYS_STAT_H 1
|
| 70 |
+
#ifndef XSLT_NEED_TRIO
|
| 71 |
+
#define XSLT_NEED_TRIO
|
| 72 |
+
#endif
|
| 73 |
+
#endif
|
| 74 |
+
|
| 75 |
+
#ifdef XSLT_NEED_TRIO
|
| 76 |
+
#define TRIO_REPLACE_STDIO
|
| 77 |
+
#endif
|
| 78 |
+
|
| 79 |
+
/**
|
| 80 |
+
* WITH_XSLT_DEBUGGER:
|
| 81 |
+
*
|
| 82 |
+
* Activate the compilation of the debugger support. Speed penalty
|
| 83 |
+
* is insignifiant.
|
| 84 |
+
* On by default unless --without-debugger is passed to configure
|
| 85 |
+
*/
|
| 86 |
+
#if 0
|
| 87 |
+
#ifndef WITH_DEBUGGER
|
| 88 |
+
#define WITH_DEBUGGER
|
| 89 |
+
#endif
|
| 90 |
+
#endif
|
| 91 |
+
|
| 92 |
+
/**
|
| 93 |
+
* WITH_PROFILER:
|
| 94 |
+
*
|
| 95 |
+
* Activate the compilation of the profiler. Speed penalty
|
| 96 |
+
* is insignifiant.
|
| 97 |
+
* On by default unless --without-profiler is passed to configure
|
| 98 |
+
*/
|
| 99 |
+
#if 1
|
| 100 |
+
#ifndef WITH_PROFILER
|
| 101 |
+
#define WITH_PROFILER
|
| 102 |
+
#endif
|
| 103 |
+
#endif
|
| 104 |
+
|
| 105 |
+
/**
|
| 106 |
+
* WITH_MODULES:
|
| 107 |
+
*
|
| 108 |
+
* Whether module support is configured into libxslt
|
| 109 |
+
* Note: no default module path for win32 platforms
|
| 110 |
+
*/
|
| 111 |
+
#if 0
|
| 112 |
+
#ifndef WITH_MODULES
|
| 113 |
+
#define WITH_MODULES
|
| 114 |
+
#endif
|
| 115 |
+
#define LIBXSLT_DEFAULT_PLUGINS_PATH() ""
|
| 116 |
+
#endif
|
| 117 |
+
|
| 118 |
+
/**
|
| 119 |
+
* LIBXSLT_ATTR_FORMAT:
|
| 120 |
+
*
|
| 121 |
+
* This macro is used to indicate to GCC the parameters are printf-like
|
| 122 |
+
*/
|
| 123 |
+
#ifdef __GNUC__
|
| 124 |
+
#define LIBXSLT_ATTR_FORMAT(fmt,args) __attribute__((__format__(__printf__,fmt,args)))
|
| 125 |
+
#else
|
| 126 |
+
#define LIBXSLT_ATTR_FORMAT(fmt,args)
|
| 127 |
+
#endif
|
| 128 |
+
|
| 129 |
+
/**
|
| 130 |
+
* LIBXSLT_PUBLIC:
|
| 131 |
+
*
|
| 132 |
+
* This macro is used to declare PUBLIC variables for Cygwin and for MSC on Windows
|
| 133 |
+
*/
|
| 134 |
+
#if !defined LIBXSLT_PUBLIC
|
| 135 |
+
#if (defined(__CYGWIN__) || defined _MSC_VER) && !defined IN_LIBXSLT && !defined LIBXSLT_STATIC
|
| 136 |
+
#define LIBXSLT_PUBLIC __declspec(dllimport)
|
| 137 |
+
#else
|
| 138 |
+
#define LIBXSLT_PUBLIC
|
| 139 |
+
#endif
|
| 140 |
+
#endif
|
| 141 |
+
|
| 142 |
+
#ifdef __cplusplus
|
| 143 |
+
}
|
| 144 |
+
#endif
|
| 145 |
+
|
| 146 |
+
#endif /* __XML_XSLTCONFIG_H__ */
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/xsltlocale.h
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: Locale handling
|
| 3 |
+
* Description: Interfaces for locale handling. Needed for language dependent
|
| 4 |
+
* sorting.
|
| 5 |
+
*
|
| 6 |
+
* Copy: See Copyright for the status of this software.
|
| 7 |
+
*
|
| 8 |
+
* Author: Nick Wellnhofer
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
#ifndef __XML_XSLTLOCALE_H__
|
| 12 |
+
#define __XML_XSLTLOCALE_H__
|
| 13 |
+
|
| 14 |
+
#include <libxml/xmlstring.h>
|
| 15 |
+
#include "xsltexports.h"
|
| 16 |
+
|
| 17 |
+
#ifdef __cplusplus
|
| 18 |
+
extern "C" {
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
XSLTPUBFUN void * XSLTCALL
|
| 22 |
+
xsltNewLocale (const xmlChar *langName,
|
| 23 |
+
int lowerFirst);
|
| 24 |
+
XSLTPUBFUN void XSLTCALL
|
| 25 |
+
xsltFreeLocale (void *locale);
|
| 26 |
+
XSLTPUBFUN xmlChar * XSLTCALL
|
| 27 |
+
xsltStrxfrm (void *locale,
|
| 28 |
+
const xmlChar *string);
|
| 29 |
+
XSLTPUBFUN void XSLTCALL
|
| 30 |
+
xsltFreeLocales (void);
|
| 31 |
+
|
| 32 |
+
/* Backward compatibility */
|
| 33 |
+
typedef void *xsltLocale;
|
| 34 |
+
typedef xmlChar xsltLocaleChar;
|
| 35 |
+
XSLTPUBFUN int XSLTCALL
|
| 36 |
+
xsltLocaleStrcmp (void *locale,
|
| 37 |
+
const xmlChar *str1,
|
| 38 |
+
const xmlChar *str2);
|
| 39 |
+
|
| 40 |
+
#ifdef __cplusplus
|
| 41 |
+
}
|
| 42 |
+
#endif
|
| 43 |
+
|
| 44 |
+
#endif /* __XML_XSLTLOCALE_H__ */
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/lxml/includes/libxslt/xsltutils.h
ADDED
|
@@ -0,0 +1,343 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Summary: set of utilities for the XSLT engine
|
| 3 |
+
* Description: interfaces for the utilities module of the XSLT engine.
|
| 4 |
+
* things like message handling, profiling, and other
|
| 5 |
+
* generally useful routines.
|
| 6 |
+
*
|
| 7 |
+
* Copy: See Copyright for the status of this software.
|
| 8 |
+
*
|
| 9 |
+
* Author: Daniel Veillard
|
| 10 |
+
*/
|
| 11 |
+
|
| 12 |
+
#ifndef __XML_XSLTUTILS_H__
|
| 13 |
+
#define __XML_XSLTUTILS_H__
|
| 14 |
+
|
| 15 |
+
#include <libxslt/xsltconfig.h>
|
| 16 |
+
#include <libxml/xpath.h>
|
| 17 |
+
#include <libxml/dict.h>
|
| 18 |
+
#include <libxml/xmlerror.h>
|
| 19 |
+
#include "xsltexports.h"
|
| 20 |
+
#include "xsltInternals.h"
|
| 21 |
+
|
| 22 |
+
#ifdef __cplusplus
|
| 23 |
+
extern "C" {
|
| 24 |
+
#endif
|
| 25 |
+
|
| 26 |
+
/**
|
| 27 |
+
* XSLT_TODO:
|
| 28 |
+
*
|
| 29 |
+
* Macro to flag unimplemented blocks.
|
| 30 |
+
*/
|
| 31 |
+
#define XSLT_TODO \
|
| 32 |
+
xsltGenericError(xsltGenericErrorContext, \
|
| 33 |
+
"Unimplemented block at %s:%d\n", \
|
| 34 |
+
__FILE__, __LINE__);
|
| 35 |
+
|
| 36 |
+
/**
|
| 37 |
+
* XSLT_STRANGE:
|
| 38 |
+
*
|
| 39 |
+
* Macro to flag that a problem was detected internally.
|
| 40 |
+
*/
|
| 41 |
+
#define XSLT_STRANGE \
|
| 42 |
+
xsltGenericError(xsltGenericErrorContext, \
|
| 43 |
+
"Internal error at %s:%d\n", \
|
| 44 |
+
__FILE__, __LINE__);
|
| 45 |
+
|
| 46 |
+
/**
|
| 47 |
+
* IS_XSLT_ELEM:
|
| 48 |
+
*
|
| 49 |
+
* Checks that the element pertains to XSLT namespace.
|
| 50 |
+
*/
|
| 51 |
+
#define IS_XSLT_ELEM(n) \
|
| 52 |
+
(((n) != NULL) && ((n)->type == XML_ELEMENT_NODE) && \
|
| 53 |
+
((n)->ns != NULL) && (xmlStrEqual((n)->ns->href, XSLT_NAMESPACE)))
|
| 54 |
+
|
| 55 |
+
/**
|
| 56 |
+
* IS_XSLT_NAME:
|
| 57 |
+
*
|
| 58 |
+
* Checks the value of an element in XSLT namespace.
|
| 59 |
+
*/
|
| 60 |
+
#define IS_XSLT_NAME(n, val) \
|
| 61 |
+
(xmlStrEqual((n)->name, (const xmlChar *) (val)))
|
| 62 |
+
|
| 63 |
+
/**
|
| 64 |
+
* IS_XSLT_REAL_NODE:
|
| 65 |
+
*
|
| 66 |
+
* Check that a node is a 'real' one: document, element, text or attribute.
|
| 67 |
+
*/
|
| 68 |
+
#define IS_XSLT_REAL_NODE(n) \
|
| 69 |
+
(((n) != NULL) && \
|
| 70 |
+
(((n)->type == XML_ELEMENT_NODE) || \
|
| 71 |
+
((n)->type == XML_TEXT_NODE) || \
|
| 72 |
+
((n)->type == XML_CDATA_SECTION_NODE) || \
|
| 73 |
+
((n)->type == XML_ATTRIBUTE_NODE) || \
|
| 74 |
+
((n)->type == XML_DOCUMENT_NODE) || \
|
| 75 |
+
((n)->type == XML_HTML_DOCUMENT_NODE) || \
|
| 76 |
+
((n)->type == XML_COMMENT_NODE) || \
|
| 77 |
+
((n)->type == XML_PI_NODE)))
|
| 78 |
+
|
| 79 |
+
/*
|
| 80 |
+
* Our own version of namespaced attributes lookup.
|
| 81 |
+
*/
|
| 82 |
+
XSLTPUBFUN xmlChar * XSLTCALL
|
| 83 |
+
xsltGetNsProp (xmlNodePtr node,
|
| 84 |
+
const xmlChar *name,
|
| 85 |
+
const xmlChar *nameSpace);
|
| 86 |
+
XSLTPUBFUN const xmlChar * XSLTCALL
|
| 87 |
+
xsltGetCNsProp (xsltStylesheetPtr style,
|
| 88 |
+
xmlNodePtr node,
|
| 89 |
+
const xmlChar *name,
|
| 90 |
+
const xmlChar *nameSpace);
|
| 91 |
+
XSLTPUBFUN int XSLTCALL
|
| 92 |
+
xsltGetUTF8Char (const unsigned char *utf,
|
| 93 |
+
int *len);
|
| 94 |
+
#ifdef IN_LIBXSLT
|
| 95 |
+
/** DOC_DISABLE */
|
| 96 |
+
XSLTPUBFUN int XSLTCALL
|
| 97 |
+
xsltGetUTF8CharZ (const unsigned char *utf,
|
| 98 |
+
int *len);
|
| 99 |
+
/** DOC_ENABLE */
|
| 100 |
+
#endif
|
| 101 |
+
|
| 102 |
+
/*
|
| 103 |
+
* XSLT Debug Tracing Tracing Types
|
| 104 |
+
*/
|
| 105 |
+
typedef enum {
|
| 106 |
+
XSLT_TRACE_ALL = -1,
|
| 107 |
+
XSLT_TRACE_NONE = 0,
|
| 108 |
+
XSLT_TRACE_COPY_TEXT = 1<<0,
|
| 109 |
+
XSLT_TRACE_PROCESS_NODE = 1<<1,
|
| 110 |
+
XSLT_TRACE_APPLY_TEMPLATE = 1<<2,
|
| 111 |
+
XSLT_TRACE_COPY = 1<<3,
|
| 112 |
+
XSLT_TRACE_COMMENT = 1<<4,
|
| 113 |
+
XSLT_TRACE_PI = 1<<5,
|
| 114 |
+
XSLT_TRACE_COPY_OF = 1<<6,
|
| 115 |
+
XSLT_TRACE_VALUE_OF = 1<<7,
|
| 116 |
+
XSLT_TRACE_CALL_TEMPLATE = 1<<8,
|
| 117 |
+
XSLT_TRACE_APPLY_TEMPLATES = 1<<9,
|
| 118 |
+
XSLT_TRACE_CHOOSE = 1<<10,
|
| 119 |
+
XSLT_TRACE_IF = 1<<11,
|
| 120 |
+
XSLT_TRACE_FOR_EACH = 1<<12,
|
| 121 |
+
XSLT_TRACE_STRIP_SPACES = 1<<13,
|
| 122 |
+
XSLT_TRACE_TEMPLATES = 1<<14,
|
| 123 |
+
XSLT_TRACE_KEYS = 1<<15,
|
| 124 |
+
XSLT_TRACE_VARIABLES = 1<<16
|
| 125 |
+
} xsltDebugTraceCodes;
|
| 126 |
+
|
| 127 |
+
/**
|
| 128 |
+
* XSLT_TRACE:
|
| 129 |
+
*
|
| 130 |
+
* Control the type of xsl debugtrace messages emitted.
|
| 131 |
+
*/
|
| 132 |
+
#define XSLT_TRACE(ctxt,code,call) \
|
| 133 |
+
if (ctxt->traceCode && (*(ctxt->traceCode) & code)) \
|
| 134 |
+
call
|
| 135 |
+
|
| 136 |
+
XSLTPUBFUN void XSLTCALL
|
| 137 |
+
xsltDebugSetDefaultTrace(xsltDebugTraceCodes val);
|
| 138 |
+
XSLTPUBFUN xsltDebugTraceCodes XSLTCALL
|
| 139 |
+
xsltDebugGetDefaultTrace(void);
|
| 140 |
+
|
| 141 |
+
/*
|
| 142 |
+
* XSLT specific error and debug reporting functions.
|
| 143 |
+
*/
|
| 144 |
+
XSLTPUBVAR xmlGenericErrorFunc xsltGenericError;
|
| 145 |
+
XSLTPUBVAR void *xsltGenericErrorContext;
|
| 146 |
+
XSLTPUBVAR xmlGenericErrorFunc xsltGenericDebug;
|
| 147 |
+
XSLTPUBVAR void *xsltGenericDebugContext;
|
| 148 |
+
|
| 149 |
+
XSLTPUBFUN void XSLTCALL
|
| 150 |
+
xsltPrintErrorContext (xsltTransformContextPtr ctxt,
|
| 151 |
+
xsltStylesheetPtr style,
|
| 152 |
+
xmlNodePtr node);
|
| 153 |
+
XSLTPUBFUN void XSLTCALL
|
| 154 |
+
xsltMessage (xsltTransformContextPtr ctxt,
|
| 155 |
+
xmlNodePtr node,
|
| 156 |
+
xmlNodePtr inst);
|
| 157 |
+
XSLTPUBFUN void XSLTCALL
|
| 158 |
+
xsltSetGenericErrorFunc (void *ctx,
|
| 159 |
+
xmlGenericErrorFunc handler);
|
| 160 |
+
XSLTPUBFUN void XSLTCALL
|
| 161 |
+
xsltSetGenericDebugFunc (void *ctx,
|
| 162 |
+
xmlGenericErrorFunc handler);
|
| 163 |
+
XSLTPUBFUN void XSLTCALL
|
| 164 |
+
xsltSetTransformErrorFunc (xsltTransformContextPtr ctxt,
|
| 165 |
+
void *ctx,
|
| 166 |
+
xmlGenericErrorFunc handler);
|
| 167 |
+
XSLTPUBFUN void XSLTCALL
|
| 168 |
+
xsltTransformError (xsltTransformContextPtr ctxt,
|
| 169 |
+
xsltStylesheetPtr style,
|
| 170 |
+
xmlNodePtr node,
|
| 171 |
+
const char *msg,
|
| 172 |
+
...) LIBXSLT_ATTR_FORMAT(4,5);
|
| 173 |
+
|
| 174 |
+
XSLTPUBFUN int XSLTCALL
|
| 175 |
+
xsltSetCtxtParseOptions (xsltTransformContextPtr ctxt,
|
| 176 |
+
int options);
|
| 177 |
+
/*
|
| 178 |
+
* Sorting.
|
| 179 |
+
*/
|
| 180 |
+
|
| 181 |
+
XSLTPUBFUN void XSLTCALL
|
| 182 |
+
xsltDocumentSortFunction (xmlNodeSetPtr list);
|
| 183 |
+
XSLTPUBFUN void XSLTCALL
|
| 184 |
+
xsltSetSortFunc (xsltSortFunc handler);
|
| 185 |
+
XSLTPUBFUN void XSLTCALL
|
| 186 |
+
xsltSetCtxtSortFunc (xsltTransformContextPtr ctxt,
|
| 187 |
+
xsltSortFunc handler);
|
| 188 |
+
XSLTPUBFUN void XSLTCALL
|
| 189 |
+
xsltSetCtxtLocaleHandlers (xsltTransformContextPtr ctxt,
|
| 190 |
+
xsltNewLocaleFunc newLocale,
|
| 191 |
+
xsltFreeLocaleFunc freeLocale,
|
| 192 |
+
xsltGenSortKeyFunc genSortKey);
|
| 193 |
+
XSLTPUBFUN void XSLTCALL
|
| 194 |
+
xsltDefaultSortFunction (xsltTransformContextPtr ctxt,
|
| 195 |
+
xmlNodePtr *sorts,
|
| 196 |
+
int nbsorts);
|
| 197 |
+
XSLTPUBFUN void XSLTCALL
|
| 198 |
+
xsltDoSortFunction (xsltTransformContextPtr ctxt,
|
| 199 |
+
xmlNodePtr * sorts,
|
| 200 |
+
int nbsorts);
|
| 201 |
+
XSLTPUBFUN xmlXPathObjectPtr * XSLTCALL
|
| 202 |
+
xsltComputeSortResult (xsltTransformContextPtr ctxt,
|
| 203 |
+
xmlNodePtr sort);
|
| 204 |
+
|
| 205 |
+
/*
|
| 206 |
+
* QNames handling.
|
| 207 |
+
*/
|
| 208 |
+
|
| 209 |
+
XSLTPUBFUN const xmlChar * XSLTCALL
|
| 210 |
+
xsltSplitQName (xmlDictPtr dict,
|
| 211 |
+
const xmlChar *name,
|
| 212 |
+
const xmlChar **prefix);
|
| 213 |
+
XSLTPUBFUN const xmlChar * XSLTCALL
|
| 214 |
+
xsltGetQNameURI (xmlNodePtr node,
|
| 215 |
+
xmlChar **name);
|
| 216 |
+
|
| 217 |
+
XSLTPUBFUN const xmlChar * XSLTCALL
|
| 218 |
+
xsltGetQNameURI2 (xsltStylesheetPtr style,
|
| 219 |
+
xmlNodePtr node,
|
| 220 |
+
const xmlChar **name);
|
| 221 |
+
|
| 222 |
+
/*
|
| 223 |
+
* Output, reuse libxml I/O buffers.
|
| 224 |
+
*/
|
| 225 |
+
XSLTPUBFUN int XSLTCALL
|
| 226 |
+
xsltSaveResultTo (xmlOutputBufferPtr buf,
|
| 227 |
+
xmlDocPtr result,
|
| 228 |
+
xsltStylesheetPtr style);
|
| 229 |
+
XSLTPUBFUN int XSLTCALL
|
| 230 |
+
xsltSaveResultToFilename (const char *URI,
|
| 231 |
+
xmlDocPtr result,
|
| 232 |
+
xsltStylesheetPtr style,
|
| 233 |
+
int compression);
|
| 234 |
+
XSLTPUBFUN int XSLTCALL
|
| 235 |
+
xsltSaveResultToFile (FILE *file,
|
| 236 |
+
xmlDocPtr result,
|
| 237 |
+
xsltStylesheetPtr style);
|
| 238 |
+
XSLTPUBFUN int XSLTCALL
|
| 239 |
+
xsltSaveResultToFd (int fd,
|
| 240 |
+
xmlDocPtr result,
|
| 241 |
+
xsltStylesheetPtr style);
|
| 242 |
+
XSLTPUBFUN int XSLTCALL
|
| 243 |
+
xsltSaveResultToString (xmlChar **doc_txt_ptr,
|
| 244 |
+
int * doc_txt_len,
|
| 245 |
+
xmlDocPtr result,
|
| 246 |
+
xsltStylesheetPtr style);
|
| 247 |
+
|
| 248 |
+
/*
|
| 249 |
+
* XPath interface
|
| 250 |
+
*/
|
| 251 |
+
XSLTPUBFUN xmlXPathCompExprPtr XSLTCALL
|
| 252 |
+
xsltXPathCompile (xsltStylesheetPtr style,
|
| 253 |
+
const xmlChar *str);
|
| 254 |
+
XSLTPUBFUN xmlXPathCompExprPtr XSLTCALL
|
| 255 |
+
xsltXPathCompileFlags (xsltStylesheetPtr style,
|
| 256 |
+
const xmlChar *str,
|
| 257 |
+
int flags);
|
| 258 |
+
|
| 259 |
+
#ifdef IN_LIBXSLT
|
| 260 |
+
/** DOC_DISABLE */
|
| 261 |
+
#define XSLT_SOURCE_NODE_MASK 15u
|
| 262 |
+
#define XSLT_SOURCE_NODE_HAS_KEY 1u
|
| 263 |
+
#define XSLT_SOURCE_NODE_HAS_ID 2u
|
| 264 |
+
int
|
| 265 |
+
xsltGetSourceNodeFlags(xmlNodePtr node);
|
| 266 |
+
int
|
| 267 |
+
xsltSetSourceNodeFlags(xsltTransformContextPtr ctxt, xmlNodePtr node,
|
| 268 |
+
int flags);
|
| 269 |
+
int
|
| 270 |
+
xsltClearSourceNodeFlags(xmlNodePtr node, int flags);
|
| 271 |
+
void **
|
| 272 |
+
xsltGetPSVIPtr(xmlNodePtr cur);
|
| 273 |
+
/** DOC_ENABLE */
|
| 274 |
+
#endif
|
| 275 |
+
|
| 276 |
+
#ifdef WITH_PROFILER
|
| 277 |
+
/*
|
| 278 |
+
* Profiling.
|
| 279 |
+
*/
|
| 280 |
+
XSLTPUBFUN void XSLTCALL
|
| 281 |
+
xsltSaveProfiling (xsltTransformContextPtr ctxt,
|
| 282 |
+
FILE *output);
|
| 283 |
+
XSLTPUBFUN xmlDocPtr XSLTCALL
|
| 284 |
+
xsltGetProfileInformation (xsltTransformContextPtr ctxt);
|
| 285 |
+
|
| 286 |
+
XSLTPUBFUN long XSLTCALL
|
| 287 |
+
xsltTimestamp (void);
|
| 288 |
+
XSLTPUBFUN void XSLTCALL
|
| 289 |
+
xsltCalibrateAdjust (long delta);
|
| 290 |
+
#endif
|
| 291 |
+
|
| 292 |
+
/**
|
| 293 |
+
* XSLT_TIMESTAMP_TICS_PER_SEC:
|
| 294 |
+
*
|
| 295 |
+
* Sampling precision for profiling
|
| 296 |
+
*/
|
| 297 |
+
#define XSLT_TIMESTAMP_TICS_PER_SEC 100000l
|
| 298 |
+
|
| 299 |
+
/*
|
| 300 |
+
* Hooks for the debugger.
|
| 301 |
+
*/
|
| 302 |
+
|
| 303 |
+
typedef enum {
|
| 304 |
+
XSLT_DEBUG_NONE = 0, /* no debugging allowed */
|
| 305 |
+
XSLT_DEBUG_INIT,
|
| 306 |
+
XSLT_DEBUG_STEP,
|
| 307 |
+
XSLT_DEBUG_STEPOUT,
|
| 308 |
+
XSLT_DEBUG_NEXT,
|
| 309 |
+
XSLT_DEBUG_STOP,
|
| 310 |
+
XSLT_DEBUG_CONT,
|
| 311 |
+
XSLT_DEBUG_RUN,
|
| 312 |
+
XSLT_DEBUG_RUN_RESTART,
|
| 313 |
+
XSLT_DEBUG_QUIT
|
| 314 |
+
} xsltDebugStatusCodes;
|
| 315 |
+
|
| 316 |
+
XSLTPUBVAR int xslDebugStatus;
|
| 317 |
+
|
| 318 |
+
typedef void (*xsltHandleDebuggerCallback) (xmlNodePtr cur, xmlNodePtr node,
|
| 319 |
+
xsltTemplatePtr templ, xsltTransformContextPtr ctxt);
|
| 320 |
+
typedef int (*xsltAddCallCallback) (xsltTemplatePtr templ, xmlNodePtr source);
|
| 321 |
+
typedef void (*xsltDropCallCallback) (void);
|
| 322 |
+
|
| 323 |
+
XSLTPUBFUN int XSLTCALL
|
| 324 |
+
xsltGetDebuggerStatus (void);
|
| 325 |
+
#ifdef WITH_DEBUGGER
|
| 326 |
+
XSLTPUBFUN void XSLTCALL
|
| 327 |
+
xsltSetDebuggerStatus (int value);
|
| 328 |
+
XSLTPUBFUN int XSLTCALL
|
| 329 |
+
xsltSetDebuggerCallbacks (int no, void *block);
|
| 330 |
+
XSLTPUBFUN int XSLTCALL
|
| 331 |
+
xslAddCall (xsltTemplatePtr templ,
|
| 332 |
+
xmlNodePtr source);
|
| 333 |
+
XSLTPUBFUN void XSLTCALL
|
| 334 |
+
xslDropCall (void);
|
| 335 |
+
#endif
|
| 336 |
+
|
| 337 |
+
#ifdef __cplusplus
|
| 338 |
+
}
|
| 339 |
+
#endif
|
| 340 |
+
|
| 341 |
+
#endif /* __XML_XSLTUTILS_H__ */
|
| 342 |
+
|
| 343 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/builtin_types.h
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2014 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
/*******************************************************************************
|
| 51 |
+
* *
|
| 52 |
+
* *
|
| 53 |
+
* *
|
| 54 |
+
*******************************************************************************/
|
| 55 |
+
|
| 56 |
+
#include "device_types.h"
|
| 57 |
+
#if !defined(__CUDACC_RTC__)
|
| 58 |
+
#define EXCLUDE_FROM_RTC
|
| 59 |
+
#include "driver_types.h"
|
| 60 |
+
#undef EXCLUDE_FROM_RTC
|
| 61 |
+
#endif /* !__CUDACC_RTC__ */
|
| 62 |
+
#include "surface_types.h"
|
| 63 |
+
#include "texture_types.h"
|
| 64 |
+
#include "vector_types.h"
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cuda_awbarrier_primitives.h
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2019 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#ifndef _CUDA_AWBARRIER_PRIMITIVES_H_
|
| 51 |
+
#define _CUDA_AWBARRIER_PRIMITIVES_H_
|
| 52 |
+
|
| 53 |
+
#include "cuda_awbarrier_helpers.h"
|
| 54 |
+
|
| 55 |
+
#if !defined(_CUDA_AWBARRIER_SM_TARGET)
|
| 56 |
+
# error This file requires compute capability 7.0 or greater.
|
| 57 |
+
#endif
|
| 58 |
+
|
| 59 |
+
_CUDA_AWBARRIER_STATIC_QUALIFIER __host__
|
| 60 |
+
uint32_t __mbarrier_maximum_count() {
|
| 61 |
+
return _CUDA_AWBARRIER_MAX_COUNT;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
_CUDA_AWBARRIER_STATIC_QUALIFIER
|
| 65 |
+
void __mbarrier_init(__mbarrier_t* barrier, uint32_t expected_count) {
|
| 66 |
+
_CUDA_AWBARRIER_INTERNAL_NAMESPACE::awbarrier_init(barrier, expected_count);
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
_CUDA_AWBARRIER_STATIC_QUALIFIER
|
| 70 |
+
void __mbarrier_inval(__mbarrier_t* barrier) {
|
| 71 |
+
_CUDA_AWBARRIER_INTERNAL_NAMESPACE::awbarrier_inval(barrier);
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
_CUDA_AWBARRIER_STATIC_QUALIFIER
|
| 75 |
+
__mbarrier_token_t __mbarrier_arrive(__mbarrier_t* barrier) {
|
| 76 |
+
return _CUDA_AWBARRIER_INTERNAL_NAMESPACE::awbarrier_arrive_drop<false>(barrier);
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
_CUDA_AWBARRIER_STATIC_QUALIFIER
|
| 80 |
+
__mbarrier_token_t __mbarrier_arrive_and_drop(__mbarrier_t* barrier) {
|
| 81 |
+
return _CUDA_AWBARRIER_INTERNAL_NAMESPACE::awbarrier_arrive_drop<true>(barrier);
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
_CUDA_AWBARRIER_STATIC_QUALIFIER
|
| 85 |
+
bool __mbarrier_test_wait(__mbarrier_t* barrier, __mbarrier_token_t token) {
|
| 86 |
+
return _CUDA_AWBARRIER_INTERNAL_NAMESPACE::awbarrier_test_wait(barrier, token);
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
_CUDA_AWBARRIER_STATIC_QUALIFIER
|
| 90 |
+
uint32_t __mbarrier_token_pending_count(__mbarrier_token_t token) {
|
| 91 |
+
return _CUDA_AWBARRIER_INTERNAL_NAMESPACE::awbarrier_token_pending_count(token);
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
_CUDA_AWBARRIER_STATIC_QUALIFIER
|
| 95 |
+
bool __mbarrier_test_wait_parity(__mbarrier_t* barrier, bool phase_parity) {
|
| 96 |
+
return _CUDA_AWBARRIER_INTERNAL_NAMESPACE::awbarrier_test_wait_parity(barrier, phase_parity);
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
_CUDA_AWBARRIER_STATIC_QUALIFIER
|
| 100 |
+
bool __mbarrier_try_wait(__mbarrier_t* barrier, __mbarrier_token_t token, uint32_t max_sleep_nanosec) {
|
| 101 |
+
return _CUDA_AWBARRIER_INTERNAL_NAMESPACE::awbarrier_try_wait(barrier, token, max_sleep_nanosec);
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
_CUDA_AWBARRIER_STATIC_QUALIFIER
|
| 105 |
+
bool __mbarrier_try_wait_parity(__mbarrier_t* barrier, bool phase_parity, uint32_t max_sleep_nanosec) {
|
| 106 |
+
return _CUDA_AWBARRIER_INTERNAL_NAMESPACE::awbarrier_try_wait_parity(barrier, phase_parity, max_sleep_nanosec);
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
#endif /* !_CUDA_AWBARRIER_PRIMITIVES_H_ */
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cuda_fp16.hpp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cuda_pipeline.h
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2019 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#ifndef _CUDA_PIPELINE_H_
|
| 51 |
+
# define _CUDA_PIPELINE_H_
|
| 52 |
+
|
| 53 |
+
# include "cuda_pipeline_primitives.h"
|
| 54 |
+
|
| 55 |
+
# if !defined(_CUDA_PIPELINE_CPLUSPLUS_11_OR_LATER)
|
| 56 |
+
# error This file requires compiler support for the ISO C++ 2011 standard. This support must be enabled with the \
|
| 57 |
+
-std=c++11 compiler option.
|
| 58 |
+
# endif
|
| 59 |
+
|
| 60 |
+
# if defined(_CUDA_PIPELINE_ARCH_700_OR_LATER)
|
| 61 |
+
# include "cuda_awbarrier.h"
|
| 62 |
+
# endif
|
| 63 |
+
|
| 64 |
+
// Integration with libcu++'s cuda::barrier<cuda::thread_scope_block>.
|
| 65 |
+
|
| 66 |
+
# if defined(_CUDA_PIPELINE_ARCH_700_OR_LATER)
|
| 67 |
+
# if defined(_LIBCUDACXX_CUDA_ABI_VERSION)
|
| 68 |
+
# define _LIBCUDACXX_PIPELINE_ASSUMED_ABI_VERSION _LIBCUDACXX_CUDA_ABI_VERSION
|
| 69 |
+
# else
|
| 70 |
+
# define _LIBCUDACXX_PIPELINE_ASSUMED_ABI_VERSION 4
|
| 71 |
+
# endif
|
| 72 |
+
|
| 73 |
+
# define _LIBCUDACXX_PIPELINE_CONCAT(X, Y) X ## Y
|
| 74 |
+
# define _LIBCUDACXX_PIPELINE_CONCAT2(X, Y) _LIBCUDACXX_PIPELINE_CONCAT(X, Y)
|
| 75 |
+
# define _LIBCUDACXX_PIPELINE_INLINE_NAMESPACE _LIBCUDACXX_PIPELINE_CONCAT2(__, _LIBCUDACXX_PIPELINE_ASSUMED_ABI_VERSION)
|
| 76 |
+
|
| 77 |
+
namespace cuda { inline namespace _LIBCUDACXX_PIPELINE_INLINE_NAMESPACE {
|
| 78 |
+
struct __block_scope_barrier_base;
|
| 79 |
+
}}
|
| 80 |
+
|
| 81 |
+
# endif
|
| 82 |
+
|
| 83 |
+
_CUDA_PIPELINE_BEGIN_NAMESPACE
|
| 84 |
+
|
| 85 |
+
template<size_t N, typename T>
|
| 86 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 87 |
+
auto segment(T* ptr) -> T(*)[N];
|
| 88 |
+
|
| 89 |
+
class pipeline {
|
| 90 |
+
public:
|
| 91 |
+
pipeline(const pipeline&) = delete;
|
| 92 |
+
pipeline(pipeline&&) = delete;
|
| 93 |
+
pipeline& operator=(const pipeline&) = delete;
|
| 94 |
+
pipeline& operator=(pipeline&&) = delete;
|
| 95 |
+
|
| 96 |
+
_CUDA_PIPELINE_QUALIFIER pipeline();
|
| 97 |
+
_CUDA_PIPELINE_QUALIFIER size_t commit();
|
| 98 |
+
_CUDA_PIPELINE_QUALIFIER void commit_and_wait();
|
| 99 |
+
_CUDA_PIPELINE_QUALIFIER void wait(size_t batch);
|
| 100 |
+
template<unsigned N>
|
| 101 |
+
_CUDA_PIPELINE_QUALIFIER void wait_prior();
|
| 102 |
+
|
| 103 |
+
# if defined(_CUDA_PIPELINE_ARCH_700_OR_LATER)
|
| 104 |
+
_CUDA_PIPELINE_QUALIFIER void arrive_on(awbarrier& barrier);
|
| 105 |
+
_CUDA_PIPELINE_QUALIFIER void arrive_on(cuda::__block_scope_barrier_base& barrier);
|
| 106 |
+
# endif
|
| 107 |
+
|
| 108 |
+
private:
|
| 109 |
+
size_t current_batch;
|
| 110 |
+
};
|
| 111 |
+
|
| 112 |
+
template<class T>
|
| 113 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 114 |
+
void memcpy_async(T& dst, const T& src, pipeline& pipe);
|
| 115 |
+
|
| 116 |
+
template<class T, size_t DstN, size_t SrcN>
|
| 117 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 118 |
+
void memcpy_async(T(*dst)[DstN], const T(*src)[SrcN], pipeline& pipe);
|
| 119 |
+
|
| 120 |
+
template<size_t N, typename T>
|
| 121 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 122 |
+
auto segment(T* ptr) -> T(*)[N]
|
| 123 |
+
{
|
| 124 |
+
return (T(*)[N])ptr;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 128 |
+
pipeline::pipeline()
|
| 129 |
+
: current_batch(0)
|
| 130 |
+
{
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 134 |
+
size_t pipeline::commit()
|
| 135 |
+
{
|
| 136 |
+
_CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_commit();
|
| 137 |
+
return this->current_batch++;
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 141 |
+
void pipeline::commit_and_wait()
|
| 142 |
+
{
|
| 143 |
+
(void)pipeline::commit();
|
| 144 |
+
pipeline::wait_prior<0>();
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 148 |
+
void pipeline::wait(size_t batch)
|
| 149 |
+
{
|
| 150 |
+
const size_t prior = this->current_batch > batch ? this->current_batch - batch : 0;
|
| 151 |
+
|
| 152 |
+
switch (prior) {
|
| 153 |
+
case 0 : _CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_wait_prior<0>(); break;
|
| 154 |
+
case 1 : _CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_wait_prior<1>(); break;
|
| 155 |
+
case 2 : _CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_wait_prior<2>(); break;
|
| 156 |
+
case 3 : _CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_wait_prior<3>(); break;
|
| 157 |
+
case 4 : _CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_wait_prior<4>(); break;
|
| 158 |
+
case 5 : _CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_wait_prior<5>(); break;
|
| 159 |
+
case 6 : _CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_wait_prior<6>(); break;
|
| 160 |
+
case 7 : _CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_wait_prior<7>(); break;
|
| 161 |
+
default : _CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_wait_prior<8>(); break;
|
| 162 |
+
}
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
template<unsigned N>
|
| 166 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 167 |
+
void pipeline::wait_prior()
|
| 168 |
+
{
|
| 169 |
+
_CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_wait_prior<N>();
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
# if defined(_CUDA_PIPELINE_ARCH_700_OR_LATER)
|
| 173 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 174 |
+
void pipeline::arrive_on(awbarrier& barrier)
|
| 175 |
+
{
|
| 176 |
+
_CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_arrive_on(&barrier.barrier);
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 180 |
+
void pipeline::arrive_on(cuda::__block_scope_barrier_base & barrier)
|
| 181 |
+
{
|
| 182 |
+
_CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_arrive_on(reinterpret_cast<uint64_t *>(&barrier));
|
| 183 |
+
}
|
| 184 |
+
# endif
|
| 185 |
+
|
| 186 |
+
template<class T>
|
| 187 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 188 |
+
void memcpy_async(T& dst, const T& src, pipeline& pipe)
|
| 189 |
+
{
|
| 190 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(&src) & (alignof(T) - 1)));
|
| 191 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(&dst) & (alignof(T) - 1)));
|
| 192 |
+
|
| 193 |
+
if (__is_trivially_copyable(T)) {
|
| 194 |
+
_CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_copy_relaxed<sizeof(T), alignof(T)>(
|
| 195 |
+
reinterpret_cast<void*>(&dst), reinterpret_cast<const void*>(&src));
|
| 196 |
+
} else {
|
| 197 |
+
dst = src;
|
| 198 |
+
}
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
template<class T, size_t DstN, size_t SrcN>
|
| 202 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 203 |
+
void memcpy_async(T(*dst)[DstN], const T(*src)[SrcN], pipeline& pipe)
|
| 204 |
+
{
|
| 205 |
+
constexpr size_t dst_size = sizeof(*dst);
|
| 206 |
+
constexpr size_t src_size = sizeof(*src);
|
| 207 |
+
static_assert(dst_size == 4 || dst_size == 8 || dst_size == 16, "Unsupported copy size.");
|
| 208 |
+
static_assert(src_size <= dst_size, "Source size must be less than or equal to destination size.");
|
| 209 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(src) & (dst_size - 1)));
|
| 210 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(dst) & (dst_size - 1)));
|
| 211 |
+
|
| 212 |
+
if (__is_trivially_copyable(T)) {
|
| 213 |
+
_CUDA_PIPELINE_INTERNAL_NAMESPACE::pipeline_copy_strict<sizeof(*dst), sizeof(*src)>(
|
| 214 |
+
reinterpret_cast<void*>(*dst), reinterpret_cast<const void*>(*src));
|
| 215 |
+
} else {
|
| 216 |
+
for (size_t i = 0; i < DstN; ++i) {
|
| 217 |
+
(*dst)[i] = (i < SrcN) ? (*src)[i] : T();
|
| 218 |
+
}
|
| 219 |
+
}
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
_CUDA_PIPELINE_END_NAMESPACE
|
| 223 |
+
|
| 224 |
+
#endif /* !_CUDA_PIPELINE_H_ */
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cuda_pipeline_helpers.h
ADDED
|
@@ -0,0 +1,373 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2019 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#ifndef _CUDA_PIPELINE_HELPERS_H_
|
| 51 |
+
# define _CUDA_PIPELINE_HELPERS_H_
|
| 52 |
+
|
| 53 |
+
# define _CUDA_PIPELINE_NAMESPACE nvcuda::experimental
|
| 54 |
+
# define _CUDA_PIPELINE_BEGIN_NAMESPACE namespace nvcuda { namespace experimental {
|
| 55 |
+
# define _CUDA_PIPELINE_END_NAMESPACE } }
|
| 56 |
+
|
| 57 |
+
# define _CUDA_PIPELINE_INTERNAL_NAMESPACE _CUDA_PIPELINE_NAMESPACE::__pipeline_internal
|
| 58 |
+
# define _CUDA_PIPELINE_BEGIN_INTERNAL_NAMESPACE _CUDA_PIPELINE_BEGIN_NAMESPACE namespace __pipeline_internal {
|
| 59 |
+
# define _CUDA_PIPELINE_END_INTERNAL_NAMESPACE } _CUDA_PIPELINE_END_NAMESPACE
|
| 60 |
+
|
| 61 |
+
# if !defined(_CUDA_PIPELINE_QUALIFIER)
|
| 62 |
+
# define _CUDA_PIPELINE_QUALIFIER inline __device__
|
| 63 |
+
# endif
|
| 64 |
+
# if !defined(_CUDA_PIPELINE_STATIC_QUALIFIER)
|
| 65 |
+
# define _CUDA_PIPELINE_STATIC_QUALIFIER static inline __device__
|
| 66 |
+
# endif
|
| 67 |
+
|
| 68 |
+
# if defined(_NVHPC_CUDA) || !defined(__CUDA_ARCH__) || (__CUDA_ARCH__ >= 700)
|
| 69 |
+
# define _CUDA_PIPELINE_ARCH_700_OR_LATER
|
| 70 |
+
# endif
|
| 71 |
+
|
| 72 |
+
# if (__CUDA_ARCH__ >= 800)
|
| 73 |
+
# define _CUDA_PIPELINE_HAS_ASYNC_COPY 1
|
| 74 |
+
# else
|
| 75 |
+
# define _CUDA_PIPELINE_HAS_ASYNC_COPY 0
|
| 76 |
+
# endif
|
| 77 |
+
|
| 78 |
+
# if !defined(_CUDA_PIPELINE_MAX_STAGES)
|
| 79 |
+
# define _CUDA_PIPELINE_MAX_STAGES 8
|
| 80 |
+
# endif
|
| 81 |
+
|
| 82 |
+
# if defined(__cplusplus) && ((__cplusplus >= 201103L) || (defined(_MSC_VER) && (_MSC_VER >= 1900)))
|
| 83 |
+
# define _CUDA_PIPELINE_CPLUSPLUS_11_OR_LATER
|
| 84 |
+
# endif
|
| 85 |
+
|
| 86 |
+
# if !defined(_CUDA_PIPELINE_DEBUG)
|
| 87 |
+
# if defined(__CUDACC_DEBUG__)
|
| 88 |
+
# define _CUDA_PIPELINE_DEBUG 1
|
| 89 |
+
# else
|
| 90 |
+
# define _CUDA_PIPELINE_DEBUG 0
|
| 91 |
+
# endif
|
| 92 |
+
# endif
|
| 93 |
+
|
| 94 |
+
# if defined(_CUDA_PIPELINE_DEBUG) && (_CUDA_PIPELINE_DEBUG == 1) && !defined(NDEBUG)
|
| 95 |
+
# if !defined(__CUDACC_RTC__)
|
| 96 |
+
# include <cassert>
|
| 97 |
+
# endif
|
| 98 |
+
# define _CUDA_PIPELINE_ASSERT(x) assert((x));
|
| 99 |
+
# define _CUDA_PIPELINE_ABORT() assert(0);
|
| 100 |
+
# else
|
| 101 |
+
# define _CUDA_PIPELINE_ASSERT(x)
|
| 102 |
+
# define _CUDA_PIPELINE_ABORT() __trap();
|
| 103 |
+
# endif
|
| 104 |
+
|
| 105 |
+
# if defined(_CUDA_PIPELINE_CPLUSPLUS_11_OR_LATER)
|
| 106 |
+
# define _CUDA_PIPELINE_STATIC_ASSERT(c, m) static_assert(c, m)
|
| 107 |
+
# else
|
| 108 |
+
# define _CUDA_PIPELINE_STATIC_ASSERT(c, m)
|
| 109 |
+
# endif
|
| 110 |
+
|
| 111 |
+
# if (defined(_MSC_VER) && !defined(_WIN64)) || defined(__arm__)
|
| 112 |
+
# define _CUDA_PIPELINE_ASM_PTR_CONSTRAINT "r"
|
| 113 |
+
# else
|
| 114 |
+
# define _CUDA_PIPELINE_ASM_PTR_CONSTRAINT "l"
|
| 115 |
+
# endif
|
| 116 |
+
|
| 117 |
+
# if defined(__CUDACC_RTC__)
|
| 118 |
+
typedef unsigned int uint32_t;
|
| 119 |
+
typedef unsigned long long uint64_t;
|
| 120 |
+
typedef uint64_t uintptr_t;
|
| 121 |
+
# else
|
| 122 |
+
# include <stdint.h>
|
| 123 |
+
# endif
|
| 124 |
+
|
| 125 |
+
_CUDA_PIPELINE_BEGIN_INTERNAL_NAMESPACE
|
| 126 |
+
|
| 127 |
+
_CUDA_PIPELINE_STATIC_ASSERT(sizeof(short) == 2, "Size mismatch for type 'short'");
|
| 128 |
+
_CUDA_PIPELINE_STATIC_ASSERT(sizeof(int) == 4, "Size mismatch for type 'int'");
|
| 129 |
+
_CUDA_PIPELINE_STATIC_ASSERT(sizeof(int2) == 8, "Size mismatch for type 'int2'");
|
| 130 |
+
_CUDA_PIPELINE_STATIC_ASSERT(sizeof(int4) == 16, "Size mismatch for type 'int4'");
|
| 131 |
+
|
| 132 |
+
extern "C" __device__ uint32_t __nvvm_get_smem_pointer(void *);
|
| 133 |
+
|
| 134 |
+
template<size_t CopySize, size_t SourceSize>
|
| 135 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 136 |
+
void pipeline_memcpy_sync(void* __restrict__ dst, const void* __restrict__ src)
|
| 137 |
+
{
|
| 138 |
+
_CUDA_PIPELINE_STATIC_ASSERT(CopySize == 4 || CopySize == 8 || CopySize == 16, "Unsupported copy size.");
|
| 139 |
+
_CUDA_PIPELINE_STATIC_ASSERT(SourceSize <= CopySize, "Source size must be less than or equal to copy size");
|
| 140 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(dst) & (CopySize - 1)));
|
| 141 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(src) & (CopySize - 1)));
|
| 142 |
+
|
| 143 |
+
char* const d = reinterpret_cast<char*>(dst);
|
| 144 |
+
const char* const s = reinterpret_cast<const char*>(src);
|
| 145 |
+
|
| 146 |
+
size_t copy_step_size;
|
| 147 |
+
if (SourceSize == 0) {
|
| 148 |
+
copy_step_size = CopySize;
|
| 149 |
+
} else if (SourceSize == 2 || SourceSize == 4 || SourceSize == 8 || SourceSize == 16) {
|
| 150 |
+
copy_step_size = SourceSize;
|
| 151 |
+
} else {
|
| 152 |
+
copy_step_size = 1;
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
for (size_t i = 0; i < CopySize; i += copy_step_size) {
|
| 156 |
+
const bool copy_source = SourceSize && (i < SourceSize);
|
| 157 |
+
|
| 158 |
+
switch (copy_step_size) {
|
| 159 |
+
case 1:
|
| 160 |
+
d[i] = copy_source ? s[i] : char();
|
| 161 |
+
break;
|
| 162 |
+
case 2:
|
| 163 |
+
*reinterpret_cast<short*>(d + i) = copy_source ? *reinterpret_cast<const short*>(s + i) : short();
|
| 164 |
+
break;
|
| 165 |
+
case 4:
|
| 166 |
+
*reinterpret_cast<int*>(d + i) = copy_source ? *reinterpret_cast<const int*>(s + i) : int();
|
| 167 |
+
break;
|
| 168 |
+
case 8:
|
| 169 |
+
*reinterpret_cast<int2*>(d + i) = copy_source ? *reinterpret_cast<const int2*>(s + i) : int2();
|
| 170 |
+
break;
|
| 171 |
+
case 16:
|
| 172 |
+
*reinterpret_cast<int4*>(d + i) = copy_source ? *reinterpret_cast<const int4*>(s + i) : int4();
|
| 173 |
+
break;
|
| 174 |
+
}
|
| 175 |
+
}
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
template<bool UseHwAsyncCopy>
|
| 179 |
+
struct ImplementationChooser;
|
| 180 |
+
|
| 181 |
+
template<>
|
| 182 |
+
struct ImplementationChooser<true> {
|
| 183 |
+
template<size_t CopySize, size_t SourceSize>
|
| 184 |
+
struct CpAsyncChooser {
|
| 185 |
+
_CUDA_PIPELINE_STATIC_QUALIFIER
|
| 186 |
+
void cp_async(void* __restrict__ dst, const void* __restrict__ src)
|
| 187 |
+
{
|
| 188 |
+
asm volatile ("cp.async.ca.shared.global [%0], [%1], %2, %3;"
|
| 189 |
+
:
|
| 190 |
+
: "r"(__nvvm_get_smem_pointer(dst)), _CUDA_PIPELINE_ASM_PTR_CONSTRAINT(src), "n"(CopySize),
|
| 191 |
+
"n"(SourceSize)
|
| 192 |
+
: "memory");
|
| 193 |
+
}
|
| 194 |
+
};
|
| 195 |
+
|
| 196 |
+
template<size_t SourceSize>
|
| 197 |
+
struct CpAsyncChooser<16, SourceSize> {
|
| 198 |
+
_CUDA_PIPELINE_STATIC_QUALIFIER
|
| 199 |
+
void cp_async(void* __restrict__ dst, const void* __restrict__ src)
|
| 200 |
+
{
|
| 201 |
+
asm volatile ("cp.async.cg.shared.global [%0], [%1], %2, %3;"
|
| 202 |
+
:
|
| 203 |
+
: "r"(__nvvm_get_smem_pointer(dst)), _CUDA_PIPELINE_ASM_PTR_CONSTRAINT(src), "n"(16), "n"(SourceSize)
|
| 204 |
+
: "memory");
|
| 205 |
+
}
|
| 206 |
+
};
|
| 207 |
+
|
| 208 |
+
template<size_t CopySize, size_t SourceSize>
|
| 209 |
+
_CUDA_PIPELINE_STATIC_QUALIFIER
|
| 210 |
+
void pipeline_memcpy_async(void* __restrict__ dst, const void* __restrict__ src)
|
| 211 |
+
{
|
| 212 |
+
_CUDA_PIPELINE_STATIC_ASSERT(CopySize == 4 || CopySize == 8 || CopySize == 16, "Unsupported copy size.");
|
| 213 |
+
_CUDA_PIPELINE_STATIC_ASSERT(SourceSize <= CopySize, "Source size must be less than or equal to copy size");
|
| 214 |
+
_CUDA_PIPELINE_ASSERT(__isShared(dst));
|
| 215 |
+
_CUDA_PIPELINE_ASSERT(__isGlobal(src));
|
| 216 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(dst) & (CopySize - 1)));
|
| 217 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(src) & (CopySize - 1)));
|
| 218 |
+
|
| 219 |
+
CpAsyncChooser<CopySize, SourceSize>::cp_async(dst, src);
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
_CUDA_PIPELINE_STATIC_QUALIFIER
|
| 223 |
+
void pipeline_commit()
|
| 224 |
+
{
|
| 225 |
+
asm volatile ("cp.async.commit_group;");
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
template<unsigned N>
|
| 229 |
+
_CUDA_PIPELINE_STATIC_QUALIFIER
|
| 230 |
+
void pipeline_wait_prior()
|
| 231 |
+
{
|
| 232 |
+
asm volatile ("cp.async.wait_group %0;"
|
| 233 |
+
:
|
| 234 |
+
: "n"(N < _CUDA_PIPELINE_MAX_STAGES ? N : _CUDA_PIPELINE_MAX_STAGES));
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
_CUDA_PIPELINE_STATIC_QUALIFIER
|
| 238 |
+
void pipeline_arrive_on(uint64_t* barrier)
|
| 239 |
+
{
|
| 240 |
+
_CUDA_PIPELINE_ASSERT(__isShared(barrier));
|
| 241 |
+
|
| 242 |
+
asm volatile ("cp.async.mbarrier.arrive.shared.b64 [%0];"
|
| 243 |
+
:
|
| 244 |
+
: "r"(__nvvm_get_smem_pointer(barrier)));
|
| 245 |
+
}
|
| 246 |
+
};
|
| 247 |
+
|
| 248 |
+
template<>
|
| 249 |
+
struct ImplementationChooser<false> {
|
| 250 |
+
template<size_t CopySize, size_t SourceSize>
|
| 251 |
+
_CUDA_PIPELINE_STATIC_QUALIFIER
|
| 252 |
+
void pipeline_memcpy_async(void* __restrict__ dst, const void* __restrict__ src)
|
| 253 |
+
{
|
| 254 |
+
_CUDA_PIPELINE_STATIC_ASSERT(CopySize == 4 || CopySize == 8 || CopySize == 16, "Unsupported copy size.");
|
| 255 |
+
_CUDA_PIPELINE_STATIC_ASSERT(SourceSize <= CopySize, "Source size must be less than or equal to copy size");
|
| 256 |
+
_CUDA_PIPELINE_ASSERT(__isShared(dst));
|
| 257 |
+
_CUDA_PIPELINE_ASSERT(__isGlobal(src));
|
| 258 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(dst) & (CopySize - 1)));
|
| 259 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(src) & (CopySize - 1)));
|
| 260 |
+
|
| 261 |
+
pipeline_memcpy_sync<CopySize, SourceSize>(dst, src);
|
| 262 |
+
}
|
| 263 |
+
|
| 264 |
+
_CUDA_PIPELINE_STATIC_QUALIFIER
|
| 265 |
+
void pipeline_commit()
|
| 266 |
+
{
|
| 267 |
+
}
|
| 268 |
+
|
| 269 |
+
template<unsigned N>
|
| 270 |
+
_CUDA_PIPELINE_STATIC_QUALIFIER
|
| 271 |
+
void pipeline_wait_prior()
|
| 272 |
+
{
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
_CUDA_PIPELINE_STATIC_QUALIFIER
|
| 276 |
+
void pipeline_arrive_on(uint64_t* barrier)
|
| 277 |
+
{
|
| 278 |
+
}
|
| 279 |
+
};
|
| 280 |
+
|
| 281 |
+
template<size_t CopySize, size_t SourceSize>
|
| 282 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 283 |
+
void pipeline_memcpy_async(void* __restrict__ dst, const void* __restrict__ src)
|
| 284 |
+
{
|
| 285 |
+
_CUDA_PIPELINE_STATIC_ASSERT(CopySize == 4 || CopySize == 8 || CopySize == 16, "Unsupported copy size.");
|
| 286 |
+
_CUDA_PIPELINE_STATIC_ASSERT(SourceSize <= CopySize, "Source size must be less than or equal to copy size");
|
| 287 |
+
_CUDA_PIPELINE_ASSERT(__isShared(dst));
|
| 288 |
+
_CUDA_PIPELINE_ASSERT(__isGlobal(src));
|
| 289 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(dst) & (CopySize - 1)));
|
| 290 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(src) & (CopySize - 1)));
|
| 291 |
+
|
| 292 |
+
ImplementationChooser<_CUDA_PIPELINE_HAS_ASYNC_COPY>::pipeline_memcpy_async<CopySize, SourceSize>(dst, src);
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 296 |
+
void pipeline_commit()
|
| 297 |
+
{
|
| 298 |
+
ImplementationChooser<_CUDA_PIPELINE_HAS_ASYNC_COPY>::pipeline_commit();
|
| 299 |
+
}
|
| 300 |
+
|
| 301 |
+
template<unsigned N>
|
| 302 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 303 |
+
void pipeline_wait_prior()
|
| 304 |
+
{
|
| 305 |
+
ImplementationChooser<_CUDA_PIPELINE_HAS_ASYNC_COPY>::pipeline_wait_prior<N>();
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 309 |
+
void pipeline_arrive_on(uint64_t* barrier)
|
| 310 |
+
{
|
| 311 |
+
ImplementationChooser<_CUDA_PIPELINE_HAS_ASYNC_COPY>::pipeline_arrive_on(barrier);
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
template<size_t CopySize, size_t SourceSize>
|
| 315 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 316 |
+
void pipeline_copy_strict(void* __restrict__ dst, const void* __restrict__ src)
|
| 317 |
+
{
|
| 318 |
+
_CUDA_PIPELINE_STATIC_ASSERT(CopySize == 4 || CopySize == 8 || CopySize == 16, "Unsupported copy size.");
|
| 319 |
+
_CUDA_PIPELINE_STATIC_ASSERT(SourceSize <= CopySize, "Source size must be less than or equal to copy size.");
|
| 320 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(src) & (CopySize - 1)));
|
| 321 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(dst) & (CopySize - 1)));
|
| 322 |
+
|
| 323 |
+
if (__isGlobal(src) && __isShared(dst)) {
|
| 324 |
+
pipeline_memcpy_async<CopySize, SourceSize>(dst, src);
|
| 325 |
+
} else {
|
| 326 |
+
pipeline_memcpy_sync<CopySize, SourceSize>(dst, src);
|
| 327 |
+
}
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
template<size_t CopySize, size_t Align>
|
| 331 |
+
_CUDA_PIPELINE_QUALIFIER
|
| 332 |
+
void pipeline_copy_relaxed(void* __restrict__ dst, const void* __restrict__ src)
|
| 333 |
+
{
|
| 334 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(src) & (Align - 1)));
|
| 335 |
+
_CUDA_PIPELINE_ASSERT(!(reinterpret_cast<uintptr_t>(dst) & (Align - 1)));
|
| 336 |
+
|
| 337 |
+
const char* s = reinterpret_cast<const char*>(src);
|
| 338 |
+
char* d = reinterpret_cast<char*>(dst);
|
| 339 |
+
size_t remaining = CopySize;
|
| 340 |
+
|
| 341 |
+
while (remaining) {
|
| 342 |
+
if ((Align >= 16) && (remaining >= 16)) {
|
| 343 |
+
pipeline_copy_strict<16, 16>(dst, src);
|
| 344 |
+
d += 16;
|
| 345 |
+
s += 16;
|
| 346 |
+
remaining -= 16;
|
| 347 |
+
} else if ((Align >= 8) && (remaining >= 8)) {
|
| 348 |
+
pipeline_copy_strict<8, 8>(dst, src);
|
| 349 |
+
d += 8;
|
| 350 |
+
s += 8;
|
| 351 |
+
remaining -= 8;
|
| 352 |
+
} else if ((Align >= 4) && (remaining >= 4)) {
|
| 353 |
+
pipeline_copy_strict<4, 4>(dst, src);
|
| 354 |
+
d += 4;
|
| 355 |
+
s += 4;
|
| 356 |
+
remaining -= 4;
|
| 357 |
+
} else if ((Align >= 2) && (remaining >= 2)) {
|
| 358 |
+
*reinterpret_cast<short*>(d) = *reinterpret_cast<const short*>(s);
|
| 359 |
+
d += 2;
|
| 360 |
+
s += 2;
|
| 361 |
+
remaining -= 2;
|
| 362 |
+
} else {
|
| 363 |
+
*d = *s;
|
| 364 |
+
d += 1;
|
| 365 |
+
s += 1;
|
| 366 |
+
remaining -= 1;
|
| 367 |
+
}
|
| 368 |
+
}
|
| 369 |
+
}
|
| 370 |
+
|
| 371 |
+
_CUDA_PIPELINE_END_INTERNAL_NAMESPACE
|
| 372 |
+
|
| 373 |
+
#endif /* !_CUDA_PIPELINE_HELPERS_H_ */
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cuda_runtime.h
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cuda_runtime_api.h
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cupti_callbacks.h
ADDED
|
@@ -0,0 +1,863 @@
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2010-2023 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUPTI_CALLBACKS_H__)
|
| 51 |
+
#define __CUPTI_CALLBACKS_H__
|
| 52 |
+
|
| 53 |
+
#include <cuda.h>
|
| 54 |
+
#include <builtin_types.h>
|
| 55 |
+
#include <string.h>
|
| 56 |
+
#include <cuda_stdint.h>
|
| 57 |
+
#include <cupti_result.h>
|
| 58 |
+
|
| 59 |
+
#ifndef CUPTIAPI
|
| 60 |
+
#ifdef _WIN32
|
| 61 |
+
#define CUPTIAPI __stdcall
|
| 62 |
+
#else
|
| 63 |
+
#define CUPTIAPI
|
| 64 |
+
#endif
|
| 65 |
+
#endif
|
| 66 |
+
|
| 67 |
+
#if defined(__cplusplus)
|
| 68 |
+
extern "C" {
|
| 69 |
+
#endif
|
| 70 |
+
|
| 71 |
+
#if defined(__GNUC__) && defined(CUPTI_LIB)
|
| 72 |
+
#pragma GCC visibility push(default)
|
| 73 |
+
#endif
|
| 74 |
+
|
| 75 |
+
/**
|
| 76 |
+
* \defgroup CUPTI_CALLBACK_API CUPTI Callback API
|
| 77 |
+
* Functions, types, and enums that implement the CUPTI Callback API.
|
| 78 |
+
* @{
|
| 79 |
+
*/
|
| 80 |
+
|
| 81 |
+
/**
|
| 82 |
+
* \brief Specifies the point in an API call that a callback is issued.
|
| 83 |
+
*
|
| 84 |
+
* Specifies the point in an API call that a callback is issued. This
|
| 85 |
+
* value is communicated to the callback function via \ref
|
| 86 |
+
* CUpti_CallbackData::callbackSite.
|
| 87 |
+
*/
|
| 88 |
+
typedef enum {
|
| 89 |
+
/**
|
| 90 |
+
* The callback is at the entry of the API call.
|
| 91 |
+
*/
|
| 92 |
+
CUPTI_API_ENTER = 0,
|
| 93 |
+
/**
|
| 94 |
+
* The callback is at the exit of the API call.
|
| 95 |
+
*/
|
| 96 |
+
CUPTI_API_EXIT = 1,
|
| 97 |
+
CUPTI_API_CBSITE_FORCE_INT = 0x7fffffff
|
| 98 |
+
} CUpti_ApiCallbackSite;
|
| 99 |
+
|
| 100 |
+
/**
|
| 101 |
+
* \brief Callback domains.
|
| 102 |
+
*
|
| 103 |
+
* Callback domains. Each domain represents callback points for a
|
| 104 |
+
* group of related API functions or CUDA driver activity.
|
| 105 |
+
*/
|
| 106 |
+
typedef enum {
|
| 107 |
+
/**
|
| 108 |
+
* Invalid domain.
|
| 109 |
+
*/
|
| 110 |
+
CUPTI_CB_DOMAIN_INVALID = 0,
|
| 111 |
+
/**
|
| 112 |
+
* Domain containing callback points for all driver API functions.
|
| 113 |
+
*/
|
| 114 |
+
CUPTI_CB_DOMAIN_DRIVER_API = 1,
|
| 115 |
+
/**
|
| 116 |
+
* Domain containing callback points for all runtime API
|
| 117 |
+
* functions.
|
| 118 |
+
*/
|
| 119 |
+
CUPTI_CB_DOMAIN_RUNTIME_API = 2,
|
| 120 |
+
/**
|
| 121 |
+
* Domain containing callback points for CUDA resource tracking.
|
| 122 |
+
*/
|
| 123 |
+
CUPTI_CB_DOMAIN_RESOURCE = 3,
|
| 124 |
+
/**
|
| 125 |
+
* Domain containing callback points for CUDA synchronization.
|
| 126 |
+
*/
|
| 127 |
+
CUPTI_CB_DOMAIN_SYNCHRONIZE = 4,
|
| 128 |
+
/**
|
| 129 |
+
* Domain containing callback points for NVTX API functions.
|
| 130 |
+
*/
|
| 131 |
+
CUPTI_CB_DOMAIN_NVTX = 5,
|
| 132 |
+
/**
|
| 133 |
+
* Domain containing callback points for various states.
|
| 134 |
+
*/
|
| 135 |
+
CUPTI_CB_DOMAIN_STATE = 6,
|
| 136 |
+
|
| 137 |
+
CUPTI_CB_DOMAIN_SIZE,
|
| 138 |
+
|
| 139 |
+
CUPTI_CB_DOMAIN_FORCE_INT = 0x7fffffff
|
| 140 |
+
} CUpti_CallbackDomain;
|
| 141 |
+
|
| 142 |
+
/**
|
| 143 |
+
* \brief Callback IDs for resource domain.
|
| 144 |
+
*
|
| 145 |
+
* Callback IDs for resource domain, CUPTI_CB_DOMAIN_RESOURCE. This
|
| 146 |
+
* value is communicated to the callback function via the \p cbid
|
| 147 |
+
* parameter.
|
| 148 |
+
*/
|
| 149 |
+
typedef enum {
|
| 150 |
+
/**
|
| 151 |
+
* Invalid resource callback ID.
|
| 152 |
+
*/
|
| 153 |
+
CUPTI_CBID_RESOURCE_INVALID = 0,
|
| 154 |
+
/**
|
| 155 |
+
* A new context has been created.
|
| 156 |
+
*/
|
| 157 |
+
CUPTI_CBID_RESOURCE_CONTEXT_CREATED = 1,
|
| 158 |
+
/**
|
| 159 |
+
* A context is about to be destroyed.
|
| 160 |
+
*/
|
| 161 |
+
CUPTI_CBID_RESOURCE_CONTEXT_DESTROY_STARTING = 2,
|
| 162 |
+
/**
|
| 163 |
+
* A new stream has been created.
|
| 164 |
+
*/
|
| 165 |
+
CUPTI_CBID_RESOURCE_STREAM_CREATED = 3,
|
| 166 |
+
/**
|
| 167 |
+
* A stream is about to be destroyed.
|
| 168 |
+
*/
|
| 169 |
+
CUPTI_CBID_RESOURCE_STREAM_DESTROY_STARTING = 4,
|
| 170 |
+
/**
|
| 171 |
+
* The driver has finished initializing.
|
| 172 |
+
*/
|
| 173 |
+
CUPTI_CBID_RESOURCE_CU_INIT_FINISHED = 5,
|
| 174 |
+
/**
|
| 175 |
+
* A module has been loaded.
|
| 176 |
+
*/
|
| 177 |
+
CUPTI_CBID_RESOURCE_MODULE_LOADED = 6,
|
| 178 |
+
/**
|
| 179 |
+
* A module is about to be unloaded.
|
| 180 |
+
*/
|
| 181 |
+
CUPTI_CBID_RESOURCE_MODULE_UNLOAD_STARTING = 7,
|
| 182 |
+
/**
|
| 183 |
+
* The current module which is being profiled.
|
| 184 |
+
*/
|
| 185 |
+
CUPTI_CBID_RESOURCE_MODULE_PROFILED = 8,
|
| 186 |
+
/**
|
| 187 |
+
* CUDA graph has been created.
|
| 188 |
+
*/
|
| 189 |
+
CUPTI_CBID_RESOURCE_GRAPH_CREATED = 9,
|
| 190 |
+
/**
|
| 191 |
+
* CUDA graph is about to be destroyed.
|
| 192 |
+
*/
|
| 193 |
+
CUPTI_CBID_RESOURCE_GRAPH_DESTROY_STARTING = 10,
|
| 194 |
+
/**
|
| 195 |
+
* CUDA graph is cloned.
|
| 196 |
+
*/
|
| 197 |
+
CUPTI_CBID_RESOURCE_GRAPH_CLONED = 11,
|
| 198 |
+
/**
|
| 199 |
+
* CUDA graph node is about to be created
|
| 200 |
+
*/
|
| 201 |
+
CUPTI_CBID_RESOURCE_GRAPHNODE_CREATE_STARTING = 12,
|
| 202 |
+
/**
|
| 203 |
+
* CUDA graph node is created.
|
| 204 |
+
*/
|
| 205 |
+
CUPTI_CBID_RESOURCE_GRAPHNODE_CREATED = 13,
|
| 206 |
+
/**
|
| 207 |
+
* CUDA graph node is about to be destroyed.
|
| 208 |
+
*/
|
| 209 |
+
CUPTI_CBID_RESOURCE_GRAPHNODE_DESTROY_STARTING = 14,
|
| 210 |
+
/**
|
| 211 |
+
* Dependency on a CUDA graph node is created.
|
| 212 |
+
*/
|
| 213 |
+
CUPTI_CBID_RESOURCE_GRAPHNODE_DEPENDENCY_CREATED = 15,
|
| 214 |
+
/**
|
| 215 |
+
* Dependency on a CUDA graph node is destroyed.
|
| 216 |
+
*/
|
| 217 |
+
CUPTI_CBID_RESOURCE_GRAPHNODE_DEPENDENCY_DESTROY_STARTING = 16,
|
| 218 |
+
/**
|
| 219 |
+
* An executable CUDA graph is about to be created.
|
| 220 |
+
*/
|
| 221 |
+
CUPTI_CBID_RESOURCE_GRAPHEXEC_CREATE_STARTING = 17,
|
| 222 |
+
/**
|
| 223 |
+
* An executable CUDA graph is created.
|
| 224 |
+
*/
|
| 225 |
+
CUPTI_CBID_RESOURCE_GRAPHEXEC_CREATED = 18,
|
| 226 |
+
/**
|
| 227 |
+
* An executable CUDA graph is about to be destroyed.
|
| 228 |
+
*/
|
| 229 |
+
CUPTI_CBID_RESOURCE_GRAPHEXEC_DESTROY_STARTING = 19,
|
| 230 |
+
/**
|
| 231 |
+
* CUDA graph node is cloned.
|
| 232 |
+
*/
|
| 233 |
+
CUPTI_CBID_RESOURCE_GRAPHNODE_CLONED = 20,
|
| 234 |
+
/**
|
| 235 |
+
* CUDA stream attribute is changed.
|
| 236 |
+
*/
|
| 237 |
+
CUPTI_CBID_RESOURCE_STREAM_ATTRIBUTE_CHANGED = 21,
|
| 238 |
+
|
| 239 |
+
CUPTI_CBID_RESOURCE_SIZE,
|
| 240 |
+
CUPTI_CBID_RESOURCE_FORCE_INT = 0x7fffffff
|
| 241 |
+
} CUpti_CallbackIdResource;
|
| 242 |
+
|
| 243 |
+
/**
|
| 244 |
+
* \brief Callback IDs for synchronization domain.
|
| 245 |
+
*
|
| 246 |
+
* Callback IDs for synchronization domain,
|
| 247 |
+
* CUPTI_CB_DOMAIN_SYNCHRONIZE. This value is communicated to the
|
| 248 |
+
* callback function via the \p cbid parameter.
|
| 249 |
+
*/
|
| 250 |
+
typedef enum {
|
| 251 |
+
/**
|
| 252 |
+
* Invalid synchronize callback ID.
|
| 253 |
+
*/
|
| 254 |
+
CUPTI_CBID_SYNCHRONIZE_INVALID = 0,
|
| 255 |
+
/**
|
| 256 |
+
* Stream synchronization has completed for the stream.
|
| 257 |
+
*/
|
| 258 |
+
CUPTI_CBID_SYNCHRONIZE_STREAM_SYNCHRONIZED = 1,
|
| 259 |
+
/**
|
| 260 |
+
* Context synchronization has completed for the context.
|
| 261 |
+
*/
|
| 262 |
+
CUPTI_CBID_SYNCHRONIZE_CONTEXT_SYNCHRONIZED = 2,
|
| 263 |
+
CUPTI_CBID_SYNCHRONIZE_SIZE,
|
| 264 |
+
CUPTI_CBID_SYNCHRONIZE_FORCE_INT = 0x7fffffff
|
| 265 |
+
} CUpti_CallbackIdSync;
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
/**
|
| 269 |
+
* \brief Callback IDs for state domain.
|
| 270 |
+
*
|
| 271 |
+
* Callback IDs for state domain,
|
| 272 |
+
* CUPTI_CB_DOMAIN_STATE. This value is communicated to the
|
| 273 |
+
* callback function via the \p cbid parameter.
|
| 274 |
+
*/
|
| 275 |
+
typedef enum {
|
| 276 |
+
/**
|
| 277 |
+
* Invalid state callback ID.
|
| 278 |
+
*/
|
| 279 |
+
CUPTI_CBID_STATE_INVALID = 0,
|
| 280 |
+
/**
|
| 281 |
+
* Notification of fatal errors - high impact, non-recoverable
|
| 282 |
+
* When encountered, CUPTI automatically invokes cuptiFinalize()
|
| 283 |
+
* User can control behavior of the application in future from
|
| 284 |
+
* receiving this callback - such as continuing without profiling, or
|
| 285 |
+
* terminating the whole application.
|
| 286 |
+
*/
|
| 287 |
+
CUPTI_CBID_STATE_FATAL_ERROR = 1,
|
| 288 |
+
/**
|
| 289 |
+
* Notification of non fatal errors - high impact, but recoverable
|
| 290 |
+
* This notification is not issued in the current release.
|
| 291 |
+
*/
|
| 292 |
+
CUPTI_CBID_STATE_ERROR = 2,
|
| 293 |
+
/**
|
| 294 |
+
* Notification of warnings - low impact, recoverable.
|
| 295 |
+
*/
|
| 296 |
+
CUPTI_CBID_STATE_WARNING = 3,
|
| 297 |
+
|
| 298 |
+
CUPTI_CBID_STATE_SIZE,
|
| 299 |
+
CUPTI_CBID_STATE_FORCE_INT = 0x7fffffff
|
| 300 |
+
} CUpti_CallbackIdState;
|
| 301 |
+
|
| 302 |
+
|
| 303 |
+
/**
|
| 304 |
+
* \brief Data passed into a runtime or driver API callback function.
|
| 305 |
+
*
|
| 306 |
+
* Data passed into a runtime or driver API callback function as the
|
| 307 |
+
* \p cbdata argument to \ref CUpti_CallbackFunc. The \p cbdata will
|
| 308 |
+
* be this type for \p domain equal to CUPTI_CB_DOMAIN_DRIVER_API or
|
| 309 |
+
* CUPTI_CB_DOMAIN_RUNTIME_API. The callback data is valid only within
|
| 310 |
+
* the invocation of the callback function that is passed the data. If
|
| 311 |
+
* you need to retain some data for use outside of the callback, you
|
| 312 |
+
* must make a copy of that data. For example, if you make a shallow
|
| 313 |
+
* copy of CUpti_CallbackData within a callback, you cannot
|
| 314 |
+
* dereference \p functionParams outside of that callback to access
|
| 315 |
+
* the function parameters. \p functionName is an exception: the
|
| 316 |
+
* string pointed to by \p functionName is a global constant and so
|
| 317 |
+
* may be accessed outside of the callback.
|
| 318 |
+
*/
|
| 319 |
+
typedef struct {
|
| 320 |
+
/**
|
| 321 |
+
* Point in the runtime or driver function from where the callback
|
| 322 |
+
* was issued.
|
| 323 |
+
*/
|
| 324 |
+
CUpti_ApiCallbackSite callbackSite;
|
| 325 |
+
|
| 326 |
+
/**
|
| 327 |
+
* Name of the runtime or driver API function which issued the
|
| 328 |
+
* callback. This string is a global constant and so may be
|
| 329 |
+
* accessed outside of the callback.
|
| 330 |
+
*/
|
| 331 |
+
const char *functionName;
|
| 332 |
+
|
| 333 |
+
/**
|
| 334 |
+
* Pointer to the arguments passed to the runtime or driver API
|
| 335 |
+
* call. See generated_cuda_runtime_api_meta.h and
|
| 336 |
+
* generated_cuda_meta.h for structure definitions for the
|
| 337 |
+
* parameters for each runtime and driver API function.
|
| 338 |
+
*/
|
| 339 |
+
const void *functionParams;
|
| 340 |
+
|
| 341 |
+
/**
|
| 342 |
+
* Pointer to the return value of the runtime or driver API
|
| 343 |
+
* call. This field is only valid within the exit::CUPTI_API_EXIT
|
| 344 |
+
* callback. For a runtime API \p functionReturnValue points to a
|
| 345 |
+
* \p cudaError_t. For a driver API \p functionReturnValue points
|
| 346 |
+
* to a \p CUresult.
|
| 347 |
+
*/
|
| 348 |
+
void *functionReturnValue;
|
| 349 |
+
|
| 350 |
+
/**
|
| 351 |
+
* Name of the symbol operated on by the runtime or driver API
|
| 352 |
+
* function which issued the callback. This entry is valid only for
|
| 353 |
+
* driver and runtime launch callbacks, where it returns the name of
|
| 354 |
+
* the kernel.
|
| 355 |
+
*/
|
| 356 |
+
const char *symbolName;
|
| 357 |
+
|
| 358 |
+
/**
|
| 359 |
+
* Driver context current to the thread, or null if no context is
|
| 360 |
+
* current. This value can change from the entry to exit callback
|
| 361 |
+
* of a runtime API function if the runtime initializes a context.
|
| 362 |
+
*/
|
| 363 |
+
CUcontext context;
|
| 364 |
+
|
| 365 |
+
/**
|
| 366 |
+
* Unique ID for the CUDA context associated with the thread. The
|
| 367 |
+
* UIDs are assigned sequentially as contexts are created and are
|
| 368 |
+
* unique within a process.
|
| 369 |
+
*/
|
| 370 |
+
uint32_t contextUid;
|
| 371 |
+
|
| 372 |
+
/**
|
| 373 |
+
* Pointer to data shared between the entry and exit callbacks of
|
| 374 |
+
* a given runtime or drive API function invocation. This field
|
| 375 |
+
* can be used to pass 64-bit values from the entry callback to
|
| 376 |
+
* the corresponding exit callback.
|
| 377 |
+
*/
|
| 378 |
+
uint64_t *correlationData;
|
| 379 |
+
|
| 380 |
+
/**
|
| 381 |
+
* The activity record correlation ID for this callback. For a
|
| 382 |
+
* driver domain callback (i.e. \p domain
|
| 383 |
+
* CUPTI_CB_DOMAIN_DRIVER_API) this ID will equal the correlation ID
|
| 384 |
+
* in the CUpti_ActivityAPI record corresponding to the CUDA driver
|
| 385 |
+
* function call. For a runtime domain callback (i.e. \p domain
|
| 386 |
+
* CUPTI_CB_DOMAIN_RUNTIME_API) this ID will equal the correlation
|
| 387 |
+
* ID in the CUpti_ActivityAPI record corresponding to the CUDA
|
| 388 |
+
* runtime function call. Within the callback, this ID can be
|
| 389 |
+
* recorded to correlate user data with the activity record. This
|
| 390 |
+
* field is new in 4.1.
|
| 391 |
+
*/
|
| 392 |
+
uint32_t correlationId;
|
| 393 |
+
|
| 394 |
+
} CUpti_CallbackData;
|
| 395 |
+
|
| 396 |
+
/**
|
| 397 |
+
* \brief Data passed into a resource callback function.
|
| 398 |
+
*
|
| 399 |
+
* Data passed into a resource callback function as the \p cbdata
|
| 400 |
+
* argument to \ref CUpti_CallbackFunc. The \p cbdata will be this
|
| 401 |
+
* type for \p domain equal to CUPTI_CB_DOMAIN_RESOURCE. The callback
|
| 402 |
+
* data is valid only within the invocation of the callback function
|
| 403 |
+
* that is passed the data. If you need to retain some data for use
|
| 404 |
+
* outside of the callback, you must make a copy of that data.
|
| 405 |
+
*/
|
| 406 |
+
typedef struct {
|
| 407 |
+
/**
|
| 408 |
+
* For CUPTI_CBID_RESOURCE_CONTEXT_CREATED and
|
| 409 |
+
* CUPTI_CBID_RESOURCE_CONTEXT_DESTROY_STARTING, the context being
|
| 410 |
+
* created or destroyed. For CUPTI_CBID_RESOURCE_STREAM_CREATED and
|
| 411 |
+
* CUPTI_CBID_RESOURCE_STREAM_DESTROY_STARTING, the context
|
| 412 |
+
* containing the stream being created or destroyed.
|
| 413 |
+
*/
|
| 414 |
+
CUcontext context;
|
| 415 |
+
|
| 416 |
+
union {
|
| 417 |
+
/**
|
| 418 |
+
* For CUPTI_CBID_RESOURCE_STREAM_CREATED and
|
| 419 |
+
* CUPTI_CBID_RESOURCE_STREAM_DESTROY_STARTING, the stream being
|
| 420 |
+
* created or destroyed.
|
| 421 |
+
*/
|
| 422 |
+
CUstream stream;
|
| 423 |
+
} resourceHandle;
|
| 424 |
+
|
| 425 |
+
/**
|
| 426 |
+
* Reserved for future use.
|
| 427 |
+
*/
|
| 428 |
+
void *resourceDescriptor;
|
| 429 |
+
} CUpti_ResourceData;
|
| 430 |
+
|
| 431 |
+
|
| 432 |
+
/**
|
| 433 |
+
* \brief Module data passed into a resource callback function.
|
| 434 |
+
*
|
| 435 |
+
* CUDA module data passed into a resource callback function as the \p cbdata
|
| 436 |
+
* argument to \ref CUpti_CallbackFunc. The \p cbdata will be this
|
| 437 |
+
* type for \p domain equal to CUPTI_CB_DOMAIN_RESOURCE. The module
|
| 438 |
+
* data is valid only within the invocation of the callback function
|
| 439 |
+
* that is passed the data. If you need to retain some data for use
|
| 440 |
+
* outside of the callback, you must make a copy of that data.
|
| 441 |
+
*/
|
| 442 |
+
|
| 443 |
+
typedef struct {
|
| 444 |
+
/**
|
| 445 |
+
* Identifier to associate with the CUDA module.
|
| 446 |
+
*/
|
| 447 |
+
uint32_t moduleId;
|
| 448 |
+
|
| 449 |
+
/**
|
| 450 |
+
* The size of the cubin.
|
| 451 |
+
*/
|
| 452 |
+
size_t cubinSize;
|
| 453 |
+
|
| 454 |
+
/**
|
| 455 |
+
* Pointer to the associated cubin.
|
| 456 |
+
*/
|
| 457 |
+
const char *pCubin;
|
| 458 |
+
} CUpti_ModuleResourceData;
|
| 459 |
+
|
| 460 |
+
/**
|
| 461 |
+
* \brief CUDA graphs data passed into a resource callback function.
|
| 462 |
+
*
|
| 463 |
+
* CUDA graphs data passed into a resource callback function as the \p cbdata
|
| 464 |
+
* argument to \ref CUpti_CallbackFunc. The \p cbdata will be this
|
| 465 |
+
* type for \p domain equal to CUPTI_CB_DOMAIN_RESOURCE. The graph
|
| 466 |
+
* data is valid only within the invocation of the callback function
|
| 467 |
+
* that is passed the data. If you need to retain some data for use
|
| 468 |
+
* outside of the callback, you must make a copy of that data.
|
| 469 |
+
*/
|
| 470 |
+
|
| 471 |
+
typedef struct {
|
| 472 |
+
/**
|
| 473 |
+
* CUDA graph
|
| 474 |
+
*/
|
| 475 |
+
CUgraph graph;
|
| 476 |
+
/**
|
| 477 |
+
* The original CUDA graph from which \param graph is cloned
|
| 478 |
+
*/
|
| 479 |
+
CUgraph originalGraph;
|
| 480 |
+
/**
|
| 481 |
+
* CUDA graph node
|
| 482 |
+
*/
|
| 483 |
+
CUgraphNode node;
|
| 484 |
+
/**
|
| 485 |
+
* The original CUDA graph node from which \param node is cloned
|
| 486 |
+
*/
|
| 487 |
+
CUgraphNode originalNode;
|
| 488 |
+
/**
|
| 489 |
+
* Type of the \param node
|
| 490 |
+
*/
|
| 491 |
+
CUgraphNodeType nodeType;
|
| 492 |
+
/**
|
| 493 |
+
* The dependent graph node
|
| 494 |
+
* The size of the array is \param numDependencies.
|
| 495 |
+
*/
|
| 496 |
+
CUgraphNode dependency;
|
| 497 |
+
/**
|
| 498 |
+
* CUDA executable graph
|
| 499 |
+
*/
|
| 500 |
+
CUgraphExec graphExec;
|
| 501 |
+
} CUpti_GraphData;
|
| 502 |
+
|
| 503 |
+
/**
|
| 504 |
+
* \brief Data passed into a synchronize callback function.
|
| 505 |
+
*
|
| 506 |
+
* Data passed into a synchronize callback function as the \p cbdata
|
| 507 |
+
* argument to \ref CUpti_CallbackFunc. The \p cbdata will be this
|
| 508 |
+
* type for \p domain equal to CUPTI_CB_DOMAIN_SYNCHRONIZE. The
|
| 509 |
+
* callback data is valid only within the invocation of the callback
|
| 510 |
+
* function that is passed the data. If you need to retain some data
|
| 511 |
+
* for use outside of the callback, you must make a copy of that data.
|
| 512 |
+
*/
|
| 513 |
+
typedef struct {
|
| 514 |
+
/**
|
| 515 |
+
* The context of the stream being synchronized.
|
| 516 |
+
*/
|
| 517 |
+
CUcontext context;
|
| 518 |
+
/**
|
| 519 |
+
* The stream being synchronized.
|
| 520 |
+
*/
|
| 521 |
+
CUstream stream;
|
| 522 |
+
} CUpti_SynchronizeData;
|
| 523 |
+
|
| 524 |
+
/**
|
| 525 |
+
* \brief Data passed into a NVTX callback function.
|
| 526 |
+
*
|
| 527 |
+
* Data passed into a NVTX callback function as the \p cbdata argument
|
| 528 |
+
* to \ref CUpti_CallbackFunc. The \p cbdata will be this type for \p
|
| 529 |
+
* domain equal to CUPTI_CB_DOMAIN_NVTX. Unless otherwise notes, the
|
| 530 |
+
* callback data is valid only within the invocation of the callback
|
| 531 |
+
* function that is passed the data. If you need to retain some data
|
| 532 |
+
* for use outside of the callback, you must make a copy of that data.
|
| 533 |
+
*/
|
| 534 |
+
typedef struct {
|
| 535 |
+
/**
|
| 536 |
+
* Name of the NVTX API function which issued the callback. This
|
| 537 |
+
* string is a global constant and so may be accessed outside of the
|
| 538 |
+
* callback.
|
| 539 |
+
*/
|
| 540 |
+
const char *functionName;
|
| 541 |
+
|
| 542 |
+
/**
|
| 543 |
+
* Pointer to the arguments passed to the NVTX API call. See
|
| 544 |
+
* generated_nvtx_meta.h for structure definitions for the
|
| 545 |
+
* parameters for each NVTX API function.
|
| 546 |
+
*/
|
| 547 |
+
const void *functionParams;
|
| 548 |
+
|
| 549 |
+
/**
|
| 550 |
+
* Pointer to the return value of the NVTX API call. See
|
| 551 |
+
* nvToolsExt.h for each NVTX API function's return value.
|
| 552 |
+
*/
|
| 553 |
+
const void *functionReturnValue;
|
| 554 |
+
} CUpti_NvtxData;
|
| 555 |
+
|
| 556 |
+
/**
|
| 557 |
+
* \brief Stream attribute data passed into a resource callback function
|
| 558 |
+
* for CUPTI_CBID_RESOURCE_STREAM_ATTRIBUTE_CHANGED callback
|
| 559 |
+
|
| 560 |
+
* Data passed into a resource callback function as the \p cbdata
|
| 561 |
+
* argument to \ref CUpti_CallbackFunc. The \p cbdata will be this
|
| 562 |
+
* type for \p domain equal to CUPTI_CB_DOMAIN_RESOURCE. The
|
| 563 |
+
* stream attribute data is valid only within the invocation of the callback
|
| 564 |
+
* function that is passed the data. If you need to retain some data
|
| 565 |
+
* for use outside of the callback, you must make a copy of that data.
|
| 566 |
+
*/
|
| 567 |
+
typedef struct {
|
| 568 |
+
/**
|
| 569 |
+
* The CUDA stream handle for the attribute
|
| 570 |
+
*/
|
| 571 |
+
CUstream stream;
|
| 572 |
+
|
| 573 |
+
/**
|
| 574 |
+
* The type of the CUDA stream attribute
|
| 575 |
+
*/
|
| 576 |
+
CUstreamAttrID attr;
|
| 577 |
+
|
| 578 |
+
/**
|
| 579 |
+
* The value of the CUDA stream attribute
|
| 580 |
+
*/
|
| 581 |
+
const CUstreamAttrValue *value;
|
| 582 |
+
} CUpti_StreamAttrData;
|
| 583 |
+
|
| 584 |
+
/**
|
| 585 |
+
* \brief Data passed into a State callback function.
|
| 586 |
+
*
|
| 587 |
+
* Data passed into a State callback function as the \p cbdata argument
|
| 588 |
+
* to \ref CUpti_CallbackFunc. The \p cbdata will be this type for \p
|
| 589 |
+
* domain equal to CUPTI_CB_DOMAIN_STATE and callback Ids belonging to CUpti_CallbackIdState.
|
| 590 |
+
* Unless otherwise noted, the callback data is valid only within the invocation of the callback
|
| 591 |
+
* function that is passed the data. If you need to retain some data
|
| 592 |
+
* for use outside of the callback, you must make a copy of that data.
|
| 593 |
+
*/
|
| 594 |
+
typedef struct {
|
| 595 |
+
union {
|
| 596 |
+
/**
|
| 597 |
+
* Data passed along with the callback Ids
|
| 598 |
+
* Enum CUpti_CallbackIdState used to denote callback ids
|
| 599 |
+
*/
|
| 600 |
+
struct {
|
| 601 |
+
/**
|
| 602 |
+
* Error code
|
| 603 |
+
*/
|
| 604 |
+
CUptiResult result;
|
| 605 |
+
/**
|
| 606 |
+
* String containing more details. It can be NULL.
|
| 607 |
+
*/
|
| 608 |
+
const char *message;
|
| 609 |
+
} notification;
|
| 610 |
+
};
|
| 611 |
+
} CUpti_StateData;
|
| 612 |
+
|
| 613 |
+
/**
|
| 614 |
+
* \brief An ID for a driver API, runtime API, resource or
|
| 615 |
+
* synchronization callback.
|
| 616 |
+
*
|
| 617 |
+
* An ID for a driver API, runtime API, resource or synchronization
|
| 618 |
+
* callback. Within a driver API callback this should be interpreted
|
| 619 |
+
* as a CUpti_driver_api_trace_cbid value (these values are defined in
|
| 620 |
+
* cupti_driver_cbid.h). Within a runtime API callback this should be
|
| 621 |
+
* interpreted as a CUpti_runtime_api_trace_cbid value (these values
|
| 622 |
+
* are defined in cupti_runtime_cbid.h). Within a resource API
|
| 623 |
+
* callback this should be interpreted as a \ref
|
| 624 |
+
* CUpti_CallbackIdResource value. Within a synchronize API callback
|
| 625 |
+
* this should be interpreted as a \ref CUpti_CallbackIdSync value.
|
| 626 |
+
*/
|
| 627 |
+
typedef uint32_t CUpti_CallbackId;
|
| 628 |
+
|
| 629 |
+
/**
|
| 630 |
+
* \brief Function type for a callback.
|
| 631 |
+
*
|
| 632 |
+
* Function type for a callback. The type of the data passed to the
|
| 633 |
+
* callback in \p cbdata depends on the \p domain. If \p domain is
|
| 634 |
+
* CUPTI_CB_DOMAIN_DRIVER_API or CUPTI_CB_DOMAIN_RUNTIME_API the type
|
| 635 |
+
* of \p cbdata will be CUpti_CallbackData. If \p domain is
|
| 636 |
+
* CUPTI_CB_DOMAIN_RESOURCE the type of \p cbdata will be
|
| 637 |
+
* CUpti_ResourceData. If \p domain is CUPTI_CB_DOMAIN_SYNCHRONIZE the
|
| 638 |
+
* type of \p cbdata will be CUpti_SynchronizeData. If \p domain is
|
| 639 |
+
* CUPTI_CB_DOMAIN_NVTX the type of \p cbdata will be CUpti_NvtxData.
|
| 640 |
+
*
|
| 641 |
+
* \param userdata User data supplied at subscription of the callback
|
| 642 |
+
* \param domain The domain of the callback
|
| 643 |
+
* \param cbid The ID of the callback
|
| 644 |
+
* \param cbdata Data passed to the callback.
|
| 645 |
+
*/
|
| 646 |
+
typedef void (CUPTIAPI *CUpti_CallbackFunc)(
|
| 647 |
+
void *userdata,
|
| 648 |
+
CUpti_CallbackDomain domain,
|
| 649 |
+
CUpti_CallbackId cbid,
|
| 650 |
+
const void *cbdata);
|
| 651 |
+
|
| 652 |
+
/**
|
| 653 |
+
* \brief A callback subscriber.
|
| 654 |
+
*/
|
| 655 |
+
typedef struct CUpti_Subscriber_st *CUpti_SubscriberHandle;
|
| 656 |
+
|
| 657 |
+
/**
|
| 658 |
+
* \brief Pointer to an array of callback domains.
|
| 659 |
+
*/
|
| 660 |
+
typedef CUpti_CallbackDomain *CUpti_DomainTable;
|
| 661 |
+
|
| 662 |
+
/**
|
| 663 |
+
* \brief Get the available callback domains.
|
| 664 |
+
*
|
| 665 |
+
* Returns in \p *domainTable an array of size \p *domainCount of all
|
| 666 |
+
* the available callback domains.
|
| 667 |
+
* \note \b Thread-safety: this function is thread safe.
|
| 668 |
+
*
|
| 669 |
+
* \param domainCount Returns number of callback domains
|
| 670 |
+
* \param domainTable Returns pointer to array of available callback domains
|
| 671 |
+
*
|
| 672 |
+
* \retval CUPTI_SUCCESS on success
|
| 673 |
+
* \retval CUPTI_ERROR_NOT_INITIALIZED if unable to initialize CUPTI
|
| 674 |
+
* \retval CUPTI_ERROR_INVALID_PARAMETER if \p domainCount or \p domainTable are NULL
|
| 675 |
+
*/
|
| 676 |
+
CUptiResult CUPTIAPI cuptiSupportedDomains(size_t *domainCount,
|
| 677 |
+
CUpti_DomainTable *domainTable);
|
| 678 |
+
|
| 679 |
+
/**
|
| 680 |
+
* \brief Initialize a callback subscriber with a callback function
|
| 681 |
+
* and user data.
|
| 682 |
+
*
|
| 683 |
+
* Initializes a callback subscriber with a callback function and
|
| 684 |
+
* (optionally) a pointer to user data. The returned subscriber handle
|
| 685 |
+
* can be used to enable and disable the callback for specific domains
|
| 686 |
+
* and callback IDs.
|
| 687 |
+
* \note Only a single subscriber can be registered at a time. To ensure
|
| 688 |
+
* that no other CUPTI client interrupts the profiling session, it's the
|
| 689 |
+
* responsibility of all the CUPTI clients to call this function before
|
| 690 |
+
* starting the profling session. In case profiling session is already
|
| 691 |
+
* started by another CUPTI client, this function returns the error code
|
| 692 |
+
* CUPTI_ERROR_MULTIPLE_SUBSCRIBERS_NOT_SUPPORTED.
|
| 693 |
+
* Note that this function returns the same error when application is
|
| 694 |
+
* launched using NVIDIA tools like nvprof, Visual Profiler, Nsight Systems,
|
| 695 |
+
* Nsight Compute, cuda-gdb and cuda-memcheck.
|
| 696 |
+
* \note This function does not enable any callbacks.
|
| 697 |
+
* \note \b Thread-safety: this function is thread safe.
|
| 698 |
+
*
|
| 699 |
+
* \param subscriber Returns handle to initialize subscriber
|
| 700 |
+
* \param callback The callback function
|
| 701 |
+
* \param userdata A pointer to user data. This data will be passed to
|
| 702 |
+
* the callback function via the \p userdata parameter.
|
| 703 |
+
*
|
| 704 |
+
* \retval CUPTI_SUCCESS on success
|
| 705 |
+
* \retval CUPTI_ERROR_NOT_INITIALIZED if unable to initialize CUPTI
|
| 706 |
+
* \retval CUPTI_ERROR_MULTIPLE_SUBSCRIBERS_NOT_SUPPORTED if there is already a CUPTI subscriber
|
| 707 |
+
* \retval CUPTI_ERROR_INVALID_PARAMETER if \p subscriber is NULL
|
| 708 |
+
*/
|
| 709 |
+
CUptiResult CUPTIAPI cuptiSubscribe(CUpti_SubscriberHandle *subscriber,
|
| 710 |
+
CUpti_CallbackFunc callback,
|
| 711 |
+
void *userdata);
|
| 712 |
+
|
| 713 |
+
/**
|
| 714 |
+
* \brief Unregister a callback subscriber.
|
| 715 |
+
*
|
| 716 |
+
* Removes a callback subscriber so that no future callbacks will be
|
| 717 |
+
* issued to that subscriber.
|
| 718 |
+
* \note \b Thread-safety: this function is thread safe.
|
| 719 |
+
*
|
| 720 |
+
* \param subscriber Handle to the initialize subscriber
|
| 721 |
+
*
|
| 722 |
+
* \retval CUPTI_SUCCESS on success
|
| 723 |
+
* \retval CUPTI_ERROR_NOT_INITIALIZED if unable to initialized CUPTI
|
| 724 |
+
* \retval CUPTI_ERROR_INVALID_PARAMETER if \p subscriber is NULL or not initialized
|
| 725 |
+
*/
|
| 726 |
+
CUptiResult CUPTIAPI cuptiUnsubscribe(CUpti_SubscriberHandle subscriber);
|
| 727 |
+
|
| 728 |
+
/**
|
| 729 |
+
* \brief Get the current enabled/disabled state of a callback for a specific
|
| 730 |
+
* domain and function ID.
|
| 731 |
+
*
|
| 732 |
+
* Returns non-zero in \p *enable if the callback for a domain and
|
| 733 |
+
* callback ID is enabled, and zero if not enabled.
|
| 734 |
+
*
|
| 735 |
+
* \note \b Thread-safety: a subscriber must serialize access to
|
| 736 |
+
* cuptiGetCallbackState, cuptiEnableCallback, cuptiEnableDomain, and
|
| 737 |
+
* cuptiEnableAllDomains. For example, if cuptiGetCallbackState(sub,
|
| 738 |
+
* d, c) and cuptiEnableCallback(sub, d, c) are called concurrently,
|
| 739 |
+
* the results are undefined.
|
| 740 |
+
*
|
| 741 |
+
* \param enable Returns non-zero if callback enabled, zero if not enabled
|
| 742 |
+
* \param subscriber Handle to the initialize subscriber
|
| 743 |
+
* \param domain The domain of the callback
|
| 744 |
+
* \param cbid The ID of the callback
|
| 745 |
+
*
|
| 746 |
+
* \retval CUPTI_SUCCESS on success
|
| 747 |
+
* \retval CUPTI_ERROR_NOT_INITIALIZED if unable to initialized CUPTI
|
| 748 |
+
* \retval CUPTI_ERROR_INVALID_PARAMETER if \p enabled is NULL, or if \p
|
| 749 |
+
* subscriber, \p domain or \p cbid is invalid.
|
| 750 |
+
*/
|
| 751 |
+
CUptiResult CUPTIAPI cuptiGetCallbackState(uint32_t *enable,
|
| 752 |
+
CUpti_SubscriberHandle subscriber,
|
| 753 |
+
CUpti_CallbackDomain domain,
|
| 754 |
+
CUpti_CallbackId cbid);
|
| 755 |
+
|
| 756 |
+
/**
|
| 757 |
+
* \brief Enable or disabled callbacks for a specific domain and
|
| 758 |
+
* callback ID.
|
| 759 |
+
*
|
| 760 |
+
* Enable or disabled callbacks for a subscriber for a specific domain
|
| 761 |
+
* and callback ID.
|
| 762 |
+
*
|
| 763 |
+
* \note \b Thread-safety: a subscriber must serialize access to
|
| 764 |
+
* cuptiGetCallbackState, cuptiEnableCallback, cuptiEnableDomain, and
|
| 765 |
+
* cuptiEnableAllDomains. For example, if cuptiGetCallbackState(sub,
|
| 766 |
+
* d, c) and cuptiEnableCallback(sub, d, c) are called concurrently,
|
| 767 |
+
* the results are undefined.
|
| 768 |
+
*
|
| 769 |
+
* \param enable New enable state for the callback. Zero disables the
|
| 770 |
+
* callback, non-zero enables the callback.
|
| 771 |
+
* \param subscriber - Handle to callback subscription
|
| 772 |
+
* \param domain The domain of the callback
|
| 773 |
+
* \param cbid The ID of the callback
|
| 774 |
+
*
|
| 775 |
+
* \retval CUPTI_SUCCESS on success
|
| 776 |
+
* \retval CUPTI_ERROR_NOT_INITIALIZED if unable to initialized CUPTI
|
| 777 |
+
* \retval CUPTI_ERROR_INVALID_PARAMETER if \p subscriber, \p domain or \p
|
| 778 |
+
* cbid is invalid.
|
| 779 |
+
*/
|
| 780 |
+
CUptiResult CUPTIAPI cuptiEnableCallback(uint32_t enable,
|
| 781 |
+
CUpti_SubscriberHandle subscriber,
|
| 782 |
+
CUpti_CallbackDomain domain,
|
| 783 |
+
CUpti_CallbackId cbid);
|
| 784 |
+
|
| 785 |
+
/**
|
| 786 |
+
* \brief Enable or disabled all callbacks for a specific domain.
|
| 787 |
+
*
|
| 788 |
+
* Enable or disabled all callbacks for a specific domain.
|
| 789 |
+
*
|
| 790 |
+
* \note \b Thread-safety: a subscriber must serialize access to
|
| 791 |
+
* cuptiGetCallbackState, cuptiEnableCallback, cuptiEnableDomain, and
|
| 792 |
+
* cuptiEnableAllDomains. For example, if cuptiGetCallbackEnabled(sub,
|
| 793 |
+
* d, *) and cuptiEnableDomain(sub, d) are called concurrently, the
|
| 794 |
+
* results are undefined.
|
| 795 |
+
*
|
| 796 |
+
* \param enable New enable state for all callbacks in the
|
| 797 |
+
* domain. Zero disables all callbacks, non-zero enables all
|
| 798 |
+
* callbacks.
|
| 799 |
+
* \param subscriber - Handle to callback subscription
|
| 800 |
+
* \param domain The domain of the callback
|
| 801 |
+
*
|
| 802 |
+
* \retval CUPTI_SUCCESS on success
|
| 803 |
+
* \retval CUPTI_ERROR_NOT_INITIALIZED if unable to initialized CUPTI
|
| 804 |
+
* \retval CUPTI_ERROR_INVALID_PARAMETER if \p subscriber or \p domain is invalid
|
| 805 |
+
*/
|
| 806 |
+
CUptiResult CUPTIAPI cuptiEnableDomain(uint32_t enable,
|
| 807 |
+
CUpti_SubscriberHandle subscriber,
|
| 808 |
+
CUpti_CallbackDomain domain);
|
| 809 |
+
|
| 810 |
+
/**
|
| 811 |
+
* \brief Enable or disable all callbacks in all domains.
|
| 812 |
+
*
|
| 813 |
+
* Enable or disable all callbacks in all domains.
|
| 814 |
+
*
|
| 815 |
+
* \note \b Thread-safety: a subscriber must serialize access to
|
| 816 |
+
* cuptiGetCallbackState, cuptiEnableCallback, cuptiEnableDomain, and
|
| 817 |
+
* cuptiEnableAllDomains. For example, if cuptiGetCallbackState(sub,
|
| 818 |
+
* d, *) and cuptiEnableAllDomains(sub) are called concurrently, the
|
| 819 |
+
* results are undefined.
|
| 820 |
+
*
|
| 821 |
+
* \param enable New enable state for all callbacks in all
|
| 822 |
+
* domain. Zero disables all callbacks, non-zero enables all
|
| 823 |
+
* callbacks.
|
| 824 |
+
* \param subscriber - Handle to callback subscription
|
| 825 |
+
*
|
| 826 |
+
* \retval CUPTI_SUCCESS on success
|
| 827 |
+
* \retval CUPTI_ERROR_NOT_INITIALIZED if unable to initialized CUPTI
|
| 828 |
+
* \retval CUPTI_ERROR_INVALID_PARAMETER if \p subscriber is invalid
|
| 829 |
+
*/
|
| 830 |
+
CUptiResult CUPTIAPI cuptiEnableAllDomains(uint32_t enable,
|
| 831 |
+
CUpti_SubscriberHandle subscriber);
|
| 832 |
+
|
| 833 |
+
/**
|
| 834 |
+
* \brief Get the name of a callback for a specific domain and callback ID.
|
| 835 |
+
*
|
| 836 |
+
* Returns a pointer to the name c_string in \p **name.
|
| 837 |
+
*
|
| 838 |
+
* \note \b Names are available only for the DRIVER and RUNTIME domains.
|
| 839 |
+
*
|
| 840 |
+
* \param domain The domain of the callback
|
| 841 |
+
* \param cbid The ID of the callback
|
| 842 |
+
* \param name Returns pointer to the name string on success, NULL otherwise
|
| 843 |
+
*
|
| 844 |
+
* \retval CUPTI_SUCCESS on success
|
| 845 |
+
* \retval CUPTI_ERROR_INVALID_PARAMETER if \p name is NULL, or if
|
| 846 |
+
* \p domain or \p cbid is invalid.
|
| 847 |
+
*/
|
| 848 |
+
CUptiResult CUPTIAPI cuptiGetCallbackName(CUpti_CallbackDomain domain,
|
| 849 |
+
uint32_t cbid,
|
| 850 |
+
const char **name);
|
| 851 |
+
|
| 852 |
+
/** @} */ /* END CUPTI_CALLBACK_API */
|
| 853 |
+
|
| 854 |
+
#if defined(__GNUC__) && defined(CUPTI_LIB)
|
| 855 |
+
#pragma GCC visibility pop
|
| 856 |
+
#endif
|
| 857 |
+
|
| 858 |
+
#if defined(__cplusplus)
|
| 859 |
+
}
|
| 860 |
+
#endif
|
| 861 |
+
|
| 862 |
+
#endif // file guard
|
| 863 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cupti_checkpoint.h
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
#include <cuda.h>
|
| 4 |
+
#include <cupti_result.h>
|
| 5 |
+
|
| 6 |
+
#include <stddef.h>
|
| 7 |
+
#include <stdint.h>
|
| 8 |
+
|
| 9 |
+
namespace NV { namespace Cupti { namespace Checkpoint {
|
| 10 |
+
|
| 11 |
+
#ifdef __cplusplus
|
| 12 |
+
extern "C"
|
| 13 |
+
{
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
+
/**
|
| 17 |
+
* \defgroup CUPTI_CHECKPOINT_API CUPTI Checkpoint API
|
| 18 |
+
* Functions, types, and enums that implement the CUPTI Checkpoint API.
|
| 19 |
+
* @{
|
| 20 |
+
*/
|
| 21 |
+
|
| 22 |
+
/**
|
| 23 |
+
* \brief Specifies optimization options for a checkpoint, may be OR'd together to specify multiple options.
|
| 24 |
+
*/
|
| 25 |
+
typedef enum
|
| 26 |
+
{
|
| 27 |
+
CUPTI_CHECKPOINT_OPT_NONE = 0, //!< Default behavior
|
| 28 |
+
CUPTI_CHECKPOINT_OPT_TRANSFER = 1, //!< Determine which mem blocks have changed, and only restore those. This optimization is cached, which means cuptiCheckpointRestore must always be called at the same point in the application when this option is enabled, or the result may be incorrect.
|
| 29 |
+
} CUpti_CheckpointOptimizations;
|
| 30 |
+
|
| 31 |
+
/**
|
| 32 |
+
* \brief Configuration and handle for a CUPTI Checkpoint
|
| 33 |
+
*
|
| 34 |
+
* A CUptiCheckpoint object should be initialized with desired options prior to passing into any
|
| 35 |
+
* CUPTI Checkpoint API function. The first call into a Checkpoint API function will initialize internal
|
| 36 |
+
* state based on these options. Subsequent changes to these options will not have any effect.
|
| 37 |
+
*
|
| 38 |
+
* Checkpoint data is saved in device, host, and filesystem space. There are options to reserve memory
|
| 39 |
+
* at each level (device, host, filesystem) which are intended to allow a guarantee that a certain amount
|
| 40 |
+
* of memory will remain free for use after the checkpoint is saved.
|
| 41 |
+
* Note, however, that falling back to slower levels of memory (host, and then filesystem) to save the checkpoint
|
| 42 |
+
* will result in performance degradation.
|
| 43 |
+
* Currently, the filesystem limitation is not implemented. Note that falling back to filesystem storage may
|
| 44 |
+
* significantly impact the performance for saving and restoring a checkpoint.
|
| 45 |
+
*/
|
| 46 |
+
typedef struct
|
| 47 |
+
{
|
| 48 |
+
size_t structSize; //!< [in] Must be set to CUpti_Checkpoint_STRUCT_SIZE
|
| 49 |
+
|
| 50 |
+
CUcontext ctx; //!< [in] Set to context to save from, or will use current context if NULL
|
| 51 |
+
|
| 52 |
+
size_t reserveDeviceMB; //!< [in] Restrict checkpoint from using last N MB of device memory (-1 = use no device memory)
|
| 53 |
+
size_t reserveHostMB; //!< [in] Restrict checkpoint from using last N MB of host memory (-1 = use no host memory)
|
| 54 |
+
uint8_t allowOverwrite; //!< [in] Boolean, Allow checkpoint to save over existing checkpoint
|
| 55 |
+
uint8_t optimizations; //!< [in] Mask of CUpti_CheckpointOptimizations flags for this checkpoint
|
| 56 |
+
|
| 57 |
+
void * pPriv; //!< [in] Assign to NULL
|
| 58 |
+
} CUpti_Checkpoint;
|
| 59 |
+
|
| 60 |
+
#define CUpti_Checkpoint_STRUCT_SIZE \
|
| 61 |
+
(offsetof(CUpti_Checkpoint, pPriv) + \
|
| 62 |
+
sizeof(((CUpti_Checkpoint*)(nullptr))->pPriv))
|
| 63 |
+
|
| 64 |
+
#if defined(__GNUC__) && defined(CUPTI_LIB)
|
| 65 |
+
#pragma GCC visibility push(default)
|
| 66 |
+
#endif
|
| 67 |
+
|
| 68 |
+
/**
|
| 69 |
+
* \brief Initialize and save a checkpoint of the device state associated with the handle context
|
| 70 |
+
*
|
| 71 |
+
* Uses the handle options to configure and save a checkpoint of the device state associated with the specified context.
|
| 72 |
+
*
|
| 73 |
+
* \param handle A pointer to a CUpti_Checkpoint object
|
| 74 |
+
*
|
| 75 |
+
* \retval CUPTI_SUCCESS if a checkpoint was successfully initialized and saved
|
| 76 |
+
* \retval CUPTI_ERROR_INVALID_PARAMETER if \p handle does not appear to refer to a valid CUpti_Checkpoint
|
| 77 |
+
* \retval CUPTI_ERROR_INVALID_CONTEXT
|
| 78 |
+
* \retval CUPTI_ERROR_INVALID_DEVICE if device associated with context is not compatible with checkpoint API
|
| 79 |
+
* \retval CUPTI_ERROR_INVALID_OPERATION if Save is requested over an existing checkpoint, but \p allowOverwrite was not originally specified
|
| 80 |
+
* \retval CUPTI_ERROR_OUT_OF_MEMORY if as configured, not enough backing storage space to save the checkpoint
|
| 81 |
+
*/
|
| 82 |
+
CUptiResult cuptiCheckpointSave(CUpti_Checkpoint * const handle);
|
| 83 |
+
|
| 84 |
+
/**
|
| 85 |
+
* \brief Restore a checkpoint to the device associated with its context
|
| 86 |
+
*
|
| 87 |
+
* Restores device, pinned, and allocated memory to the state when the checkpoint was saved
|
| 88 |
+
*
|
| 89 |
+
* \param handle A pointer to a previously saved CUpti_Checkpoint object
|
| 90 |
+
*
|
| 91 |
+
* \retval CUTPI_SUCCESS if the checkpoint was successfully restored
|
| 92 |
+
* \retval CUPTI_ERROR_NOT_INITIALIZED if the checkpoint was not previously initialized
|
| 93 |
+
* \retval CUPTI_ERROR_INVALID_CONTEXT
|
| 94 |
+
* \retval CUPTI_ERROR_INVALID_PARAMETER if the handle appears invalid
|
| 95 |
+
* \retval CUPTI_ERROR_UNKNOWN if the restore or optimization operation fails
|
| 96 |
+
*/
|
| 97 |
+
CUptiResult cuptiCheckpointRestore(CUpti_Checkpoint * const handle);
|
| 98 |
+
|
| 99 |
+
/**
|
| 100 |
+
* \brief Free the backing data for a checkpoint
|
| 101 |
+
*
|
| 102 |
+
* Frees all associated device, host memory and filesystem storage used for this context.
|
| 103 |
+
* After freeing a handle, it may be re-used as if it was new - options may be re-configured and will
|
| 104 |
+
* take effect on the next call to \p cuptiCheckpointSave.
|
| 105 |
+
*
|
| 106 |
+
* \param handle A pointer to a previously saved CUpti_Checkpoint object
|
| 107 |
+
*
|
| 108 |
+
* \retval CUPTI_SUCCESS if the handle was successfully freed
|
| 109 |
+
* \retval CUPTI_ERROR_INVALID_PARAMETER if the handle was already freed or appears invalid
|
| 110 |
+
* \retval CUPTI_ERROR_INVALID_CONTEXT if the context is no longer valid
|
| 111 |
+
*/
|
| 112 |
+
CUptiResult cuptiCheckpointFree(CUpti_Checkpoint * const handle);
|
| 113 |
+
|
| 114 |
+
#if defined(__GNUC__) && defined(CUPTI_LIB)
|
| 115 |
+
#pragma GCC visibility pop
|
| 116 |
+
#endif
|
| 117 |
+
|
| 118 |
+
/**
|
| 119 |
+
* @}
|
| 120 |
+
*/
|
| 121 |
+
|
| 122 |
+
#ifdef __cplusplus
|
| 123 |
+
}
|
| 124 |
+
#endif
|
| 125 |
+
|
| 126 |
+
// Exit namespace NV::Cupti::Checkpoint
|
| 127 |
+
}}}
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/cupti_driver_cbid.h
ADDED
|
@@ -0,0 +1,799 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
// *************************************************************************
|
| 3 |
+
// Definitions of indices for API functions, unique across entire API
|
| 4 |
+
// *************************************************************************
|
| 5 |
+
|
| 6 |
+
// This file is generated. Any changes you make will be lost during the next clean build.
|
| 7 |
+
// CUDA public interface, for type definitions and cu* function prototypes
|
| 8 |
+
|
| 9 |
+
#if !defined(_CUPTI_DRIVER_CBID_H_)
|
| 10 |
+
#define _CUPTI_DRIVER_CBID_H_
|
| 11 |
+
|
| 12 |
+
typedef enum CUpti_driver_api_trace_cbid_enum {
|
| 13 |
+
CUPTI_DRIVER_TRACE_CBID_INVALID = 0,
|
| 14 |
+
CUPTI_DRIVER_TRACE_CBID_cuInit = 1,
|
| 15 |
+
CUPTI_DRIVER_TRACE_CBID_cuDriverGetVersion = 2,
|
| 16 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGet = 3,
|
| 17 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetCount = 4,
|
| 18 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetName = 5,
|
| 19 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceComputeCapability = 6,
|
| 20 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceTotalMem = 7,
|
| 21 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetProperties = 8,
|
| 22 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetAttribute = 9,
|
| 23 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxCreate = 10,
|
| 24 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxDestroy = 11,
|
| 25 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxAttach = 12,
|
| 26 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxDetach = 13,
|
| 27 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxPushCurrent = 14,
|
| 28 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxPopCurrent = 15,
|
| 29 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxGetDevice = 16,
|
| 30 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxSynchronize = 17,
|
| 31 |
+
CUPTI_DRIVER_TRACE_CBID_cuModuleLoad = 18,
|
| 32 |
+
CUPTI_DRIVER_TRACE_CBID_cuModuleLoadData = 19,
|
| 33 |
+
CUPTI_DRIVER_TRACE_CBID_cuModuleLoadDataEx = 20,
|
| 34 |
+
CUPTI_DRIVER_TRACE_CBID_cuModuleLoadFatBinary = 21,
|
| 35 |
+
CUPTI_DRIVER_TRACE_CBID_cuModuleUnload = 22,
|
| 36 |
+
CUPTI_DRIVER_TRACE_CBID_cuModuleGetFunction = 23,
|
| 37 |
+
CUPTI_DRIVER_TRACE_CBID_cuModuleGetGlobal = 24,
|
| 38 |
+
CUPTI_DRIVER_TRACE_CBID_cu64ModuleGetGlobal = 25,
|
| 39 |
+
CUPTI_DRIVER_TRACE_CBID_cuModuleGetTexRef = 26,
|
| 40 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemGetInfo = 27,
|
| 41 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemGetInfo = 28,
|
| 42 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAlloc = 29,
|
| 43 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemAlloc = 30,
|
| 44 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAllocPitch = 31,
|
| 45 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemAllocPitch = 32,
|
| 46 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemFree = 33,
|
| 47 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemFree = 34,
|
| 48 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemGetAddressRange = 35,
|
| 49 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemGetAddressRange = 36,
|
| 50 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAllocHost = 37,
|
| 51 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemFreeHost = 38,
|
| 52 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemHostAlloc = 39,
|
| 53 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemHostGetDevicePointer = 40,
|
| 54 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemHostGetDevicePointer = 41,
|
| 55 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemHostGetFlags = 42,
|
| 56 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyHtoD = 43,
|
| 57 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemcpyHtoD = 44,
|
| 58 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoH = 45,
|
| 59 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemcpyDtoH = 46,
|
| 60 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoD = 47,
|
| 61 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemcpyDtoD = 48,
|
| 62 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoA = 49,
|
| 63 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemcpyDtoA = 50,
|
| 64 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyAtoD = 51,
|
| 65 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemcpyAtoD = 52,
|
| 66 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyHtoA = 53,
|
| 67 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyAtoH = 54,
|
| 68 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyAtoA = 55,
|
| 69 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy2D = 56,
|
| 70 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy2DUnaligned = 57,
|
| 71 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy3D = 58,
|
| 72 |
+
CUPTI_DRIVER_TRACE_CBID_cu64Memcpy3D = 59,
|
| 73 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyHtoDAsync = 60,
|
| 74 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemcpyHtoDAsync = 61,
|
| 75 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoHAsync = 62,
|
| 76 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemcpyDtoHAsync = 63,
|
| 77 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoDAsync = 64,
|
| 78 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemcpyDtoDAsync = 65,
|
| 79 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyHtoAAsync = 66,
|
| 80 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyAtoHAsync = 67,
|
| 81 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy2DAsync = 68,
|
| 82 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy3DAsync = 69,
|
| 83 |
+
CUPTI_DRIVER_TRACE_CBID_cu64Memcpy3DAsync = 70,
|
| 84 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD8 = 71,
|
| 85 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemsetD8 = 72,
|
| 86 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD16 = 73,
|
| 87 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemsetD16 = 74,
|
| 88 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD32 = 75,
|
| 89 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemsetD32 = 76,
|
| 90 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D8 = 77,
|
| 91 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemsetD2D8 = 78,
|
| 92 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D16 = 79,
|
| 93 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemsetD2D16 = 80,
|
| 94 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D32 = 81,
|
| 95 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemsetD2D32 = 82,
|
| 96 |
+
CUPTI_DRIVER_TRACE_CBID_cuFuncSetBlockShape = 83,
|
| 97 |
+
CUPTI_DRIVER_TRACE_CBID_cuFuncSetSharedSize = 84,
|
| 98 |
+
CUPTI_DRIVER_TRACE_CBID_cuFuncGetAttribute = 85,
|
| 99 |
+
CUPTI_DRIVER_TRACE_CBID_cuFuncSetCacheConfig = 86,
|
| 100 |
+
CUPTI_DRIVER_TRACE_CBID_cuArrayCreate = 87,
|
| 101 |
+
CUPTI_DRIVER_TRACE_CBID_cuArrayGetDescriptor = 88,
|
| 102 |
+
CUPTI_DRIVER_TRACE_CBID_cuArrayDestroy = 89,
|
| 103 |
+
CUPTI_DRIVER_TRACE_CBID_cuArray3DCreate = 90,
|
| 104 |
+
CUPTI_DRIVER_TRACE_CBID_cuArray3DGetDescriptor = 91,
|
| 105 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefCreate = 92,
|
| 106 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefDestroy = 93,
|
| 107 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetArray = 94,
|
| 108 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetAddress = 95,
|
| 109 |
+
CUPTI_DRIVER_TRACE_CBID_cu64TexRefSetAddress = 96,
|
| 110 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetAddress2D = 97,
|
| 111 |
+
CUPTI_DRIVER_TRACE_CBID_cu64TexRefSetAddress2D = 98,
|
| 112 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetFormat = 99,
|
| 113 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetAddressMode = 100,
|
| 114 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetFilterMode = 101,
|
| 115 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetFlags = 102,
|
| 116 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefGetAddress = 103,
|
| 117 |
+
CUPTI_DRIVER_TRACE_CBID_cu64TexRefGetAddress = 104,
|
| 118 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefGetArray = 105,
|
| 119 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefGetAddressMode = 106,
|
| 120 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefGetFilterMode = 107,
|
| 121 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefGetFormat = 108,
|
| 122 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefGetFlags = 109,
|
| 123 |
+
CUPTI_DRIVER_TRACE_CBID_cuParamSetSize = 110,
|
| 124 |
+
CUPTI_DRIVER_TRACE_CBID_cuParamSeti = 111,
|
| 125 |
+
CUPTI_DRIVER_TRACE_CBID_cuParamSetf = 112,
|
| 126 |
+
CUPTI_DRIVER_TRACE_CBID_cuParamSetv = 113,
|
| 127 |
+
CUPTI_DRIVER_TRACE_CBID_cuParamSetTexRef = 114,
|
| 128 |
+
CUPTI_DRIVER_TRACE_CBID_cuLaunch = 115,
|
| 129 |
+
CUPTI_DRIVER_TRACE_CBID_cuLaunchGrid = 116,
|
| 130 |
+
CUPTI_DRIVER_TRACE_CBID_cuLaunchGridAsync = 117,
|
| 131 |
+
CUPTI_DRIVER_TRACE_CBID_cuEventCreate = 118,
|
| 132 |
+
CUPTI_DRIVER_TRACE_CBID_cuEventRecord = 119,
|
| 133 |
+
CUPTI_DRIVER_TRACE_CBID_cuEventQuery = 120,
|
| 134 |
+
CUPTI_DRIVER_TRACE_CBID_cuEventSynchronize = 121,
|
| 135 |
+
CUPTI_DRIVER_TRACE_CBID_cuEventDestroy = 122,
|
| 136 |
+
CUPTI_DRIVER_TRACE_CBID_cuEventElapsedTime = 123,
|
| 137 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamCreate = 124,
|
| 138 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamQuery = 125,
|
| 139 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamSynchronize = 126,
|
| 140 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamDestroy = 127,
|
| 141 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsUnregisterResource = 128,
|
| 142 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsSubResourceGetMappedArray = 129,
|
| 143 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsResourceGetMappedPointer = 130,
|
| 144 |
+
CUPTI_DRIVER_TRACE_CBID_cu64GraphicsResourceGetMappedPointer = 131,
|
| 145 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsResourceSetMapFlags = 132,
|
| 146 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsMapResources = 133,
|
| 147 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsUnmapResources = 134,
|
| 148 |
+
CUPTI_DRIVER_TRACE_CBID_cuGetExportTable = 135,
|
| 149 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxSetLimit = 136,
|
| 150 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxGetLimit = 137,
|
| 151 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10GetDevice = 138,
|
| 152 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10CtxCreate = 139,
|
| 153 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsD3D10RegisterResource = 140,
|
| 154 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10RegisterResource = 141,
|
| 155 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10UnregisterResource = 142,
|
| 156 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10MapResources = 143,
|
| 157 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10UnmapResources = 144,
|
| 158 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10ResourceSetMapFlags = 145,
|
| 159 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10ResourceGetMappedArray = 146,
|
| 160 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10ResourceGetMappedPointer = 147,
|
| 161 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10ResourceGetMappedSize = 148,
|
| 162 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10ResourceGetMappedPitch = 149,
|
| 163 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10ResourceGetSurfaceDimensions = 150,
|
| 164 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D11GetDevice = 151,
|
| 165 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D11CtxCreate = 152,
|
| 166 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsD3D11RegisterResource = 153,
|
| 167 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9GetDevice = 154,
|
| 168 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9CtxCreate = 155,
|
| 169 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsD3D9RegisterResource = 156,
|
| 170 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9GetDirect3DDevice = 157,
|
| 171 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9RegisterResource = 158,
|
| 172 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9UnregisterResource = 159,
|
| 173 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9MapResources = 160,
|
| 174 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9UnmapResources = 161,
|
| 175 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9ResourceSetMapFlags = 162,
|
| 176 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9ResourceGetSurfaceDimensions = 163,
|
| 177 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9ResourceGetMappedArray = 164,
|
| 178 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9ResourceGetMappedPointer = 165,
|
| 179 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9ResourceGetMappedSize = 166,
|
| 180 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9ResourceGetMappedPitch = 167,
|
| 181 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9Begin = 168,
|
| 182 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9End = 169,
|
| 183 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9RegisterVertexBuffer = 170,
|
| 184 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9MapVertexBuffer = 171,
|
| 185 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9UnmapVertexBuffer = 172,
|
| 186 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9UnregisterVertexBuffer = 173,
|
| 187 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLCtxCreate = 174,
|
| 188 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsGLRegisterBuffer = 175,
|
| 189 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsGLRegisterImage = 176,
|
| 190 |
+
CUPTI_DRIVER_TRACE_CBID_cuWGLGetDevice = 177,
|
| 191 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLInit = 178,
|
| 192 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLRegisterBufferObject = 179,
|
| 193 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLMapBufferObject = 180,
|
| 194 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLUnmapBufferObject = 181,
|
| 195 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLUnregisterBufferObject = 182,
|
| 196 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLSetBufferObjectMapFlags = 183,
|
| 197 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLMapBufferObjectAsync = 184,
|
| 198 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLUnmapBufferObjectAsync = 185,
|
| 199 |
+
CUPTI_DRIVER_TRACE_CBID_cuVDPAUGetDevice = 186,
|
| 200 |
+
CUPTI_DRIVER_TRACE_CBID_cuVDPAUCtxCreate = 187,
|
| 201 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsVDPAURegisterVideoSurface = 188,
|
| 202 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsVDPAURegisterOutputSurface = 189,
|
| 203 |
+
CUPTI_DRIVER_TRACE_CBID_cuModuleGetSurfRef = 190,
|
| 204 |
+
CUPTI_DRIVER_TRACE_CBID_cuSurfRefCreate = 191,
|
| 205 |
+
CUPTI_DRIVER_TRACE_CBID_cuSurfRefDestroy = 192,
|
| 206 |
+
CUPTI_DRIVER_TRACE_CBID_cuSurfRefSetFormat = 193,
|
| 207 |
+
CUPTI_DRIVER_TRACE_CBID_cuSurfRefSetArray = 194,
|
| 208 |
+
CUPTI_DRIVER_TRACE_CBID_cuSurfRefGetFormat = 195,
|
| 209 |
+
CUPTI_DRIVER_TRACE_CBID_cuSurfRefGetArray = 196,
|
| 210 |
+
CUPTI_DRIVER_TRACE_CBID_cu64DeviceTotalMem = 197,
|
| 211 |
+
CUPTI_DRIVER_TRACE_CBID_cu64D3D10ResourceGetMappedPointer = 198,
|
| 212 |
+
CUPTI_DRIVER_TRACE_CBID_cu64D3D10ResourceGetMappedSize = 199,
|
| 213 |
+
CUPTI_DRIVER_TRACE_CBID_cu64D3D10ResourceGetMappedPitch = 200,
|
| 214 |
+
CUPTI_DRIVER_TRACE_CBID_cu64D3D10ResourceGetSurfaceDimensions = 201,
|
| 215 |
+
CUPTI_DRIVER_TRACE_CBID_cu64D3D9ResourceGetSurfaceDimensions = 202,
|
| 216 |
+
CUPTI_DRIVER_TRACE_CBID_cu64D3D9ResourceGetMappedPointer = 203,
|
| 217 |
+
CUPTI_DRIVER_TRACE_CBID_cu64D3D9ResourceGetMappedSize = 204,
|
| 218 |
+
CUPTI_DRIVER_TRACE_CBID_cu64D3D9ResourceGetMappedPitch = 205,
|
| 219 |
+
CUPTI_DRIVER_TRACE_CBID_cu64D3D9MapVertexBuffer = 206,
|
| 220 |
+
CUPTI_DRIVER_TRACE_CBID_cu64GLMapBufferObject = 207,
|
| 221 |
+
CUPTI_DRIVER_TRACE_CBID_cu64GLMapBufferObjectAsync = 208,
|
| 222 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D11GetDevices = 209,
|
| 223 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D11CtxCreateOnDevice = 210,
|
| 224 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10GetDevices = 211,
|
| 225 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10CtxCreateOnDevice = 212,
|
| 226 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9GetDevices = 213,
|
| 227 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9CtxCreateOnDevice = 214,
|
| 228 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemHostAlloc = 215,
|
| 229 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD8Async = 216,
|
| 230 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemsetD8Async = 217,
|
| 231 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD16Async = 218,
|
| 232 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemsetD16Async = 219,
|
| 233 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD32Async = 220,
|
| 234 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemsetD32Async = 221,
|
| 235 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D8Async = 222,
|
| 236 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemsetD2D8Async = 223,
|
| 237 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D16Async = 224,
|
| 238 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemsetD2D16Async = 225,
|
| 239 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D32Async = 226,
|
| 240 |
+
CUPTI_DRIVER_TRACE_CBID_cu64MemsetD2D32Async = 227,
|
| 241 |
+
CUPTI_DRIVER_TRACE_CBID_cu64ArrayCreate = 228,
|
| 242 |
+
CUPTI_DRIVER_TRACE_CBID_cu64ArrayGetDescriptor = 229,
|
| 243 |
+
CUPTI_DRIVER_TRACE_CBID_cu64Array3DCreate = 230,
|
| 244 |
+
CUPTI_DRIVER_TRACE_CBID_cu64Array3DGetDescriptor = 231,
|
| 245 |
+
CUPTI_DRIVER_TRACE_CBID_cu64Memcpy2D = 232,
|
| 246 |
+
CUPTI_DRIVER_TRACE_CBID_cu64Memcpy2DUnaligned = 233,
|
| 247 |
+
CUPTI_DRIVER_TRACE_CBID_cu64Memcpy2DAsync = 234,
|
| 248 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxCreate_v2 = 235,
|
| 249 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10CtxCreate_v2 = 236,
|
| 250 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D11CtxCreate_v2 = 237,
|
| 251 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9CtxCreate_v2 = 238,
|
| 252 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLCtxCreate_v2 = 239,
|
| 253 |
+
CUPTI_DRIVER_TRACE_CBID_cuVDPAUCtxCreate_v2 = 240,
|
| 254 |
+
CUPTI_DRIVER_TRACE_CBID_cuModuleGetGlobal_v2 = 241,
|
| 255 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemGetInfo_v2 = 242,
|
| 256 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAlloc_v2 = 243,
|
| 257 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAllocPitch_v2 = 244,
|
| 258 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemFree_v2 = 245,
|
| 259 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemGetAddressRange_v2 = 246,
|
| 260 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemHostGetDevicePointer_v2 = 247,
|
| 261 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy_v2 = 248,
|
| 262 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD8_v2 = 249,
|
| 263 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD16_v2 = 250,
|
| 264 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD32_v2 = 251,
|
| 265 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D8_v2 = 252,
|
| 266 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D16_v2 = 253,
|
| 267 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D32_v2 = 254,
|
| 268 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetAddress_v2 = 255,
|
| 269 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetAddress2D_v2 = 256,
|
| 270 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefGetAddress_v2 = 257,
|
| 271 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsResourceGetMappedPointer_v2 = 258,
|
| 272 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceTotalMem_v2 = 259,
|
| 273 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10ResourceGetMappedPointer_v2 = 260,
|
| 274 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10ResourceGetMappedSize_v2 = 261,
|
| 275 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10ResourceGetMappedPitch_v2 = 262,
|
| 276 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10ResourceGetSurfaceDimensions_v2 = 263,
|
| 277 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9ResourceGetSurfaceDimensions_v2 = 264,
|
| 278 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9ResourceGetMappedPointer_v2 = 265,
|
| 279 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9ResourceGetMappedSize_v2 = 266,
|
| 280 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9ResourceGetMappedPitch_v2 = 267,
|
| 281 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D9MapVertexBuffer_v2 = 268,
|
| 282 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLMapBufferObject_v2 = 269,
|
| 283 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLMapBufferObjectAsync_v2 = 270,
|
| 284 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemHostAlloc_v2 = 271,
|
| 285 |
+
CUPTI_DRIVER_TRACE_CBID_cuArrayCreate_v2 = 272,
|
| 286 |
+
CUPTI_DRIVER_TRACE_CBID_cuArrayGetDescriptor_v2 = 273,
|
| 287 |
+
CUPTI_DRIVER_TRACE_CBID_cuArray3DCreate_v2 = 274,
|
| 288 |
+
CUPTI_DRIVER_TRACE_CBID_cuArray3DGetDescriptor_v2 = 275,
|
| 289 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyHtoD_v2 = 276,
|
| 290 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyHtoDAsync_v2 = 277,
|
| 291 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoH_v2 = 278,
|
| 292 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoHAsync_v2 = 279,
|
| 293 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoD_v2 = 280,
|
| 294 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoDAsync_v2 = 281,
|
| 295 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyAtoH_v2 = 282,
|
| 296 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyAtoHAsync_v2 = 283,
|
| 297 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyAtoD_v2 = 284,
|
| 298 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoA_v2 = 285,
|
| 299 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyAtoA_v2 = 286,
|
| 300 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy2D_v2 = 287,
|
| 301 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy2DUnaligned_v2 = 288,
|
| 302 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy2DAsync_v2 = 289,
|
| 303 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy3D_v2 = 290,
|
| 304 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy3DAsync_v2 = 291,
|
| 305 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyHtoA_v2 = 292,
|
| 306 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyHtoAAsync_v2 = 293,
|
| 307 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAllocHost_v2 = 294,
|
| 308 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWaitEvent = 295,
|
| 309 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxGetApiVersion = 296,
|
| 310 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D10GetDirect3DDevice = 297,
|
| 311 |
+
CUPTI_DRIVER_TRACE_CBID_cuD3D11GetDirect3DDevice = 298,
|
| 312 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxGetCacheConfig = 299,
|
| 313 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxSetCacheConfig = 300,
|
| 314 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemHostRegister = 301,
|
| 315 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemHostUnregister = 302,
|
| 316 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxSetCurrent = 303,
|
| 317 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxGetCurrent = 304,
|
| 318 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy = 305,
|
| 319 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyAsync = 306,
|
| 320 |
+
CUPTI_DRIVER_TRACE_CBID_cuLaunchKernel = 307,
|
| 321 |
+
CUPTI_DRIVER_TRACE_CBID_cuProfilerStart = 308,
|
| 322 |
+
CUPTI_DRIVER_TRACE_CBID_cuProfilerStop = 309,
|
| 323 |
+
CUPTI_DRIVER_TRACE_CBID_cuPointerGetAttribute = 310,
|
| 324 |
+
CUPTI_DRIVER_TRACE_CBID_cuProfilerInitialize = 311,
|
| 325 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceCanAccessPeer = 312,
|
| 326 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxEnablePeerAccess = 313,
|
| 327 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxDisablePeerAccess = 314,
|
| 328 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPeerRegister = 315,
|
| 329 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPeerUnregister = 316,
|
| 330 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPeerGetDevicePointer = 317,
|
| 331 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyPeer = 318,
|
| 332 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyPeerAsync = 319,
|
| 333 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy3DPeer = 320,
|
| 334 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy3DPeerAsync = 321,
|
| 335 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxDestroy_v2 = 322,
|
| 336 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxPushCurrent_v2 = 323,
|
| 337 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxPopCurrent_v2 = 324,
|
| 338 |
+
CUPTI_DRIVER_TRACE_CBID_cuEventDestroy_v2 = 325,
|
| 339 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamDestroy_v2 = 326,
|
| 340 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetAddress2D_v3 = 327,
|
| 341 |
+
CUPTI_DRIVER_TRACE_CBID_cuIpcGetMemHandle = 328,
|
| 342 |
+
CUPTI_DRIVER_TRACE_CBID_cuIpcOpenMemHandle = 329,
|
| 343 |
+
CUPTI_DRIVER_TRACE_CBID_cuIpcCloseMemHandle = 330,
|
| 344 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetByPCIBusId = 331,
|
| 345 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetPCIBusId = 332,
|
| 346 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLGetDevices = 333,
|
| 347 |
+
CUPTI_DRIVER_TRACE_CBID_cuIpcGetEventHandle = 334,
|
| 348 |
+
CUPTI_DRIVER_TRACE_CBID_cuIpcOpenEventHandle = 335,
|
| 349 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxSetSharedMemConfig = 336,
|
| 350 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxGetSharedMemConfig = 337,
|
| 351 |
+
CUPTI_DRIVER_TRACE_CBID_cuFuncSetSharedMemConfig = 338,
|
| 352 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexObjectCreate = 339,
|
| 353 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexObjectDestroy = 340,
|
| 354 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexObjectGetResourceDesc = 341,
|
| 355 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexObjectGetTextureDesc = 342,
|
| 356 |
+
CUPTI_DRIVER_TRACE_CBID_cuSurfObjectCreate = 343,
|
| 357 |
+
CUPTI_DRIVER_TRACE_CBID_cuSurfObjectDestroy = 344,
|
| 358 |
+
CUPTI_DRIVER_TRACE_CBID_cuSurfObjectGetResourceDesc = 345,
|
| 359 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamAddCallback = 346,
|
| 360 |
+
CUPTI_DRIVER_TRACE_CBID_cuMipmappedArrayCreate = 347,
|
| 361 |
+
CUPTI_DRIVER_TRACE_CBID_cuMipmappedArrayGetLevel = 348,
|
| 362 |
+
CUPTI_DRIVER_TRACE_CBID_cuMipmappedArrayDestroy = 349,
|
| 363 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetMipmappedArray = 350,
|
| 364 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetMipmapFilterMode = 351,
|
| 365 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetMipmapLevelBias = 352,
|
| 366 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetMipmapLevelClamp = 353,
|
| 367 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetMaxAnisotropy = 354,
|
| 368 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefGetMipmappedArray = 355,
|
| 369 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefGetMipmapFilterMode = 356,
|
| 370 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefGetMipmapLevelBias = 357,
|
| 371 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefGetMipmapLevelClamp = 358,
|
| 372 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefGetMaxAnisotropy = 359,
|
| 373 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsResourceGetMappedMipmappedArray = 360,
|
| 374 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexObjectGetResourceViewDesc = 361,
|
| 375 |
+
CUPTI_DRIVER_TRACE_CBID_cuLinkCreate = 362,
|
| 376 |
+
CUPTI_DRIVER_TRACE_CBID_cuLinkAddData = 363,
|
| 377 |
+
CUPTI_DRIVER_TRACE_CBID_cuLinkAddFile = 364,
|
| 378 |
+
CUPTI_DRIVER_TRACE_CBID_cuLinkComplete = 365,
|
| 379 |
+
CUPTI_DRIVER_TRACE_CBID_cuLinkDestroy = 366,
|
| 380 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamCreateWithPriority = 367,
|
| 381 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetPriority = 368,
|
| 382 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetFlags = 369,
|
| 383 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxGetStreamPriorityRange = 370,
|
| 384 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAllocManaged = 371,
|
| 385 |
+
CUPTI_DRIVER_TRACE_CBID_cuGetErrorString = 372,
|
| 386 |
+
CUPTI_DRIVER_TRACE_CBID_cuGetErrorName = 373,
|
| 387 |
+
CUPTI_DRIVER_TRACE_CBID_cuOccupancyMaxActiveBlocksPerMultiprocessor = 374,
|
| 388 |
+
CUPTI_DRIVER_TRACE_CBID_cuCompilePtx = 375,
|
| 389 |
+
CUPTI_DRIVER_TRACE_CBID_cuBinaryFree = 376,
|
| 390 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamAttachMemAsync = 377,
|
| 391 |
+
CUPTI_DRIVER_TRACE_CBID_cuPointerSetAttribute = 378,
|
| 392 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemHostRegister_v2 = 379,
|
| 393 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsResourceSetMapFlags_v2 = 380,
|
| 394 |
+
CUPTI_DRIVER_TRACE_CBID_cuLinkCreate_v2 = 381,
|
| 395 |
+
CUPTI_DRIVER_TRACE_CBID_cuLinkAddData_v2 = 382,
|
| 396 |
+
CUPTI_DRIVER_TRACE_CBID_cuLinkAddFile_v2 = 383,
|
| 397 |
+
CUPTI_DRIVER_TRACE_CBID_cuOccupancyMaxPotentialBlockSize = 384,
|
| 398 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLGetDevices_v2 = 385,
|
| 399 |
+
CUPTI_DRIVER_TRACE_CBID_cuDevicePrimaryCtxRetain = 386,
|
| 400 |
+
CUPTI_DRIVER_TRACE_CBID_cuDevicePrimaryCtxRelease = 387,
|
| 401 |
+
CUPTI_DRIVER_TRACE_CBID_cuDevicePrimaryCtxSetFlags = 388,
|
| 402 |
+
CUPTI_DRIVER_TRACE_CBID_cuDevicePrimaryCtxReset = 389,
|
| 403 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsEGLRegisterImage = 390,
|
| 404 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxGetFlags = 391,
|
| 405 |
+
CUPTI_DRIVER_TRACE_CBID_cuDevicePrimaryCtxGetState = 392,
|
| 406 |
+
CUPTI_DRIVER_TRACE_CBID_cuEGLStreamConsumerConnect = 393,
|
| 407 |
+
CUPTI_DRIVER_TRACE_CBID_cuEGLStreamConsumerDisconnect = 394,
|
| 408 |
+
CUPTI_DRIVER_TRACE_CBID_cuEGLStreamConsumerAcquireFrame = 395,
|
| 409 |
+
CUPTI_DRIVER_TRACE_CBID_cuEGLStreamConsumerReleaseFrame = 396,
|
| 410 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyHtoD_v2_ptds = 397,
|
| 411 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoH_v2_ptds = 398,
|
| 412 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoD_v2_ptds = 399,
|
| 413 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoA_v2_ptds = 400,
|
| 414 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyAtoD_v2_ptds = 401,
|
| 415 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyHtoA_v2_ptds = 402,
|
| 416 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyAtoH_v2_ptds = 403,
|
| 417 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyAtoA_v2_ptds = 404,
|
| 418 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy2D_v2_ptds = 405,
|
| 419 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy2DUnaligned_v2_ptds = 406,
|
| 420 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy3D_v2_ptds = 407,
|
| 421 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy_ptds = 408,
|
| 422 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyPeer_ptds = 409,
|
| 423 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy3DPeer_ptds = 410,
|
| 424 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD8_v2_ptds = 411,
|
| 425 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD16_v2_ptds = 412,
|
| 426 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD32_v2_ptds = 413,
|
| 427 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D8_v2_ptds = 414,
|
| 428 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D16_v2_ptds = 415,
|
| 429 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D32_v2_ptds = 416,
|
| 430 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLMapBufferObject_v2_ptds = 417,
|
| 431 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyAsync_ptsz = 418,
|
| 432 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyHtoAAsync_v2_ptsz = 419,
|
| 433 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyAtoHAsync_v2_ptsz = 420,
|
| 434 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyHtoDAsync_v2_ptsz = 421,
|
| 435 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoHAsync_v2_ptsz = 422,
|
| 436 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyDtoDAsync_v2_ptsz = 423,
|
| 437 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy2DAsync_v2_ptsz = 424,
|
| 438 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy3DAsync_v2_ptsz = 425,
|
| 439 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyPeerAsync_ptsz = 426,
|
| 440 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy3DPeerAsync_ptsz = 427,
|
| 441 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD8Async_ptsz = 428,
|
| 442 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD16Async_ptsz = 429,
|
| 443 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD32Async_ptsz = 430,
|
| 444 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D8Async_ptsz = 431,
|
| 445 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D16Async_ptsz = 432,
|
| 446 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemsetD2D32Async_ptsz = 433,
|
| 447 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetPriority_ptsz = 434,
|
| 448 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetFlags_ptsz = 435,
|
| 449 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWaitEvent_ptsz = 436,
|
| 450 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamAddCallback_ptsz = 437,
|
| 451 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamAttachMemAsync_ptsz = 438,
|
| 452 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamQuery_ptsz = 439,
|
| 453 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamSynchronize_ptsz = 440,
|
| 454 |
+
CUPTI_DRIVER_TRACE_CBID_cuEventRecord_ptsz = 441,
|
| 455 |
+
CUPTI_DRIVER_TRACE_CBID_cuLaunchKernel_ptsz = 442,
|
| 456 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsMapResources_ptsz = 443,
|
| 457 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsUnmapResources_ptsz = 444,
|
| 458 |
+
CUPTI_DRIVER_TRACE_CBID_cuGLMapBufferObjectAsync_v2_ptsz = 445,
|
| 459 |
+
CUPTI_DRIVER_TRACE_CBID_cuEGLStreamProducerConnect = 446,
|
| 460 |
+
CUPTI_DRIVER_TRACE_CBID_cuEGLStreamProducerDisconnect = 447,
|
| 461 |
+
CUPTI_DRIVER_TRACE_CBID_cuEGLStreamProducerPresentFrame = 448,
|
| 462 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphicsResourceGetMappedEglFrame = 449,
|
| 463 |
+
CUPTI_DRIVER_TRACE_CBID_cuPointerGetAttributes = 450,
|
| 464 |
+
CUPTI_DRIVER_TRACE_CBID_cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = 451,
|
| 465 |
+
CUPTI_DRIVER_TRACE_CBID_cuOccupancyMaxPotentialBlockSizeWithFlags = 452,
|
| 466 |
+
CUPTI_DRIVER_TRACE_CBID_cuEGLStreamProducerReturnFrame = 453,
|
| 467 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetP2PAttribute = 454,
|
| 468 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefSetBorderColor = 455,
|
| 469 |
+
CUPTI_DRIVER_TRACE_CBID_cuTexRefGetBorderColor = 456,
|
| 470 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAdvise = 457,
|
| 471 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWaitValue32 = 458,
|
| 472 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWaitValue32_ptsz = 459,
|
| 473 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWriteValue32 = 460,
|
| 474 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWriteValue32_ptsz = 461,
|
| 475 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamBatchMemOp = 462,
|
| 476 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamBatchMemOp_ptsz = 463,
|
| 477 |
+
CUPTI_DRIVER_TRACE_CBID_cuNVNbufferGetPointer = 464,
|
| 478 |
+
CUPTI_DRIVER_TRACE_CBID_cuNVNtextureGetArray = 465,
|
| 479 |
+
CUPTI_DRIVER_TRACE_CBID_cuNNSetAllocator = 466,
|
| 480 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPrefetchAsync = 467,
|
| 481 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPrefetchAsync_ptsz = 468,
|
| 482 |
+
CUPTI_DRIVER_TRACE_CBID_cuEventCreateFromNVNSync = 469,
|
| 483 |
+
CUPTI_DRIVER_TRACE_CBID_cuEGLStreamConsumerConnectWithFlags = 470,
|
| 484 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemRangeGetAttribute = 471,
|
| 485 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemRangeGetAttributes = 472,
|
| 486 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWaitValue64 = 473,
|
| 487 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWaitValue64_ptsz = 474,
|
| 488 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWriteValue64 = 475,
|
| 489 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWriteValue64_ptsz = 476,
|
| 490 |
+
CUPTI_DRIVER_TRACE_CBID_cuLaunchCooperativeKernel = 477,
|
| 491 |
+
CUPTI_DRIVER_TRACE_CBID_cuLaunchCooperativeKernel_ptsz = 478,
|
| 492 |
+
CUPTI_DRIVER_TRACE_CBID_cuEventCreateFromEGLSync = 479,
|
| 493 |
+
CUPTI_DRIVER_TRACE_CBID_cuLaunchCooperativeKernelMultiDevice = 480,
|
| 494 |
+
CUPTI_DRIVER_TRACE_CBID_cuFuncSetAttribute = 481,
|
| 495 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetUuid = 482,
|
| 496 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetCtx = 483,
|
| 497 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetCtx_ptsz = 484,
|
| 498 |
+
CUPTI_DRIVER_TRACE_CBID_cuImportExternalMemory = 485,
|
| 499 |
+
CUPTI_DRIVER_TRACE_CBID_cuExternalMemoryGetMappedBuffer = 486,
|
| 500 |
+
CUPTI_DRIVER_TRACE_CBID_cuExternalMemoryGetMappedMipmappedArray = 487,
|
| 501 |
+
CUPTI_DRIVER_TRACE_CBID_cuDestroyExternalMemory = 488,
|
| 502 |
+
CUPTI_DRIVER_TRACE_CBID_cuImportExternalSemaphore = 489,
|
| 503 |
+
CUPTI_DRIVER_TRACE_CBID_cuSignalExternalSemaphoresAsync = 490,
|
| 504 |
+
CUPTI_DRIVER_TRACE_CBID_cuSignalExternalSemaphoresAsync_ptsz = 491,
|
| 505 |
+
CUPTI_DRIVER_TRACE_CBID_cuWaitExternalSemaphoresAsync = 492,
|
| 506 |
+
CUPTI_DRIVER_TRACE_CBID_cuWaitExternalSemaphoresAsync_ptsz = 493,
|
| 507 |
+
CUPTI_DRIVER_TRACE_CBID_cuDestroyExternalSemaphore = 494,
|
| 508 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamBeginCapture = 495,
|
| 509 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamBeginCapture_ptsz = 496,
|
| 510 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamEndCapture = 497,
|
| 511 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamEndCapture_ptsz = 498,
|
| 512 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamIsCapturing = 499,
|
| 513 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamIsCapturing_ptsz = 500,
|
| 514 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphCreate = 501,
|
| 515 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddKernelNode = 502,
|
| 516 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphKernelNodeGetParams = 503,
|
| 517 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddMemcpyNode = 504,
|
| 518 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphMemcpyNodeGetParams = 505,
|
| 519 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddMemsetNode = 506,
|
| 520 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphMemsetNodeGetParams = 507,
|
| 521 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphMemsetNodeSetParams = 508,
|
| 522 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphNodeGetType = 509,
|
| 523 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphGetRootNodes = 510,
|
| 524 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphNodeGetDependencies = 511,
|
| 525 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphNodeGetDependentNodes = 512,
|
| 526 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphInstantiate = 513,
|
| 527 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphLaunch = 514,
|
| 528 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphLaunch_ptsz = 515,
|
| 529 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecDestroy = 516,
|
| 530 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphDestroy = 517,
|
| 531 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddDependencies = 518,
|
| 532 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphRemoveDependencies = 519,
|
| 533 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphMemcpyNodeSetParams = 520,
|
| 534 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphKernelNodeSetParams = 521,
|
| 535 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphDestroyNode = 522,
|
| 536 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphClone = 523,
|
| 537 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphNodeFindInClone = 524,
|
| 538 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddChildGraphNode = 525,
|
| 539 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddEmptyNode = 526,
|
| 540 |
+
CUPTI_DRIVER_TRACE_CBID_cuLaunchHostFunc = 527,
|
| 541 |
+
CUPTI_DRIVER_TRACE_CBID_cuLaunchHostFunc_ptsz = 528,
|
| 542 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphChildGraphNodeGetGraph = 529,
|
| 543 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddHostNode = 530,
|
| 544 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphHostNodeGetParams = 531,
|
| 545 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetLuid = 532,
|
| 546 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphHostNodeSetParams = 533,
|
| 547 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphGetNodes = 534,
|
| 548 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphGetEdges = 535,
|
| 549 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetCaptureInfo = 536,
|
| 550 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetCaptureInfo_ptsz = 537,
|
| 551 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecKernelNodeSetParams = 538,
|
| 552 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamBeginCapture_v2 = 539,
|
| 553 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamBeginCapture_v2_ptsz = 540,
|
| 554 |
+
CUPTI_DRIVER_TRACE_CBID_cuThreadExchangeStreamCaptureMode = 541,
|
| 555 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetNvSciSyncAttributes = 542,
|
| 556 |
+
CUPTI_DRIVER_TRACE_CBID_cuOccupancyAvailableDynamicSMemPerBlock = 543,
|
| 557 |
+
CUPTI_DRIVER_TRACE_CBID_cuDevicePrimaryCtxRelease_v2 = 544,
|
| 558 |
+
CUPTI_DRIVER_TRACE_CBID_cuDevicePrimaryCtxReset_v2 = 545,
|
| 559 |
+
CUPTI_DRIVER_TRACE_CBID_cuDevicePrimaryCtxSetFlags_v2 = 546,
|
| 560 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAddressReserve = 547,
|
| 561 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAddressFree = 548,
|
| 562 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemCreate = 549,
|
| 563 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemRelease = 550,
|
| 564 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemMap = 551,
|
| 565 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemUnmap = 552,
|
| 566 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemSetAccess = 553,
|
| 567 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemExportToShareableHandle = 554,
|
| 568 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemImportFromShareableHandle = 555,
|
| 569 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemGetAllocationGranularity = 556,
|
| 570 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemGetAllocationPropertiesFromHandle = 557,
|
| 571 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemGetAccess = 558,
|
| 572 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamSetFlags = 559,
|
| 573 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamSetFlags_ptsz = 560,
|
| 574 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecUpdate = 561,
|
| 575 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecMemcpyNodeSetParams = 562,
|
| 576 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecMemsetNodeSetParams = 563,
|
| 577 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecHostNodeSetParams = 564,
|
| 578 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemRetainAllocationHandle = 565,
|
| 579 |
+
CUPTI_DRIVER_TRACE_CBID_cuFuncGetModule = 566,
|
| 580 |
+
CUPTI_DRIVER_TRACE_CBID_cuIpcOpenMemHandle_v2 = 567,
|
| 581 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxResetPersistingL2Cache = 568,
|
| 582 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphKernelNodeCopyAttributes = 569,
|
| 583 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphKernelNodeGetAttribute = 570,
|
| 584 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphKernelNodeSetAttribute = 571,
|
| 585 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamCopyAttributes = 572,
|
| 586 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamCopyAttributes_ptsz = 573,
|
| 587 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetAttribute = 574,
|
| 588 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetAttribute_ptsz = 575,
|
| 589 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamSetAttribute = 576,
|
| 590 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamSetAttribute_ptsz = 577,
|
| 591 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphInstantiate_v2 = 578,
|
| 592 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetTexture1DLinearMaxWidth = 579,
|
| 593 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphUpload = 580,
|
| 594 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphUpload_ptsz = 581,
|
| 595 |
+
CUPTI_DRIVER_TRACE_CBID_cuArrayGetSparseProperties = 582,
|
| 596 |
+
CUPTI_DRIVER_TRACE_CBID_cuMipmappedArrayGetSparseProperties = 583,
|
| 597 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemMapArrayAsync = 584,
|
| 598 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemMapArrayAsync_ptsz = 585,
|
| 599 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecChildGraphNodeSetParams = 586,
|
| 600 |
+
CUPTI_DRIVER_TRACE_CBID_cuEventRecordWithFlags = 587,
|
| 601 |
+
CUPTI_DRIVER_TRACE_CBID_cuEventRecordWithFlags_ptsz = 588,
|
| 602 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddEventRecordNode = 589,
|
| 603 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddEventWaitNode = 590,
|
| 604 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphEventRecordNodeGetEvent = 591,
|
| 605 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphEventWaitNodeGetEvent = 592,
|
| 606 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphEventRecordNodeSetEvent = 593,
|
| 607 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphEventWaitNodeSetEvent = 594,
|
| 608 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecEventRecordNodeSetEvent = 595,
|
| 609 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecEventWaitNodeSetEvent = 596,
|
| 610 |
+
CUPTI_DRIVER_TRACE_CBID_cuArrayGetPlane = 597,
|
| 611 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAllocAsync = 598,
|
| 612 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAllocAsync_ptsz = 599,
|
| 613 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemFreeAsync = 600,
|
| 614 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemFreeAsync_ptsz = 601,
|
| 615 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPoolTrimTo = 602,
|
| 616 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPoolSetAttribute = 603,
|
| 617 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPoolGetAttribute = 604,
|
| 618 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPoolSetAccess = 605,
|
| 619 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetDefaultMemPool = 606,
|
| 620 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPoolCreate = 607,
|
| 621 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPoolDestroy = 608,
|
| 622 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceSetMemPool = 609,
|
| 623 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetMemPool = 610,
|
| 624 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAllocFromPoolAsync = 611,
|
| 625 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAllocFromPoolAsync_ptsz = 612,
|
| 626 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPoolExportToShareableHandle = 613,
|
| 627 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPoolImportFromShareableHandle = 614,
|
| 628 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPoolExportPointer = 615,
|
| 629 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPoolImportPointer = 616,
|
| 630 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPoolGetAccess = 617,
|
| 631 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddExternalSemaphoresSignalNode = 618,
|
| 632 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExternalSemaphoresSignalNodeGetParams = 619,
|
| 633 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExternalSemaphoresSignalNodeSetParams = 620,
|
| 634 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddExternalSemaphoresWaitNode = 621,
|
| 635 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExternalSemaphoresWaitNodeGetParams = 622,
|
| 636 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExternalSemaphoresWaitNodeSetParams = 623,
|
| 637 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecExternalSemaphoresSignalNodeSetParams = 624,
|
| 638 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecExternalSemaphoresWaitNodeSetParams = 625,
|
| 639 |
+
CUPTI_DRIVER_TRACE_CBID_cuGetProcAddress = 626,
|
| 640 |
+
CUPTI_DRIVER_TRACE_CBID_cuFlushGPUDirectRDMAWrites = 627,
|
| 641 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphDebugDotPrint = 628,
|
| 642 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetCaptureInfo_v2 = 629,
|
| 643 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetCaptureInfo_v2_ptsz = 630,
|
| 644 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamUpdateCaptureDependencies = 631,
|
| 645 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamUpdateCaptureDependencies_ptsz = 632,
|
| 646 |
+
CUPTI_DRIVER_TRACE_CBID_cuUserObjectCreate = 633,
|
| 647 |
+
CUPTI_DRIVER_TRACE_CBID_cuUserObjectRetain = 634,
|
| 648 |
+
CUPTI_DRIVER_TRACE_CBID_cuUserObjectRelease = 635,
|
| 649 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphRetainUserObject = 636,
|
| 650 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphReleaseUserObject = 637,
|
| 651 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddMemAllocNode = 638,
|
| 652 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddMemFreeNode = 639,
|
| 653 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGraphMemTrim = 640,
|
| 654 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetGraphMemAttribute = 641,
|
| 655 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceSetGraphMemAttribute = 642,
|
| 656 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphInstantiateWithFlags = 643,
|
| 657 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetExecAffinitySupport = 644,
|
| 658 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxCreate_v3 = 645,
|
| 659 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxGetExecAffinity = 646,
|
| 660 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetUuid_v2 = 647,
|
| 661 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphMemAllocNodeGetParams = 648,
|
| 662 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphMemFreeNodeGetParams = 649,
|
| 663 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphNodeSetEnabled = 650,
|
| 664 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphNodeGetEnabled = 651,
|
| 665 |
+
CUPTI_DRIVER_TRACE_CBID_cuLaunchKernelEx = 652,
|
| 666 |
+
CUPTI_DRIVER_TRACE_CBID_cuLaunchKernelEx_ptsz = 653,
|
| 667 |
+
CUPTI_DRIVER_TRACE_CBID_cuArrayGetMemoryRequirements = 654,
|
| 668 |
+
CUPTI_DRIVER_TRACE_CBID_cuMipmappedArrayGetMemoryRequirements = 655,
|
| 669 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphInstantiateWithParams = 656,
|
| 670 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphInstantiateWithParams_ptsz = 657,
|
| 671 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecGetFlags = 658,
|
| 672 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWaitValue32_v2 = 659,
|
| 673 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWaitValue32_v2_ptsz = 660,
|
| 674 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWaitValue64_v2 = 661,
|
| 675 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWaitValue64_v2_ptsz = 662,
|
| 676 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWriteValue32_v2 = 663,
|
| 677 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWriteValue32_v2_ptsz = 664,
|
| 678 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWriteValue64_v2 = 665,
|
| 679 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamWriteValue64_v2_ptsz = 666,
|
| 680 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamBatchMemOp_v2 = 667,
|
| 681 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamBatchMemOp_v2_ptsz = 668,
|
| 682 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddBatchMemOpNode = 669,
|
| 683 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphBatchMemOpNodeGetParams = 670,
|
| 684 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphBatchMemOpNodeSetParams = 671,
|
| 685 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecBatchMemOpNodeSetParams = 672,
|
| 686 |
+
CUPTI_DRIVER_TRACE_CBID_cuModuleGetLoadingMode = 673,
|
| 687 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemGetHandleForAddressRange = 674,
|
| 688 |
+
CUPTI_DRIVER_TRACE_CBID_cuOccupancyMaxPotentialClusterSize = 675,
|
| 689 |
+
CUPTI_DRIVER_TRACE_CBID_cuOccupancyMaxActiveClusters = 676,
|
| 690 |
+
CUPTI_DRIVER_TRACE_CBID_cuGetProcAddress_v2 = 677,
|
| 691 |
+
CUPTI_DRIVER_TRACE_CBID_cuLibraryLoadData = 678,
|
| 692 |
+
CUPTI_DRIVER_TRACE_CBID_cuLibraryLoadFromFile = 679,
|
| 693 |
+
CUPTI_DRIVER_TRACE_CBID_cuLibraryUnload = 680,
|
| 694 |
+
CUPTI_DRIVER_TRACE_CBID_cuLibraryGetKernel = 681,
|
| 695 |
+
CUPTI_DRIVER_TRACE_CBID_cuLibraryGetModule = 682,
|
| 696 |
+
CUPTI_DRIVER_TRACE_CBID_cuKernelGetFunction = 683,
|
| 697 |
+
CUPTI_DRIVER_TRACE_CBID_cuLibraryGetGlobal = 684,
|
| 698 |
+
CUPTI_DRIVER_TRACE_CBID_cuLibraryGetManaged = 685,
|
| 699 |
+
CUPTI_DRIVER_TRACE_CBID_cuKernelGetAttribute = 686,
|
| 700 |
+
CUPTI_DRIVER_TRACE_CBID_cuKernelSetAttribute = 687,
|
| 701 |
+
CUPTI_DRIVER_TRACE_CBID_cuKernelSetCacheConfig = 688,
|
| 702 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddKernelNode_v2 = 689,
|
| 703 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphKernelNodeGetParams_v2 = 690,
|
| 704 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphKernelNodeSetParams_v2 = 691,
|
| 705 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecKernelNodeSetParams_v2 = 692,
|
| 706 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetId = 693,
|
| 707 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetId_ptsz = 694,
|
| 708 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxGetId = 695,
|
| 709 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecUpdate_v2 = 696,
|
| 710 |
+
CUPTI_DRIVER_TRACE_CBID_cuTensorMapEncodeTiled = 697,
|
| 711 |
+
CUPTI_DRIVER_TRACE_CBID_cuTensorMapEncodeIm2col = 698,
|
| 712 |
+
CUPTI_DRIVER_TRACE_CBID_cuTensorMapReplaceAddress = 699,
|
| 713 |
+
CUPTI_DRIVER_TRACE_CBID_cuLibraryGetUnifiedFunction = 700,
|
| 714 |
+
CUPTI_DRIVER_TRACE_CBID_cuCoredumpGetAttribute = 701,
|
| 715 |
+
CUPTI_DRIVER_TRACE_CBID_cuCoredumpGetAttributeGlobal = 702,
|
| 716 |
+
CUPTI_DRIVER_TRACE_CBID_cuCoredumpSetAttribute = 703,
|
| 717 |
+
CUPTI_DRIVER_TRACE_CBID_cuCoredumpSetAttributeGlobal = 704,
|
| 718 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxSetFlags = 705,
|
| 719 |
+
CUPTI_DRIVER_TRACE_CBID_cuMulticastCreate = 706,
|
| 720 |
+
CUPTI_DRIVER_TRACE_CBID_cuMulticastAddDevice = 707,
|
| 721 |
+
CUPTI_DRIVER_TRACE_CBID_cuMulticastBindMem = 708,
|
| 722 |
+
CUPTI_DRIVER_TRACE_CBID_cuMulticastBindAddr = 709,
|
| 723 |
+
CUPTI_DRIVER_TRACE_CBID_cuMulticastUnbind = 710,
|
| 724 |
+
CUPTI_DRIVER_TRACE_CBID_cuMulticastGetGranularity = 711,
|
| 725 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddNode = 712,
|
| 726 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphNodeSetParams = 713,
|
| 727 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphExecNodeSetParams = 714,
|
| 728 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemAdvise_v2 = 715,
|
| 729 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPrefetchAsync_v2 = 716,
|
| 730 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemPrefetchAsync_v2_ptsz = 717,
|
| 731 |
+
CUPTI_DRIVER_TRACE_CBID_cuFuncGetName = 718,
|
| 732 |
+
CUPTI_DRIVER_TRACE_CBID_cuKernelGetName = 719,
|
| 733 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamBeginCaptureToGraph = 720,
|
| 734 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamBeginCaptureToGraph_ptsz = 721,
|
| 735 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphConditionalHandleCreate = 722,
|
| 736 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddNode_v2 = 723,
|
| 737 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphGetEdges_v2 = 724,
|
| 738 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphNodeGetDependencies_v2 = 725,
|
| 739 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphNodeGetDependentNodes_v2 = 726,
|
| 740 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphAddDependencies_v2 = 727,
|
| 741 |
+
CUPTI_DRIVER_TRACE_CBID_cuGraphRemoveDependencies_v2 = 728,
|
| 742 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetCaptureInfo_v3 = 729,
|
| 743 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetCaptureInfo_v3_ptsz = 730,
|
| 744 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamUpdateCaptureDependencies_v2 = 731,
|
| 745 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamUpdateCaptureDependencies_v2_ptsz = 732,
|
| 746 |
+
CUPTI_DRIVER_TRACE_CBID_cuFuncGetParamInfo = 733,
|
| 747 |
+
CUPTI_DRIVER_TRACE_CBID_cuKernelGetParamInfo = 734,
|
| 748 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceRegisterAsyncNotification = 735,
|
| 749 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceUnregisterAsyncNotification = 736,
|
| 750 |
+
CUPTI_DRIVER_TRACE_CBID_cuModuleGetFunctionCount = 737,
|
| 751 |
+
CUPTI_DRIVER_TRACE_CBID_cuModuleEnumerateFunctions = 738,
|
| 752 |
+
CUPTI_DRIVER_TRACE_CBID_cuLibraryGetKernelCount = 739,
|
| 753 |
+
CUPTI_DRIVER_TRACE_CBID_cuLibraryEnumerateKernels = 740,
|
| 754 |
+
CUPTI_DRIVER_TRACE_CBID_cuFuncIsLoaded = 741,
|
| 755 |
+
CUPTI_DRIVER_TRACE_CBID_cuFuncLoad = 742,
|
| 756 |
+
CUPTI_DRIVER_TRACE_CBID_cuGreenCtxCreate = 743,
|
| 757 |
+
CUPTI_DRIVER_TRACE_CBID_cuGreenCtxDestroy = 744,
|
| 758 |
+
CUPTI_DRIVER_TRACE_CBID_cuDeviceGetDevResource = 745,
|
| 759 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxGetDevResource = 746,
|
| 760 |
+
CUPTI_DRIVER_TRACE_CBID_cuGreenCtxGetDevResource = 747,
|
| 761 |
+
CUPTI_DRIVER_TRACE_CBID_cuDevResourceGenerateDesc = 748,
|
| 762 |
+
CUPTI_DRIVER_TRACE_CBID_cuGreenCtxRecordEvent = 749,
|
| 763 |
+
CUPTI_DRIVER_TRACE_CBID_cuGreenCtxWaitEvent = 750,
|
| 764 |
+
CUPTI_DRIVER_TRACE_CBID_cuDevSmResourceSplitByCount = 751,
|
| 765 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetGreenCtx = 752,
|
| 766 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxFromGreenCtx = 753,
|
| 767 |
+
CUPTI_DRIVER_TRACE_CBID_cuKernelGetLibrary = 754,
|
| 768 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxRecordEvent = 755,
|
| 769 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxWaitEvent = 756,
|
| 770 |
+
CUPTI_DRIVER_TRACE_CBID_cuCtxCreate_v4 = 757,
|
| 771 |
+
CUPTI_DRIVER_TRACE_CBID_cuGreenCtxStreamCreate = 758,
|
| 772 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetCtx_v2 = 759,
|
| 773 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetCtx_v2_ptsz = 760,
|
| 774 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemBatchDecompressAsync = 761,
|
| 775 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemBatchDecompressAsync_ptsz = 762,
|
| 776 |
+
CUPTI_DRIVER_TRACE_CBID_cuLogsRegisterCallback = 763,
|
| 777 |
+
CUPTI_DRIVER_TRACE_CBID_cuLogsUnregisterCallback = 764,
|
| 778 |
+
CUPTI_DRIVER_TRACE_CBID_cuLogsCurrent = 765,
|
| 779 |
+
CUPTI_DRIVER_TRACE_CBID_cuLogsDumpToFile = 766,
|
| 780 |
+
CUPTI_DRIVER_TRACE_CBID_cuLogsDumpToMemory = 767,
|
| 781 |
+
CUPTI_DRIVER_TRACE_CBID_cuCheckpointProcessGetRestoreThreadId = 768,
|
| 782 |
+
CUPTI_DRIVER_TRACE_CBID_cuCheckpointProcessGetState = 769,
|
| 783 |
+
CUPTI_DRIVER_TRACE_CBID_cuCheckpointProcessLock = 770,
|
| 784 |
+
CUPTI_DRIVER_TRACE_CBID_cuCheckpointProcessCheckpoint = 771,
|
| 785 |
+
CUPTI_DRIVER_TRACE_CBID_cuCheckpointProcessRestore = 772,
|
| 786 |
+
CUPTI_DRIVER_TRACE_CBID_cuCheckpointProcessUnlock = 773,
|
| 787 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetDevice = 774,
|
| 788 |
+
CUPTI_DRIVER_TRACE_CBID_cuStreamGetDevice_ptsz = 775,
|
| 789 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyBatchAsync = 776,
|
| 790 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpyBatchAsync_ptsz = 777,
|
| 791 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy3DBatchAsync = 778,
|
| 792 |
+
CUPTI_DRIVER_TRACE_CBID_cuMemcpy3DBatchAsync_ptsz = 779,
|
| 793 |
+
CUPTI_DRIVER_TRACE_CBID_cuEventElapsedTime_v2 = 780,
|
| 794 |
+
CUPTI_DRIVER_TRACE_CBID_cuTensorMapEncodeIm2colWide = 781,
|
| 795 |
+
CUPTI_DRIVER_TRACE_CBID_SIZE = 782,
|
| 796 |
+
CUPTI_DRIVER_TRACE_CBID_FORCE_INT = 0x7fffffff
|
| 797 |
+
} CUpti_driver_api_trace_cbid;
|
| 798 |
+
|
| 799 |
+
#endif
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/generated_cuda_gl_interop_meta.h
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// This file is generated. Any changes you make will be lost during the next clean build.
|
| 2 |
+
|
| 3 |
+
// CUDA public interface, for type definitions and api function prototypes
|
| 4 |
+
#include "cuda_gl_interop.h"
|
| 5 |
+
|
| 6 |
+
// *************************************************************************
|
| 7 |
+
// Definitions of structs to hold parameters for each function
|
| 8 |
+
// *************************************************************************
|
| 9 |
+
|
| 10 |
+
// Currently used parameter trace structures
|
| 11 |
+
typedef struct cudaGLGetDevices_v4010_params_st {
|
| 12 |
+
unsigned int *pCudaDeviceCount;
|
| 13 |
+
int *pCudaDevices;
|
| 14 |
+
unsigned int cudaDeviceCount;
|
| 15 |
+
enum cudaGLDeviceList deviceList;
|
| 16 |
+
} cudaGLGetDevices_v4010_params;
|
| 17 |
+
|
| 18 |
+
typedef struct cudaGraphicsGLRegisterImage_v3020_params_st {
|
| 19 |
+
struct cudaGraphicsResource **resource;
|
| 20 |
+
GLuint image;
|
| 21 |
+
GLenum target;
|
| 22 |
+
unsigned int flags;
|
| 23 |
+
} cudaGraphicsGLRegisterImage_v3020_params;
|
| 24 |
+
|
| 25 |
+
typedef struct cudaGraphicsGLRegisterBuffer_v3020_params_st {
|
| 26 |
+
struct cudaGraphicsResource **resource;
|
| 27 |
+
GLuint buffer;
|
| 28 |
+
unsigned int flags;
|
| 29 |
+
} cudaGraphicsGLRegisterBuffer_v3020_params;
|
| 30 |
+
|
| 31 |
+
typedef struct cudaGLSetGLDevice_v3020_params_st {
|
| 32 |
+
int device;
|
| 33 |
+
} cudaGLSetGLDevice_v3020_params;
|
| 34 |
+
|
| 35 |
+
typedef struct cudaGLRegisterBufferObject_v3020_params_st {
|
| 36 |
+
GLuint bufObj;
|
| 37 |
+
} cudaGLRegisterBufferObject_v3020_params;
|
| 38 |
+
|
| 39 |
+
typedef struct cudaGLMapBufferObject_v3020_params_st {
|
| 40 |
+
void **devPtr;
|
| 41 |
+
GLuint bufObj;
|
| 42 |
+
} cudaGLMapBufferObject_v3020_params;
|
| 43 |
+
|
| 44 |
+
typedef struct cudaGLUnmapBufferObject_v3020_params_st {
|
| 45 |
+
GLuint bufObj;
|
| 46 |
+
} cudaGLUnmapBufferObject_v3020_params;
|
| 47 |
+
|
| 48 |
+
typedef struct cudaGLUnregisterBufferObject_v3020_params_st {
|
| 49 |
+
GLuint bufObj;
|
| 50 |
+
} cudaGLUnregisterBufferObject_v3020_params;
|
| 51 |
+
|
| 52 |
+
typedef struct cudaGLSetBufferObjectMapFlags_v3020_params_st {
|
| 53 |
+
GLuint bufObj;
|
| 54 |
+
unsigned int flags;
|
| 55 |
+
} cudaGLSetBufferObjectMapFlags_v3020_params;
|
| 56 |
+
|
| 57 |
+
typedef struct cudaGLMapBufferObjectAsync_v3020_params_st {
|
| 58 |
+
void **devPtr;
|
| 59 |
+
GLuint bufObj;
|
| 60 |
+
cudaStream_t stream;
|
| 61 |
+
} cudaGLMapBufferObjectAsync_v3020_params;
|
| 62 |
+
|
| 63 |
+
typedef struct cudaGLUnmapBufferObjectAsync_v3020_params_st {
|
| 64 |
+
GLuint bufObj;
|
| 65 |
+
cudaStream_t stream;
|
| 66 |
+
} cudaGLUnmapBufferObjectAsync_v3020_params;
|
| 67 |
+
|
| 68 |
+
// Parameter trace structures for removed functions
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
// End of parameter trace structures
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/nvfunctional
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2014-2018 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 52 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_NV_LIBCXX_FUNCTIONAL_H_WRAPPER__
|
| 53 |
+
#endif
|
| 54 |
+
|
| 55 |
+
#include "crt/nvfunctional"
|
| 56 |
+
|
| 57 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_NV_LIBCXX_FUNCTIONAL_H_WRAPPER__)
|
| 58 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 59 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_NV_LIBCXX_FUNCTIONAL_H_WRAPPER__
|
| 60 |
+
#endif
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/sm_20_intrinsics.h
ADDED
|
@@ -0,0 +1,1156 @@
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2021 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
//NOTE: For NVRTC, these declarations have been moved into the compiler (to reduce compile time)
|
| 51 |
+
#define EXCLUDE_FROM_RTC
|
| 52 |
+
|
| 53 |
+
#if !defined(__SM_20_INTRINSICS_H__)
|
| 54 |
+
#define __SM_20_INTRINSICS_H__
|
| 55 |
+
|
| 56 |
+
#if defined(__CUDACC_RTC__)
|
| 57 |
+
#define __SM_20_INTRINSICS_DECL__ __device__
|
| 58 |
+
#define __COMMON_INTRINSICS_DECL__ __device__
|
| 59 |
+
#else /* __CUDACC_RTC__ */
|
| 60 |
+
#define __SM_20_INTRINSICS_DECL__ static __inline__ __device__
|
| 61 |
+
#define __COMMON_INTRINSICS_DECL__ static __inline__ __host__ __device__
|
| 62 |
+
#endif /* __CUDACC_RTC__ */
|
| 63 |
+
|
| 64 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 65 |
+
|
| 66 |
+
/*******************************************************************************
|
| 67 |
+
* *
|
| 68 |
+
* *
|
| 69 |
+
* *
|
| 70 |
+
*******************************************************************************/
|
| 71 |
+
|
| 72 |
+
#include "cuda_runtime_api.h"
|
| 73 |
+
|
| 74 |
+
#if !defined(__CUDA_ARCH__) && !defined(_NVHPC_CUDA)
|
| 75 |
+
#define __DEF_IF_HOST { }
|
| 76 |
+
#else /* !__CUDA_ARCH__ && !_NVHPC_CUDA */
|
| 77 |
+
#define __DEF_IF_HOST ;
|
| 78 |
+
#endif /* __CUDA_ARCH__ || _NVHPC_CUDA */
|
| 79 |
+
|
| 80 |
+
#if defined(_WIN32)
|
| 81 |
+
# define __DEPRECATED__(msg) __declspec(deprecated(msg))
|
| 82 |
+
#elif (defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5 && !defined(__clang__))))
|
| 83 |
+
# define __DEPRECATED__(msg) __attribute__((deprecated))
|
| 84 |
+
#else
|
| 85 |
+
# define __DEPRECATED__(msg) __attribute__((deprecated(msg)))
|
| 86 |
+
#endif
|
| 87 |
+
|
| 88 |
+
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 700
|
| 89 |
+
#define __WSB_DEPRECATION_MESSAGE(x) #x"() is not valid on compute_70 and above, and should be replaced with "#x"_sync()."\
|
| 90 |
+
"To continue using "#x"(), specify virtual architecture compute_60 when targeting sm_70 and above, for example, using the pair of compiler options: -arch=compute_60 -code=sm_70."
|
| 91 |
+
#elif defined(_NVHPC_CUDA)
|
| 92 |
+
#define __WSB_DEPRECATION_MESSAGE(x) #x"() is not valid on cc70 and above, and should be replaced with "#x"_sync()."
|
| 93 |
+
#else
|
| 94 |
+
#define __WSB_DEPRECATION_MESSAGE(x) #x"() is deprecated in favor of "#x"_sync() and may be removed in a future release (Use -Wno-deprecated-declarations to suppress this warning)."
|
| 95 |
+
#endif
|
| 96 |
+
|
| 97 |
+
extern "C"
|
| 98 |
+
{
|
| 99 |
+
extern __device__ __device_builtin__ void __threadfence_system(void);
|
| 100 |
+
/**
|
| 101 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 102 |
+
* \brief Divide two floating-point values in round-to-nearest-even mode.
|
| 103 |
+
*
|
| 104 |
+
* Divides two floating-point values \p x by \p y in round-to-nearest-even mode.
|
| 105 |
+
*
|
| 106 |
+
* \return Returns \p x / \p y.
|
| 107 |
+
* - sign of the quotient \p x / \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
|
| 108 |
+
* - __ddiv_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns NaN.
|
| 109 |
+
* - __ddiv_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 110 |
+
* - __ddiv_rn(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p x.
|
| 111 |
+
* - __ddiv_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for finite \p y.
|
| 112 |
+
* - __ddiv_rn(\p x, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 113 |
+
* - __ddiv_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for \p y \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 114 |
+
* - If either argument is NaN, NaN is returned.
|
| 115 |
+
*
|
| 116 |
+
* \note_accuracy_double_intrinsic
|
| 117 |
+
* \note_requires_fermi
|
| 118 |
+
*/
|
| 119 |
+
extern __device__ __device_builtin__ double __ddiv_rn(double x, double y);
|
| 120 |
+
/**
|
| 121 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 122 |
+
* \brief Divide two floating-point values in round-towards-zero mode.
|
| 123 |
+
*
|
| 124 |
+
* Divides two floating-point values \p x by \p y in round-towards-zero mode.
|
| 125 |
+
*
|
| 126 |
+
* \return Returns \p x / \p y.
|
| 127 |
+
* - sign of the quotient \p x / \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
|
| 128 |
+
* - __ddiv_rz(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns NaN.
|
| 129 |
+
* - __ddiv_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 130 |
+
* - __ddiv_rz(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p x.
|
| 131 |
+
* - __ddiv_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for finite \p y.
|
| 132 |
+
* - __ddiv_rz(\p x, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 133 |
+
* - __ddiv_rz(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for \p y \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 134 |
+
* - If either argument is NaN, NaN is returned.
|
| 135 |
+
*
|
| 136 |
+
* \note_accuracy_double_intrinsic
|
| 137 |
+
* \note_requires_fermi
|
| 138 |
+
*/
|
| 139 |
+
extern __device__ __device_builtin__ double __ddiv_rz(double x, double y);
|
| 140 |
+
/**
|
| 141 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 142 |
+
* \brief Divide two floating-point values in round-up mode.
|
| 143 |
+
*
|
| 144 |
+
* Divides two floating-point values \p x by \p y in round-up (to positive infinity) mode.
|
| 145 |
+
*
|
| 146 |
+
* \return Returns \p x / \p y.
|
| 147 |
+
* - sign of the quotient \p x / \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
|
| 148 |
+
* - __ddiv_ru(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns NaN.
|
| 149 |
+
* - __ddiv_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 150 |
+
* - __ddiv_ru(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p x.
|
| 151 |
+
* - __ddiv_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for finite \p y.
|
| 152 |
+
* - __ddiv_ru(\p x, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 153 |
+
* - __ddiv_ru(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for \p y \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 154 |
+
* - If either argument is NaN, NaN is returned.
|
| 155 |
+
*
|
| 156 |
+
* \note_accuracy_double_intrinsic
|
| 157 |
+
* \note_requires_fermi
|
| 158 |
+
*/
|
| 159 |
+
extern __device__ __device_builtin__ double __ddiv_ru(double x, double y);
|
| 160 |
+
/**
|
| 161 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 162 |
+
* \brief Divide two floating-point values in round-down mode.
|
| 163 |
+
*
|
| 164 |
+
* Divides two floating-point values \p x by \p y in round-down (to negative infinity) mode.
|
| 165 |
+
*
|
| 166 |
+
* \return Returns \p x / \p y.
|
| 167 |
+
* - sign of the quotient \p x / \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
|
| 168 |
+
* - __ddiv_rd(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns NaN.
|
| 169 |
+
* - __ddiv_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 170 |
+
* - __ddiv_rd(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p x.
|
| 171 |
+
* - __ddiv_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for finite \p y.
|
| 172 |
+
* - __ddiv_rd(\p x, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 173 |
+
* - __ddiv_rd(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for \p y \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 174 |
+
* - If either argument is NaN, NaN is returned.
|
| 175 |
+
*
|
| 176 |
+
* \note_accuracy_double_intrinsic
|
| 177 |
+
* \note_requires_fermi
|
| 178 |
+
*/
|
| 179 |
+
extern __device__ __device_builtin__ double __ddiv_rd(double x, double y);
|
| 180 |
+
/**
|
| 181 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 182 |
+
* \brief Compute
|
| 183 |
+
* \cuda_math_formula \frac{1}{x} \end_cuda_math_formula
|
| 184 |
+
* in round-to-nearest-even mode.
|
| 185 |
+
*
|
| 186 |
+
* Compute the reciprocal of \p x in round-to-nearest-even mode.
|
| 187 |
+
*
|
| 188 |
+
* \return Returns
|
| 189 |
+
* \cuda_math_formula \frac{1}{x} \end_cuda_math_formula.
|
| 190 |
+
*
|
| 191 |
+
* \note_accuracy_double_intrinsic
|
| 192 |
+
* \note_requires_fermi
|
| 193 |
+
*/
|
| 194 |
+
extern __device__ __device_builtin__ double __drcp_rn(double x);
|
| 195 |
+
/**
|
| 196 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 197 |
+
* \brief Compute
|
| 198 |
+
* \cuda_math_formula \frac{1}{x} \end_cuda_math_formula
|
| 199 |
+
* in round-towards-zero mode.
|
| 200 |
+
*
|
| 201 |
+
* Compute the reciprocal of \p x in round-towards-zero mode.
|
| 202 |
+
*
|
| 203 |
+
* \return Returns
|
| 204 |
+
* \cuda_math_formula \frac{1}{x} \end_cuda_math_formula.
|
| 205 |
+
*
|
| 206 |
+
* \note_accuracy_double_intrinsic
|
| 207 |
+
* \note_requires_fermi
|
| 208 |
+
*/
|
| 209 |
+
extern __device__ __device_builtin__ double __drcp_rz(double x);
|
| 210 |
+
/**
|
| 211 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 212 |
+
* \brief Compute
|
| 213 |
+
* \cuda_math_formula \frac{1}{x} \end_cuda_math_formula
|
| 214 |
+
* in round-up mode.
|
| 215 |
+
*
|
| 216 |
+
* Compute the reciprocal of \p x in round-up (to positive infinity) mode.
|
| 217 |
+
*
|
| 218 |
+
* \return Returns
|
| 219 |
+
* \cuda_math_formula \frac{1}{x} \end_cuda_math_formula.
|
| 220 |
+
*
|
| 221 |
+
* \note_accuracy_double_intrinsic
|
| 222 |
+
* \note_requires_fermi
|
| 223 |
+
*/
|
| 224 |
+
extern __device__ __device_builtin__ double __drcp_ru(double x);
|
| 225 |
+
/**
|
| 226 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 227 |
+
* \brief Compute
|
| 228 |
+
* \cuda_math_formula \frac{1}{x} \end_cuda_math_formula
|
| 229 |
+
* in round-down mode.
|
| 230 |
+
*
|
| 231 |
+
* Compute the reciprocal of \p x in round-down (to negative infinity) mode.
|
| 232 |
+
*
|
| 233 |
+
* \return Returns
|
| 234 |
+
* \cuda_math_formula \frac{1}{x} \end_cuda_math_formula.
|
| 235 |
+
*
|
| 236 |
+
* \note_accuracy_double_intrinsic
|
| 237 |
+
* \note_requires_fermi
|
| 238 |
+
*/
|
| 239 |
+
extern __device__ __device_builtin__ double __drcp_rd(double x);
|
| 240 |
+
/**
|
| 241 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 242 |
+
* \brief Compute
|
| 243 |
+
* \cuda_math_formula \sqrt{x} \end_cuda_math_formula
|
| 244 |
+
* in round-to-nearest-even mode.
|
| 245 |
+
*
|
| 246 |
+
* Compute the square root of \p x in round-to-nearest-even mode.
|
| 247 |
+
*
|
| 248 |
+
* \return Returns
|
| 249 |
+
* \cuda_math_formula \sqrt{x} \end_cuda_math_formula.
|
| 250 |
+
*
|
| 251 |
+
* \note_accuracy_double_intrinsic
|
| 252 |
+
* \note_requires_fermi
|
| 253 |
+
*/
|
| 254 |
+
extern __device__ __device_builtin__ double __dsqrt_rn(double x);
|
| 255 |
+
/**
|
| 256 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 257 |
+
* \brief Compute
|
| 258 |
+
* \cuda_math_formula \sqrt{x} \end_cuda_math_formula
|
| 259 |
+
* in round-towards-zero mode.
|
| 260 |
+
*
|
| 261 |
+
* Compute the square root of \p x in round-towards-zero mode.
|
| 262 |
+
*
|
| 263 |
+
* \return Returns
|
| 264 |
+
* \cuda_math_formula \sqrt{x} \end_cuda_math_formula.
|
| 265 |
+
*
|
| 266 |
+
* \note_accuracy_double_intrinsic
|
| 267 |
+
* \note_requires_fermi
|
| 268 |
+
*/
|
| 269 |
+
extern __device__ __device_builtin__ double __dsqrt_rz(double x);
|
| 270 |
+
/**
|
| 271 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 272 |
+
* \brief Compute
|
| 273 |
+
* \cuda_math_formula \sqrt{x} \end_cuda_math_formula
|
| 274 |
+
* in round-up mode.
|
| 275 |
+
*
|
| 276 |
+
* Compute the square root of \p x in round-up (to positive infinity) mode.
|
| 277 |
+
*
|
| 278 |
+
* \return Returns
|
| 279 |
+
* \cuda_math_formula \sqrt{x} \end_cuda_math_formula.
|
| 280 |
+
*
|
| 281 |
+
* \note_accuracy_double_intrinsic
|
| 282 |
+
* \note_requires_fermi
|
| 283 |
+
*/
|
| 284 |
+
extern __device__ __device_builtin__ double __dsqrt_ru(double x);
|
| 285 |
+
/**
|
| 286 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 287 |
+
* \brief Compute
|
| 288 |
+
* \cuda_math_formula \sqrt{x} \end_cuda_math_formula
|
| 289 |
+
* in round-down mode.
|
| 290 |
+
*
|
| 291 |
+
* Compute the square root of \p x in round-down (to negative infinity) mode.
|
| 292 |
+
*
|
| 293 |
+
* \return Returns
|
| 294 |
+
* \cuda_math_formula \sqrt{x} \end_cuda_math_formula.
|
| 295 |
+
*
|
| 296 |
+
* \note_accuracy_double_intrinsic
|
| 297 |
+
* \note_requires_fermi
|
| 298 |
+
*/
|
| 299 |
+
extern __device__ __device_builtin__ double __dsqrt_rd(double x);
|
| 300 |
+
extern __device__ __device_builtin__ __DEPRECATED__(__WSB_DEPRECATION_MESSAGE(__ballot)) unsigned int __ballot(int);
|
| 301 |
+
extern __device__ __device_builtin__ int __syncthreads_count(int);
|
| 302 |
+
extern __device__ __device_builtin__ int __syncthreads_and(int);
|
| 303 |
+
extern __device__ __device_builtin__ int __syncthreads_or(int);
|
| 304 |
+
extern __device__ __device_builtin__ long long int clock64(void);
|
| 305 |
+
|
| 306 |
+
|
| 307 |
+
/**
|
| 308 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 309 |
+
* \brief Compute fused multiply-add operation in round-to-nearest-even mode, ignore \p -ftz=true compiler flag
|
| 310 |
+
*
|
| 311 |
+
* Behavior is the same as ::__fmaf_rn(\p x, \p y, \p z), the difference is in
|
| 312 |
+
* handling denormalized inputs and outputs: \p -ftz compiler flag has no effect.
|
| 313 |
+
*/
|
| 314 |
+
extern __device__ __device_builtin__ float __fmaf_ieee_rn(float x, float y, float z);
|
| 315 |
+
|
| 316 |
+
/**
|
| 317 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 318 |
+
* \brief Compute fused multiply-add operation in round-down mode, ignore \p -ftz=true compiler flag
|
| 319 |
+
*
|
| 320 |
+
* Behavior is the same as ::__fmaf_rd(\p x, \p y, \p z), the difference is in
|
| 321 |
+
* handling denormalized inputs and outputs: \p -ftz compiler flag has no effect.
|
| 322 |
+
*/
|
| 323 |
+
extern __device__ __device_builtin__ float __fmaf_ieee_rd(float x, float y, float z);
|
| 324 |
+
|
| 325 |
+
/**
|
| 326 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 327 |
+
* \brief Compute fused multiply-add operation in round-up mode, ignore \p -ftz=true compiler flag
|
| 328 |
+
*
|
| 329 |
+
* Behavior is the same as ::__fmaf_ru(\p x, \p y, \p z), the difference is in
|
| 330 |
+
* handling denormalized inputs and outputs: \p -ftz compiler flag has no effect.
|
| 331 |
+
*/
|
| 332 |
+
extern __device__ __device_builtin__ float __fmaf_ieee_ru(float x, float y, float z);
|
| 333 |
+
|
| 334 |
+
/**
|
| 335 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 336 |
+
* \brief Compute fused multiply-add operation in round-towards-zero mode, ignore \p -ftz=true compiler flag
|
| 337 |
+
*
|
| 338 |
+
* Behavior is the same as ::__fmaf_rz(\p x, \p y, \p z), the difference is in
|
| 339 |
+
* handling denormalized inputs and outputs: \p -ftz compiler flag has no effect.
|
| 340 |
+
*/
|
| 341 |
+
extern __device__ __device_builtin__ float __fmaf_ieee_rz(float x, float y, float z);
|
| 342 |
+
|
| 343 |
+
|
| 344 |
+
// SM_13 intrinsics
|
| 345 |
+
|
| 346 |
+
/**
|
| 347 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 348 |
+
* \brief Reinterpret bits in a double as a 64-bit signed integer.
|
| 349 |
+
*
|
| 350 |
+
* Reinterpret the bits in the double-precision floating-point value \p x
|
| 351 |
+
* as a signed 64-bit integer.
|
| 352 |
+
* \return Returns reinterpreted value.
|
| 353 |
+
*/
|
| 354 |
+
extern __device__ __device_builtin__ long long int __double_as_longlong(double x);
|
| 355 |
+
/**
|
| 356 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 357 |
+
* \brief Reinterpret bits in a 64-bit signed integer as a double.
|
| 358 |
+
*
|
| 359 |
+
* Reinterpret the bits in the 64-bit signed integer value \p x as
|
| 360 |
+
* a double-precision floating-point value.
|
| 361 |
+
* \return Returns reinterpreted value.
|
| 362 |
+
*/
|
| 363 |
+
extern __device__ __device_builtin__ double __longlong_as_double(long long int x);
|
| 364 |
+
/**
|
| 365 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 366 |
+
* \brief Compute
|
| 367 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 368 |
+
* as a single operation in round-to-nearest-even mode.
|
| 369 |
+
*
|
| 370 |
+
* Computes the value of
|
| 371 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 372 |
+
* as a single ternary operation, rounding the
|
| 373 |
+
* result once in round-to-nearest-even mode.
|
| 374 |
+
*
|
| 375 |
+
* \return Returns the rounded value of
|
| 376 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 377 |
+
* as a single operation.
|
| 378 |
+
* - __fma_rn(
|
| 379 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 380 |
+
* ,
|
| 381 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 382 |
+
* , \p z) returns NaN.
|
| 383 |
+
* - __fma_rn(
|
| 384 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 385 |
+
* ,
|
| 386 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 387 |
+
* , \p z) returns NaN.
|
| 388 |
+
* - __fma_rn(\p x, \p y,
|
| 389 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 390 |
+
* ) returns NaN if
|
| 391 |
+
* \cuda_math_formula x \times y \end_cuda_math_formula
|
| 392 |
+
* is an exact
|
| 393 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 394 |
+
* - __fma_rn(\p x, \p y,
|
| 395 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 396 |
+
* ) returns NaN if
|
| 397 |
+
* \cuda_math_formula x \times y \end_cuda_math_formula
|
| 398 |
+
* is an exact
|
| 399 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula.
|
| 400 |
+
* - __fma_rn(\p x, \p y, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 401 |
+
* - __fma_rn(\p x, \p y, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 402 |
+
* - __fma_rn(\p x, \p y, \p z) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y + z \end_cuda_math_formula is exactly zero and \cuda_math_formula z \neq 0 \end_cuda_math_formula.
|
| 403 |
+
* - If either argument is NaN, NaN is returned.
|
| 404 |
+
*
|
| 405 |
+
* \note_accuracy_double_intrinsic
|
| 406 |
+
*/
|
| 407 |
+
extern __device__ __device_builtin__ double __fma_rn(double x, double y, double z);
|
| 408 |
+
/**
|
| 409 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 410 |
+
* \brief Compute
|
| 411 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 412 |
+
* as a single operation in round-towards-zero mode.
|
| 413 |
+
*
|
| 414 |
+
* Computes the value of
|
| 415 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 416 |
+
* as a single ternary operation, rounding the
|
| 417 |
+
* result once in round-towards-zero mode.
|
| 418 |
+
*
|
| 419 |
+
* \return Returns the rounded value of
|
| 420 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 421 |
+
* as a single operation.
|
| 422 |
+
* - __fma_rz(
|
| 423 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 424 |
+
* ,
|
| 425 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 426 |
+
* , \p z) returns NaN.
|
| 427 |
+
* - __fma_rz(
|
| 428 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 429 |
+
* ,
|
| 430 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 431 |
+
* , \p z) returns NaN.
|
| 432 |
+
* - __fma_rz(\p x, \p y,
|
| 433 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 434 |
+
* ) returns NaN if
|
| 435 |
+
* \cuda_math_formula x \times y \end_cuda_math_formula
|
| 436 |
+
* is an exact
|
| 437 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 438 |
+
* - __fma_rz(\p x, \p y,
|
| 439 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 440 |
+
* ) returns NaN if
|
| 441 |
+
* \cuda_math_formula x \times y \end_cuda_math_formula
|
| 442 |
+
* is an exact
|
| 443 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula.
|
| 444 |
+
* - __fma_rz(\p x, \p y, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 445 |
+
* - __fma_rz(\p x, \p y, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 446 |
+
* - __fma_rz(\p x, \p y, \p z) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y + z \end_cuda_math_formula is exactly zero and \cuda_math_formula z \neq 0 \end_cuda_math_formula.
|
| 447 |
+
* - If either argument is NaN, NaN is returned.
|
| 448 |
+
*
|
| 449 |
+
* \note_accuracy_double_intrinsic
|
| 450 |
+
*/
|
| 451 |
+
extern __device__ __device_builtin__ double __fma_rz(double x, double y, double z);
|
| 452 |
+
/**
|
| 453 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 454 |
+
* \brief Compute
|
| 455 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 456 |
+
* as a single operation in round-up mode.
|
| 457 |
+
*
|
| 458 |
+
* Computes the value of
|
| 459 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 460 |
+
* as a single ternary operation, rounding the
|
| 461 |
+
* result once in round-up (to positive infinity) mode.
|
| 462 |
+
*
|
| 463 |
+
* \return Returns the rounded value of
|
| 464 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 465 |
+
* as a single operation.
|
| 466 |
+
* - __fma_ru(
|
| 467 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 468 |
+
* ,
|
| 469 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 470 |
+
* , \p z) returns NaN.
|
| 471 |
+
* - __fma_ru(
|
| 472 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 473 |
+
* ,
|
| 474 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 475 |
+
* , \p z) returns NaN.
|
| 476 |
+
* - __fma_ru(\p x, \p y,
|
| 477 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 478 |
+
* ) returns NaN if
|
| 479 |
+
* \cuda_math_formula x \times y \end_cuda_math_formula
|
| 480 |
+
* is an exact
|
| 481 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 482 |
+
* - __fma_ru(\p x, \p y,
|
| 483 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 484 |
+
* ) returns NaN if
|
| 485 |
+
* \cuda_math_formula x \times y \end_cuda_math_formula
|
| 486 |
+
* is an exact
|
| 487 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula.
|
| 488 |
+
* - __fma_ru(\p x, \p y, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 489 |
+
* - __fma_ru(\p x, \p y, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 490 |
+
* - __fma_ru(\p x, \p y, \p z) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y + z \end_cuda_math_formula is exactly zero and \cuda_math_formula z \neq 0 \end_cuda_math_formula.
|
| 491 |
+
* - If either argument is NaN, NaN is returned.
|
| 492 |
+
*
|
| 493 |
+
* \note_accuracy_double_intrinsic
|
| 494 |
+
*/
|
| 495 |
+
extern __device__ __device_builtin__ double __fma_ru(double x, double y, double z);
|
| 496 |
+
/**
|
| 497 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 498 |
+
* \brief Compute
|
| 499 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 500 |
+
* as a single operation in round-down mode.
|
| 501 |
+
*
|
| 502 |
+
* Computes the value of
|
| 503 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 504 |
+
* as a single ternary operation, rounding the
|
| 505 |
+
* result once in round-down (to negative infinity) mode.
|
| 506 |
+
*
|
| 507 |
+
* \return Returns the rounded value of
|
| 508 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 509 |
+
* as a single operation.
|
| 510 |
+
* - __fma_rd(
|
| 511 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 512 |
+
* ,
|
| 513 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 514 |
+
* , \p z) returns NaN.
|
| 515 |
+
* - __fma_rd(
|
| 516 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 517 |
+
* ,
|
| 518 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 519 |
+
* , \p z) returns NaN.
|
| 520 |
+
* - __fma_rd(\p x, \p y,
|
| 521 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 522 |
+
* ) returns NaN if
|
| 523 |
+
* \cuda_math_formula x \times y \end_cuda_math_formula
|
| 524 |
+
* is an exact
|
| 525 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 526 |
+
* - __fma_rd(\p x, \p y,
|
| 527 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 528 |
+
* ) returns NaN if
|
| 529 |
+
* \cuda_math_formula x \times y \end_cuda_math_formula
|
| 530 |
+
* is an exact
|
| 531 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula.
|
| 532 |
+
* - __fma_rd(\p x, \p y, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 533 |
+
* - __fma_rd(\p x, \p y, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula -0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 534 |
+
* - __fma_rd(\p x, \p y, \p z) returns \cuda_math_formula -0 \end_cuda_math_formula if \cuda_math_formula x \times y + z \end_cuda_math_formula is exactly zero and \cuda_math_formula z \neq 0 \end_cuda_math_formula.
|
| 535 |
+
* - If either argument is NaN, NaN is returned.
|
| 536 |
+
*
|
| 537 |
+
* \note_accuracy_double_intrinsic
|
| 538 |
+
*/
|
| 539 |
+
extern __device__ __device_builtin__ double __fma_rd(double x, double y, double z);
|
| 540 |
+
/**
|
| 541 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 542 |
+
* \brief Add two floating-point values in round-to-nearest-even mode.
|
| 543 |
+
*
|
| 544 |
+
* Adds two floating-point values \p x and \p y in round-to-nearest-even mode.
|
| 545 |
+
*
|
| 546 |
+
* \return Returns \p x + \p y.
|
| 547 |
+
* - __dadd_rn(\p x, \p y) is equivalent to __dadd_rn(\p y, \p x).
|
| 548 |
+
* - __dadd_rn(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p x.
|
| 549 |
+
* - __dadd_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
|
| 550 |
+
* - __dadd_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns NaN.
|
| 551 |
+
* - __dadd_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 552 |
+
* - __dadd_rn(\p x, \p -x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 553 |
+
* - If either argument is NaN, NaN is returned.
|
| 554 |
+
*
|
| 555 |
+
* \note_accuracy_double_intrinsic
|
| 556 |
+
* \note_nofma
|
| 557 |
+
*/
|
| 558 |
+
extern __device__ __device_builtin__ double __dadd_rn(double x, double y);
|
| 559 |
+
/**
|
| 560 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 561 |
+
* \brief Add two floating-point values in round-towards-zero mode.
|
| 562 |
+
*
|
| 563 |
+
* Adds two floating-point values \p x and \p y in round-towards-zero mode.
|
| 564 |
+
*
|
| 565 |
+
* \return Returns \p x + \p y.
|
| 566 |
+
* - __dadd_rz(\p x, \p y) is equivalent to __dadd_rz(\p y, \p x).
|
| 567 |
+
* - __dadd_rz(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p x.
|
| 568 |
+
* - __dadd_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
|
| 569 |
+
* - __dadd_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns NaN.
|
| 570 |
+
* - __dadd_rz(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 571 |
+
* - __dadd_rz(\p x, \p -x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 572 |
+
* - If either argument is NaN, NaN is returned.
|
| 573 |
+
*
|
| 574 |
+
* \note_accuracy_double_intrinsic
|
| 575 |
+
* \note_nofma
|
| 576 |
+
*/
|
| 577 |
+
extern __device__ __device_builtin__ double __dadd_rz(double x, double y);
|
| 578 |
+
/**
|
| 579 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 580 |
+
* \brief Add two floating-point values in round-up mode.
|
| 581 |
+
*
|
| 582 |
+
* Adds two floating-point values \p x and \p y in round-up (to positive infinity) mode.
|
| 583 |
+
*
|
| 584 |
+
* \return Returns \p x + \p y.
|
| 585 |
+
* - __dadd_ru(\p x, \p y) is equivalent to __dadd_ru(\p y, \p x).
|
| 586 |
+
* - __dadd_ru(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p x.
|
| 587 |
+
* - __dadd_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
|
| 588 |
+
* - __dadd_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns NaN.
|
| 589 |
+
* - __dadd_ru(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 590 |
+
* - __dadd_ru(\p x, \p -x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 591 |
+
* - If either argument is NaN, NaN is returned.
|
| 592 |
+
*
|
| 593 |
+
* \note_accuracy_double_intrinsic
|
| 594 |
+
* \note_nofma
|
| 595 |
+
*/
|
| 596 |
+
extern __device__ __device_builtin__ double __dadd_ru(double x, double y);
|
| 597 |
+
/**
|
| 598 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 599 |
+
* \brief Add two floating-point values in round-down mode.
|
| 600 |
+
*
|
| 601 |
+
* Adds two floating-point values \p x and \p y in round-down (to negative infinity) mode.
|
| 602 |
+
*
|
| 603 |
+
* \return Returns \p x + \p y.
|
| 604 |
+
* - __dadd_rd(\p x, \p y) is equivalent to __dadd_rd(\p y, \p x).
|
| 605 |
+
* - __dadd_rd(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p x.
|
| 606 |
+
* - __dadd_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
|
| 607 |
+
* - __dadd_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns NaN.
|
| 608 |
+
* - __dadd_rd(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 609 |
+
* - __dadd_rd(\p x, \p -x) returns \cuda_math_formula -0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 610 |
+
* - If either argument is NaN, NaN is returned.
|
| 611 |
+
*
|
| 612 |
+
* \note_accuracy_double_intrinsic
|
| 613 |
+
* \note_nofma
|
| 614 |
+
*/
|
| 615 |
+
extern __device__ __device_builtin__ double __dadd_rd(double x, double y);
|
| 616 |
+
/**
|
| 617 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 618 |
+
* \brief Subtract two floating-point values in round-to-nearest-even mode.
|
| 619 |
+
*
|
| 620 |
+
* Subtracts two floating-point values \p x and \p y in round-to-nearest-even mode.
|
| 621 |
+
*
|
| 622 |
+
* \return Returns \p x - \p y.
|
| 623 |
+
* - __dsub_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p y.
|
| 624 |
+
* - __dsub_rn(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \mp\infty \end_cuda_math_formula for finite \p x.
|
| 625 |
+
* - __dsub_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 626 |
+
* - __dsub_rn(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
|
| 627 |
+
* - __dsub_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 628 |
+
* - __dsub_rn(\p x, \p x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 629 |
+
* - If either argument is NaN, NaN is returned.
|
| 630 |
+
*
|
| 631 |
+
* \note_accuracy_double_intrinsic
|
| 632 |
+
* \note_nofma
|
| 633 |
+
*/
|
| 634 |
+
extern __device__ __device_builtin__ double __dsub_rn(double x, double y);
|
| 635 |
+
/**
|
| 636 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 637 |
+
* \brief Subtract two floating-point values in round-towards-zero mode.
|
| 638 |
+
*
|
| 639 |
+
* Subtracts two floating-point values \p x and \p y in round-towards-zero mode.
|
| 640 |
+
*
|
| 641 |
+
* \return Returns \p x - \p y.
|
| 642 |
+
* - __dsub_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p y.
|
| 643 |
+
* - __dsub_rz(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \mp\infty \end_cuda_math_formula for finite \p x.
|
| 644 |
+
* - __dsub_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 645 |
+
* - __dsub_rz(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
|
| 646 |
+
* - __dsub_rz(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 647 |
+
* - __dsub_rz(\p x, \p x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 648 |
+
* - If either argument is NaN, NaN is returned.
|
| 649 |
+
*
|
| 650 |
+
* \note_accuracy_double_intrinsic
|
| 651 |
+
* \note_nofma
|
| 652 |
+
*/
|
| 653 |
+
extern __device__ __device_builtin__ double __dsub_rz(double x, double y);
|
| 654 |
+
/**
|
| 655 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 656 |
+
* \brief Subtract two floating-point values in round-up mode.
|
| 657 |
+
*
|
| 658 |
+
* Subtracts two floating-point values \p x and \p y in round-up (to positive infinity) mode.
|
| 659 |
+
*
|
| 660 |
+
* \return Returns \p x - \p y.
|
| 661 |
+
* - __dsub_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p y.
|
| 662 |
+
* - __dsub_ru(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \mp\infty \end_cuda_math_formula for finite \p x.
|
| 663 |
+
* - __dsub_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 664 |
+
* - __dsub_ru(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
|
| 665 |
+
* - __dsub_ru(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 666 |
+
* - __dsub_ru(\p x, \p x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 667 |
+
* - If either argument is NaN, NaN is returned.
|
| 668 |
+
*
|
| 669 |
+
* \note_accuracy_double_intrinsic
|
| 670 |
+
* \note_nofma
|
| 671 |
+
*/
|
| 672 |
+
extern __device__ __device_builtin__ double __dsub_ru(double x, double y);
|
| 673 |
+
/**
|
| 674 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 675 |
+
* \brief Subtract two floating-point values in round-down mode.
|
| 676 |
+
*
|
| 677 |
+
* Subtracts two floating-point values \p x and \p y in round-down (to negative infinity) mode.
|
| 678 |
+
*
|
| 679 |
+
* \return Returns \p x - \p y.
|
| 680 |
+
* - __dsub_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p y.
|
| 681 |
+
* - __dsub_rd(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \mp\infty \end_cuda_math_formula for finite \p x.
|
| 682 |
+
* - __dsub_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 683 |
+
* - __dsub_rd(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
|
| 684 |
+
* - __dsub_rd(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 685 |
+
* - __dsub_rd(\p x, \p x) returns \cuda_math_formula -0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 686 |
+
* - If either argument is NaN, NaN is returned.
|
| 687 |
+
*
|
| 688 |
+
* \note_accuracy_double_intrinsic
|
| 689 |
+
* \note_nofma
|
| 690 |
+
*/
|
| 691 |
+
extern __device__ __device_builtin__ double __dsub_rd(double x, double y);
|
| 692 |
+
/**
|
| 693 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 694 |
+
* \brief Multiply two floating-point values in round-to-nearest-even mode.
|
| 695 |
+
*
|
| 696 |
+
* Multiplies two floating-point values \p x and \p y in round-to-nearest-even mode.
|
| 697 |
+
*
|
| 698 |
+
* \return Returns \p x * \p y.
|
| 699 |
+
* - sign of the product \p x * \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
|
| 700 |
+
* - __dmul_rn(\p x, \p y) is equivalent to __dmul_rn(\p y, \p x).
|
| 701 |
+
* - __dmul_rn(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 702 |
+
* - __dmul_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 703 |
+
* - __dmul_rn(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p y.
|
| 704 |
+
* - If either argument is NaN, NaN is returned.
|
| 705 |
+
*
|
| 706 |
+
* \note_accuracy_double_intrinsic
|
| 707 |
+
* \note_nofma
|
| 708 |
+
*/
|
| 709 |
+
extern __device__ __device_builtin__ double __dmul_rn(double x, double y);
|
| 710 |
+
/**
|
| 711 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 712 |
+
* \brief Multiply two floating-point values in round-towards-zero mode.
|
| 713 |
+
*
|
| 714 |
+
* Multiplies two floating-point values \p x and \p y in round-towards-zero mode.
|
| 715 |
+
*
|
| 716 |
+
* \return Returns \p x * \p y.
|
| 717 |
+
* - sign of the product \p x * \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
|
| 718 |
+
* - __dmul_rz(\p x, \p y) is equivalent to __dmul_rz(\p y, \p x).
|
| 719 |
+
* - __dmul_rz(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 720 |
+
* - __dmul_rz(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 721 |
+
* - __dmul_rz(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p y.
|
| 722 |
+
* - If either argument is NaN, NaN is returned.
|
| 723 |
+
*
|
| 724 |
+
* \note_accuracy_double_intrinsic
|
| 725 |
+
* \note_nofma
|
| 726 |
+
*/
|
| 727 |
+
extern __device__ __device_builtin__ double __dmul_rz(double x, double y);
|
| 728 |
+
/**
|
| 729 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 730 |
+
* \brief Multiply two floating-point values in round-up mode.
|
| 731 |
+
*
|
| 732 |
+
* Multiplies two floating-point values \p x and \p y in round-up (to positive infinity) mode.
|
| 733 |
+
*
|
| 734 |
+
* \return Returns \p x * \p y.
|
| 735 |
+
* - sign of the product \p x * \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
|
| 736 |
+
* - __dmul_ru(\p x, \p y) is equivalent to __dmul_ru(\p y, \p x).
|
| 737 |
+
* - __dmul_ru(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 738 |
+
* - __dmul_ru(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 739 |
+
* - __dmul_ru(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p y.
|
| 740 |
+
* - If either argument is NaN, NaN is returned.
|
| 741 |
+
*
|
| 742 |
+
* \note_accuracy_double_intrinsic
|
| 743 |
+
* \note_nofma
|
| 744 |
+
*/
|
| 745 |
+
extern __device__ __device_builtin__ double __dmul_ru(double x, double y);
|
| 746 |
+
/**
|
| 747 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 748 |
+
* \brief Multiply two floating-point values in round-down mode.
|
| 749 |
+
*
|
| 750 |
+
* Multiplies two floating-point values \p x and \p y in round-down (to negative infinity) mode.
|
| 751 |
+
*
|
| 752 |
+
* \return Returns \p x * \p y.
|
| 753 |
+
* - sign of the product \p x * \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
|
| 754 |
+
* - __dmul_rd(\p x, \p y) is equivalent to __dmul_rd(\p y, \p x).
|
| 755 |
+
* - __dmul_rd(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 756 |
+
* - __dmul_rd(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 757 |
+
* - __dmul_rd(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p y.
|
| 758 |
+
* - If either argument is NaN, NaN is returned.
|
| 759 |
+
*
|
| 760 |
+
* \note_accuracy_double_intrinsic
|
| 761 |
+
* \note_nofma
|
| 762 |
+
*/
|
| 763 |
+
extern __device__ __device_builtin__ double __dmul_rd(double x, double y);
|
| 764 |
+
/**
|
| 765 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 766 |
+
* \brief Convert a double to a float in round-to-nearest-even mode.
|
| 767 |
+
*
|
| 768 |
+
* Convert the double-precision floating-point value \p x to a single-precision
|
| 769 |
+
* floating-point value in round-to-nearest-even mode.
|
| 770 |
+
* \return Returns converted value.
|
| 771 |
+
*/
|
| 772 |
+
extern __device__ __device_builtin__ float __double2float_rn(double x);
|
| 773 |
+
/**
|
| 774 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 775 |
+
* \brief Convert a double to a float in round-towards-zero mode.
|
| 776 |
+
*
|
| 777 |
+
* Convert the double-precision floating-point value \p x to a single-precision
|
| 778 |
+
* floating-point value in round-towards-zero mode.
|
| 779 |
+
* \return Returns converted value.
|
| 780 |
+
*/
|
| 781 |
+
extern __device__ __device_builtin__ float __double2float_rz(double x);
|
| 782 |
+
/**
|
| 783 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 784 |
+
* \brief Convert a double to a float in round-up mode.
|
| 785 |
+
*
|
| 786 |
+
* Convert the double-precision floating-point value \p x to a single-precision
|
| 787 |
+
* floating-point value in round-up (to positive infinity) mode.
|
| 788 |
+
* \return Returns converted value.
|
| 789 |
+
*/
|
| 790 |
+
extern __device__ __device_builtin__ float __double2float_ru(double x);
|
| 791 |
+
/**
|
| 792 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 793 |
+
* \brief Convert a double to a float in round-down mode.
|
| 794 |
+
*
|
| 795 |
+
* Convert the double-precision floating-point value \p x to a single-precision
|
| 796 |
+
* floating-point value in round-down (to negative infinity) mode.
|
| 797 |
+
* \return Returns converted value.
|
| 798 |
+
*/
|
| 799 |
+
extern __device__ __device_builtin__ float __double2float_rd(double x);
|
| 800 |
+
/**
|
| 801 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 802 |
+
* \brief Convert a double to a signed int in round-to-nearest-even mode.
|
| 803 |
+
*
|
| 804 |
+
* Convert the double-precision floating-point value \p x to a
|
| 805 |
+
* signed integer value in round-to-nearest-even mode.
|
| 806 |
+
* \return Returns converted value.
|
| 807 |
+
* \note_fp_to_int_out_of_range_undefined
|
| 808 |
+
*/
|
| 809 |
+
extern __device__ __device_builtin__ int __double2int_rn(double x);
|
| 810 |
+
/**
|
| 811 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 812 |
+
* \brief Convert a double to a signed int in round-up mode.
|
| 813 |
+
*
|
| 814 |
+
* Convert the double-precision floating-point value \p x to a
|
| 815 |
+
* signed integer value in round-up (to positive infinity) mode.
|
| 816 |
+
* \return Returns converted value.
|
| 817 |
+
* \note_fp_to_int_out_of_range_undefined
|
| 818 |
+
*/
|
| 819 |
+
extern __device__ __device_builtin__ int __double2int_ru(double x);
|
| 820 |
+
/**
|
| 821 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 822 |
+
* \brief Convert a double to a signed int in round-down mode.
|
| 823 |
+
*
|
| 824 |
+
* Convert the double-precision floating-point value \p x to a
|
| 825 |
+
* signed integer value in round-down (to negative infinity) mode.
|
| 826 |
+
* \return Returns converted value.
|
| 827 |
+
* \note_fp_to_int_out_of_range_undefined
|
| 828 |
+
*/
|
| 829 |
+
extern __device__ __device_builtin__ int __double2int_rd(double x);
|
| 830 |
+
/**
|
| 831 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 832 |
+
* \brief Convert a double to an unsigned int in round-to-nearest-even mode.
|
| 833 |
+
*
|
| 834 |
+
* Convert the double-precision floating-point value \p x to an
|
| 835 |
+
* unsigned integer value in round-to-nearest-even mode.
|
| 836 |
+
* \return Returns converted value.
|
| 837 |
+
* \note_fp_to_int_out_of_range_undefined
|
| 838 |
+
*/
|
| 839 |
+
extern __device__ __device_builtin__ unsigned int __double2uint_rn(double x);
|
| 840 |
+
/**
|
| 841 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 842 |
+
* \brief Convert a double to an unsigned int in round-up mode.
|
| 843 |
+
*
|
| 844 |
+
* Convert the double-precision floating-point value \p x to an
|
| 845 |
+
* unsigned integer value in round-up (to positive infinity) mode.
|
| 846 |
+
* \return Returns converted value.
|
| 847 |
+
* \note_fp_to_int_out_of_range_undefined
|
| 848 |
+
*/
|
| 849 |
+
extern __device__ __device_builtin__ unsigned int __double2uint_ru(double x);
|
| 850 |
+
/**
|
| 851 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 852 |
+
* \brief Convert a double to an unsigned int in round-down mode.
|
| 853 |
+
*
|
| 854 |
+
* Convert the double-precision floating-point value \p x to an
|
| 855 |
+
* unsigned integer value in round-down (to negative infinity) mode.
|
| 856 |
+
* \return Returns converted value.
|
| 857 |
+
* \note_fp_to_int_out_of_range_undefined
|
| 858 |
+
*/
|
| 859 |
+
extern __device__ __device_builtin__ unsigned int __double2uint_rd(double x);
|
| 860 |
+
/**
|
| 861 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 862 |
+
* \brief Convert a double to a signed 64-bit int in round-to-nearest-even mode.
|
| 863 |
+
*
|
| 864 |
+
* Convert the double-precision floating-point value \p x to a
|
| 865 |
+
* signed 64-bit integer value in round-to-nearest-even mode.
|
| 866 |
+
* \return Returns converted value.
|
| 867 |
+
* \note_fp_to_int_out_of_range_undefined
|
| 868 |
+
*/
|
| 869 |
+
extern __device__ __device_builtin__ long long int __double2ll_rn(double x);
|
| 870 |
+
/**
|
| 871 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 872 |
+
* \brief Convert a double to a signed 64-bit int in round-up mode.
|
| 873 |
+
*
|
| 874 |
+
* Convert the double-precision floating-point value \p x to a
|
| 875 |
+
* signed 64-bit integer value in round-up (to positive infinity) mode.
|
| 876 |
+
* \return Returns converted value.
|
| 877 |
+
* \note_fp_to_int_out_of_range_undefined
|
| 878 |
+
*/
|
| 879 |
+
extern __device__ __device_builtin__ long long int __double2ll_ru(double x);
|
| 880 |
+
/**
|
| 881 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 882 |
+
* \brief Convert a double to a signed 64-bit int in round-down mode.
|
| 883 |
+
*
|
| 884 |
+
* Convert the double-precision floating-point value \p x to a
|
| 885 |
+
* signed 64-bit integer value in round-down (to negative infinity) mode.
|
| 886 |
+
* \return Returns converted value.
|
| 887 |
+
* \note_fp_to_int_out_of_range_undefined
|
| 888 |
+
*/
|
| 889 |
+
extern __device__ __device_builtin__ long long int __double2ll_rd(double x);
|
| 890 |
+
/**
|
| 891 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 892 |
+
* \brief Convert a double to an unsigned 64-bit int in round-to-nearest-even mode.
|
| 893 |
+
*
|
| 894 |
+
* Convert the double-precision floating-point value \p x to an
|
| 895 |
+
* unsigned 64-bit integer value in round-to-nearest-even mode.
|
| 896 |
+
* \return Returns converted value.
|
| 897 |
+
* \note_fp_to_int_out_of_range_undefined
|
| 898 |
+
*/
|
| 899 |
+
extern __device__ __device_builtin__ unsigned long long int __double2ull_rn(double x);
|
| 900 |
+
/**
|
| 901 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 902 |
+
* \brief Convert a double to an unsigned 64-bit int in round-up mode.
|
| 903 |
+
*
|
| 904 |
+
* Convert the double-precision floating-point value \p x to an
|
| 905 |
+
* unsigned 64-bit integer value in round-up (to positive infinity) mode.
|
| 906 |
+
* \return Returns converted value.
|
| 907 |
+
* \note_fp_to_int_out_of_range_undefined
|
| 908 |
+
*/
|
| 909 |
+
extern __device__ __device_builtin__ unsigned long long int __double2ull_ru(double x);
|
| 910 |
+
/**
|
| 911 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 912 |
+
* \brief Convert a double to an unsigned 64-bit int in round-down mode.
|
| 913 |
+
*
|
| 914 |
+
* Convert the double-precision floating-point value \p x to an
|
| 915 |
+
* unsigned 64-bit integer value in round-down (to negative infinity) mode.
|
| 916 |
+
* \return Returns converted value.
|
| 917 |
+
* \note_fp_to_int_out_of_range_undefined
|
| 918 |
+
*/
|
| 919 |
+
extern __device__ __device_builtin__ unsigned long long int __double2ull_rd(double x);
|
| 920 |
+
/**
|
| 921 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 922 |
+
* \brief Convert a signed int to a double.
|
| 923 |
+
*
|
| 924 |
+
* Convert the signed integer value \p x to a double-precision floating-point value.
|
| 925 |
+
* \return Returns converted value.
|
| 926 |
+
*/
|
| 927 |
+
extern __device__ __device_builtin__ double __int2double_rn(int x);
|
| 928 |
+
/**
|
| 929 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 930 |
+
* \brief Convert an unsigned int to a double.
|
| 931 |
+
*
|
| 932 |
+
* Convert the unsigned integer value \p x to a double-precision floating-point value.
|
| 933 |
+
* \return Returns converted value.
|
| 934 |
+
*/
|
| 935 |
+
extern __device__ __device_builtin__ double __uint2double_rn(unsigned int x);
|
| 936 |
+
/**
|
| 937 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 938 |
+
* \brief Convert a signed 64-bit int to a double in round-to-nearest-even mode.
|
| 939 |
+
*
|
| 940 |
+
* Convert the signed 64-bit integer value \p x to a double-precision floating-point
|
| 941 |
+
* value in round-to-nearest-even mode.
|
| 942 |
+
* \return Returns converted value.
|
| 943 |
+
*/
|
| 944 |
+
extern __device__ __device_builtin__ double __ll2double_rn(long long int x);
|
| 945 |
+
/**
|
| 946 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 947 |
+
* \brief Convert a signed 64-bit int to a double in round-towards-zero mode.
|
| 948 |
+
*
|
| 949 |
+
* Convert the signed 64-bit integer value \p x to a double-precision floating-point
|
| 950 |
+
* value in round-towards-zero mode.
|
| 951 |
+
* \return Returns converted value.
|
| 952 |
+
*/
|
| 953 |
+
extern __device__ __device_builtin__ double __ll2double_rz(long long int x);
|
| 954 |
+
/**
|
| 955 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 956 |
+
* \brief Convert a signed 64-bit int to a double in round-up mode.
|
| 957 |
+
*
|
| 958 |
+
* Convert the signed 64-bit integer value \p x to a double-precision floating-point
|
| 959 |
+
* value in round-up (to positive infinity) mode.
|
| 960 |
+
* \return Returns converted value.
|
| 961 |
+
*/
|
| 962 |
+
extern __device__ __device_builtin__ double __ll2double_ru(long long int x);
|
| 963 |
+
/**
|
| 964 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 965 |
+
* \brief Convert a signed 64-bit int to a double in round-down mode.
|
| 966 |
+
*
|
| 967 |
+
* Convert the signed 64-bit integer value \p x to a double-precision floating-point
|
| 968 |
+
* value in round-down (to negative infinity) mode.
|
| 969 |
+
* \return Returns converted value.
|
| 970 |
+
*/
|
| 971 |
+
extern __device__ __device_builtin__ double __ll2double_rd(long long int x);
|
| 972 |
+
/**
|
| 973 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 974 |
+
* \brief Convert an unsigned 64-bit int to a double in round-to-nearest-even mode.
|
| 975 |
+
*
|
| 976 |
+
* Convert the unsigned 64-bit integer value \p x to a double-precision floating-point
|
| 977 |
+
* value in round-to-nearest-even mode.
|
| 978 |
+
* \return Returns converted value.
|
| 979 |
+
*/
|
| 980 |
+
extern __device__ __device_builtin__ double __ull2double_rn(unsigned long long int x);
|
| 981 |
+
/**
|
| 982 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 983 |
+
* \brief Convert an unsigned 64-bit int to a double in round-towards-zero mode.
|
| 984 |
+
*
|
| 985 |
+
* Convert the unsigned 64-bit integer value \p x to a double-precision floating-point
|
| 986 |
+
* value in round-towards-zero mode.
|
| 987 |
+
* \return Returns converted value.
|
| 988 |
+
*/
|
| 989 |
+
extern __device__ __device_builtin__ double __ull2double_rz(unsigned long long int x);
|
| 990 |
+
/**
|
| 991 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 992 |
+
* \brief Convert an unsigned 64-bit int to a double in round-up mode.
|
| 993 |
+
*
|
| 994 |
+
* Convert the unsigned 64-bit integer value \p x to a double-precision floating-point
|
| 995 |
+
* value in round-up (to positive infinity) mode.
|
| 996 |
+
* \return Returns converted value.
|
| 997 |
+
*/
|
| 998 |
+
extern __device__ __device_builtin__ double __ull2double_ru(unsigned long long int x);
|
| 999 |
+
/**
|
| 1000 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1001 |
+
* \brief Convert an unsigned 64-bit int to a double in round-down mode.
|
| 1002 |
+
*
|
| 1003 |
+
* Convert the unsigned 64-bit integer value \p x to a double-precision floating-point
|
| 1004 |
+
* value in round-down (to negative infinity) mode.
|
| 1005 |
+
* \return Returns converted value.
|
| 1006 |
+
*/
|
| 1007 |
+
extern __device__ __device_builtin__ double __ull2double_rd(unsigned long long int x);
|
| 1008 |
+
/**
|
| 1009 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1010 |
+
* \brief Reinterpret high 32 bits in a double as a signed integer.
|
| 1011 |
+
*
|
| 1012 |
+
* Reinterpret the high 32 bits in the double-precision floating-point value \p x
|
| 1013 |
+
* as a signed integer.
|
| 1014 |
+
* \return Returns reinterpreted value.
|
| 1015 |
+
*/
|
| 1016 |
+
extern __device__ __device_builtin__ int __double2hiint(double x);
|
| 1017 |
+
/**
|
| 1018 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1019 |
+
* \brief Reinterpret low 32 bits in a double as a signed integer.
|
| 1020 |
+
*
|
| 1021 |
+
* Reinterpret the low 32 bits in the double-precision floating-point value \p x
|
| 1022 |
+
* as a signed integer.
|
| 1023 |
+
* \return Returns reinterpreted value.
|
| 1024 |
+
*/
|
| 1025 |
+
extern __device__ __device_builtin__ int __double2loint(double x);
|
| 1026 |
+
/**
|
| 1027 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1028 |
+
* \brief Reinterpret high and low 32-bit integer values as a double.
|
| 1029 |
+
*
|
| 1030 |
+
* Reinterpret the integer value of \p hi as the high 32 bits of a
|
| 1031 |
+
* double-precision floating-point value and the integer value of \p lo
|
| 1032 |
+
* as the low 32 bits of the same double-precision floating-point value.
|
| 1033 |
+
* \return Returns reinterpreted value.
|
| 1034 |
+
*/
|
| 1035 |
+
extern __device__ __device_builtin__ double __hiloint2double(int hi, int lo);
|
| 1036 |
+
|
| 1037 |
+
|
| 1038 |
+
}
|
| 1039 |
+
|
| 1040 |
+
/*******************************************************************************
|
| 1041 |
+
* *
|
| 1042 |
+
* *
|
| 1043 |
+
* *
|
| 1044 |
+
*******************************************************************************/
|
| 1045 |
+
__SM_20_INTRINSICS_DECL__ __DEPRECATED__(__WSB_DEPRECATION_MESSAGE(__ballot)) unsigned int ballot(bool pred) __DEF_IF_HOST
|
| 1046 |
+
|
| 1047 |
+
__SM_20_INTRINSICS_DECL__ int syncthreads_count(bool pred) __DEF_IF_HOST
|
| 1048 |
+
|
| 1049 |
+
__SM_20_INTRINSICS_DECL__ bool syncthreads_and(bool pred) __DEF_IF_HOST
|
| 1050 |
+
|
| 1051 |
+
__SM_20_INTRINSICS_DECL__ bool syncthreads_or(bool pred) __DEF_IF_HOST
|
| 1052 |
+
|
| 1053 |
+
#undef __DEPRECATED__
|
| 1054 |
+
#undef __WSB_DEPRECATION_MESSAGE
|
| 1055 |
+
|
| 1056 |
+
__SM_20_INTRINSICS_DECL__ unsigned int __isGlobal(const void *ptr) __DEF_IF_HOST
|
| 1057 |
+
__SM_20_INTRINSICS_DECL__ unsigned int __isShared(const void *ptr) __DEF_IF_HOST
|
| 1058 |
+
__SM_20_INTRINSICS_DECL__ unsigned int __isConstant(const void *ptr) __DEF_IF_HOST
|
| 1059 |
+
__SM_20_INTRINSICS_DECL__ unsigned int __isLocal(const void *ptr) __DEF_IF_HOST
|
| 1060 |
+
#if !defined(__CUDA_ARCH__) || (__CUDA_ARCH__ >= 700)
|
| 1061 |
+
__SM_20_INTRINSICS_DECL__ unsigned int __isGridConstant(const void *ptr) __DEF_IF_HOST
|
| 1062 |
+
#endif /* !defined(__CUDA_ARCH__) || (__CUDA_ARCH__ >= 700) */
|
| 1063 |
+
__SM_20_INTRINSICS_DECL__ size_t __cvta_generic_to_global(const void *ptr) __DEF_IF_HOST
|
| 1064 |
+
__SM_20_INTRINSICS_DECL__ size_t __cvta_generic_to_shared(const void *ptr) __DEF_IF_HOST
|
| 1065 |
+
__SM_20_INTRINSICS_DECL__ size_t __cvta_generic_to_constant(const void *ptr) __DEF_IF_HOST
|
| 1066 |
+
__SM_20_INTRINSICS_DECL__ size_t __cvta_generic_to_local(const void *ptr) __DEF_IF_HOST
|
| 1067 |
+
#if !defined(__CUDA_ARCH__) || (__CUDA_ARCH__ >= 700)
|
| 1068 |
+
__SM_20_INTRINSICS_DECL__ size_t __cvta_generic_to_grid_constant(const void *ptr) __DEF_IF_HOST
|
| 1069 |
+
#endif /* !defined(__CUDA_ARCH__) || (__CUDA_ARCH__ >= 700) */
|
| 1070 |
+
|
| 1071 |
+
__SM_20_INTRINSICS_DECL__ void * __cvta_global_to_generic(size_t rawbits) __DEF_IF_HOST
|
| 1072 |
+
__SM_20_INTRINSICS_DECL__ void * __cvta_shared_to_generic(size_t rawbits) __DEF_IF_HOST
|
| 1073 |
+
__SM_20_INTRINSICS_DECL__ void * __cvta_constant_to_generic(size_t rawbits) __DEF_IF_HOST
|
| 1074 |
+
__SM_20_INTRINSICS_DECL__ void * __cvta_local_to_generic(size_t rawbits) __DEF_IF_HOST
|
| 1075 |
+
#if !defined(__CUDA_ARCH__) || (__CUDA_ARCH__ >= 700)
|
| 1076 |
+
__SM_20_INTRINSICS_DECL__ void * __cvta_grid_constant_to_generic(size_t rawbits) __DEF_IF_HOST
|
| 1077 |
+
#endif /* !defined(__CUDA_ARCH__) || (__CUDA_ARCH__ >= 700) */
|
| 1078 |
+
|
| 1079 |
+
// notice: update documentation for __nv_bswap*() when more host compilers are supported
|
| 1080 |
+
#if !defined(__CUDA_ARCH__) && !defined(_NVHPC_CUDA)
|
| 1081 |
+
/**
|
| 1082 |
+
* \ingroup CUDA_MATH_INTRINSIC_INT
|
| 1083 |
+
* \brief Reverse the order of bytes of the 16-bit unsigned integer.
|
| 1084 |
+
*
|
| 1085 |
+
* Reverse the order of bytes of \p x . Only supported in MSVC and other host
|
| 1086 |
+
* compilers which define the `__GNUC__` macro, such as GCC and CLANG.
|
| 1087 |
+
*
|
| 1088 |
+
* \return Returns \p x with the order of bytes reversed.
|
| 1089 |
+
*/
|
| 1090 |
+
__COMMON_INTRINSICS_DECL__ unsigned short __nv_bswap16(unsigned short x) {
|
| 1091 |
+
#if defined(__GNUC__)
|
| 1092 |
+
return __builtin_bswap16(x);
|
| 1093 |
+
#elif defined(_WIN32)
|
| 1094 |
+
return _byteswap_ushort(x);
|
| 1095 |
+
#else
|
| 1096 |
+
#error "unsupported platform"
|
| 1097 |
+
#endif /* defined(__GNUC__) */
|
| 1098 |
+
}
|
| 1099 |
+
|
| 1100 |
+
/**
|
| 1101 |
+
* \ingroup CUDA_MATH_INTRINSIC_INT
|
| 1102 |
+
* \brief Reverse the order of bytes of the 32-bit unsigned integer.
|
| 1103 |
+
*
|
| 1104 |
+
* Reverse the order of bytes of \p x . Only supported in MSVC and other host
|
| 1105 |
+
* compilers which define the `__GNUC__` macro, such as GCC and CLANG.
|
| 1106 |
+
*
|
| 1107 |
+
* \return Returns \p x with the order of bytes reversed.
|
| 1108 |
+
*/
|
| 1109 |
+
__COMMON_INTRINSICS_DECL__ unsigned int __nv_bswap32(unsigned int x) {
|
| 1110 |
+
#if defined(__GNUC__)
|
| 1111 |
+
return __builtin_bswap32(x);
|
| 1112 |
+
#elif defined(_WIN32)
|
| 1113 |
+
unsigned long ret = _byteswap_ulong(static_cast<unsigned long>(x));
|
| 1114 |
+
return static_cast<unsigned int>(ret);
|
| 1115 |
+
#else
|
| 1116 |
+
#error "unsupported platform"
|
| 1117 |
+
#endif /* defined(__GNUC__) */
|
| 1118 |
+
}
|
| 1119 |
+
|
| 1120 |
+
/**
|
| 1121 |
+
* \ingroup CUDA_MATH_INTRINSIC_INT
|
| 1122 |
+
* \brief Reverse the order of bytes of the 64-bit unsigned integer.
|
| 1123 |
+
*
|
| 1124 |
+
* Reverse the order of bytes of \p x . Only supported in MSVC and other host
|
| 1125 |
+
* compilers which define the `__GNUC__` macro, such as GCC and CLANG.
|
| 1126 |
+
*
|
| 1127 |
+
* \return Returns \p x with the order of bytes reversed.
|
| 1128 |
+
*/
|
| 1129 |
+
__COMMON_INTRINSICS_DECL__ unsigned long long __nv_bswap64(unsigned long long x) {
|
| 1130 |
+
#if defined(__GNUC__)
|
| 1131 |
+
return __builtin_bswap64(x);
|
| 1132 |
+
#elif defined(_WIN32)
|
| 1133 |
+
unsigned __int64 ret = _byteswap_uint64(static_cast<unsigned __int64>(x));
|
| 1134 |
+
return static_cast<unsigned long long>(ret);
|
| 1135 |
+
#else
|
| 1136 |
+
#error "unsupported platform"
|
| 1137 |
+
#endif /* defined(__GNUC__) */
|
| 1138 |
+
}
|
| 1139 |
+
#else
|
| 1140 |
+
__COMMON_INTRINSICS_DECL__ unsigned short __nv_bswap16(unsigned short in);
|
| 1141 |
+
__COMMON_INTRINSICS_DECL__ unsigned int __nv_bswap32(unsigned int in);
|
| 1142 |
+
__COMMON_INTRINSICS_DECL__ unsigned long long __nv_bswap64(unsigned long long in);
|
| 1143 |
+
#endif /* !defined(__CUDA_ARCH__) */
|
| 1144 |
+
|
| 1145 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 1146 |
+
|
| 1147 |
+
#undef __DEF_IF_HOST
|
| 1148 |
+
#undef __SM_20_INTRINSICS_DECL__
|
| 1149 |
+
#undef __COMMON_INTRINSICS_DECL__
|
| 1150 |
+
|
| 1151 |
+
#if (!defined(__CUDACC_RTC__) && defined(__CUDA_ARCH__)) || defined(_NVHPC_CUDA)
|
| 1152 |
+
#include "sm_20_intrinsics.hpp"
|
| 1153 |
+
#endif /* (!__CUDACC_RTC__ && __CUDA_ARCH__) || _NVHPC_CUDA */
|
| 1154 |
+
#endif /* !__SM_20_INTRINSICS_H__ */
|
| 1155 |
+
|
| 1156 |
+
#undef EXCLUDE_FROM_RTC
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/surface_indirect_functions.h
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2022 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
#ifndef __SURFACE_INDIRECT_FUNCTIONS_H__
|
| 52 |
+
#define __SURFACE_INDIRECT_FUNCTIONS_H__
|
| 53 |
+
|
| 54 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 55 |
+
|
| 56 |
+
#include "cuda_runtime_api.h"
|
| 57 |
+
|
| 58 |
+
template<typename T> struct __nv_isurf_trait { };
|
| 59 |
+
template<> struct __nv_isurf_trait<char> { typedef void type; };
|
| 60 |
+
template<> struct __nv_isurf_trait<signed char> { typedef void type; };
|
| 61 |
+
template<> struct __nv_isurf_trait<char1> { typedef void type; };
|
| 62 |
+
template<> struct __nv_isurf_trait<unsigned char> { typedef void type; };
|
| 63 |
+
template<> struct __nv_isurf_trait<uchar1> { typedef void type; };
|
| 64 |
+
template<> struct __nv_isurf_trait<short> { typedef void type; };
|
| 65 |
+
template<> struct __nv_isurf_trait<short1> { typedef void type; };
|
| 66 |
+
template<> struct __nv_isurf_trait<unsigned short> { typedef void type; };
|
| 67 |
+
template<> struct __nv_isurf_trait<ushort1> { typedef void type; };
|
| 68 |
+
template<> struct __nv_isurf_trait<int> { typedef void type; };
|
| 69 |
+
template<> struct __nv_isurf_trait<int1> { typedef void type; };
|
| 70 |
+
template<> struct __nv_isurf_trait<unsigned int> { typedef void type; };
|
| 71 |
+
template<> struct __nv_isurf_trait<uint1> { typedef void type; };
|
| 72 |
+
template<> struct __nv_isurf_trait<long long> { typedef void type; };
|
| 73 |
+
template<> struct __nv_isurf_trait<longlong1> { typedef void type; };
|
| 74 |
+
template<> struct __nv_isurf_trait<unsigned long long> { typedef void type; };
|
| 75 |
+
template<> struct __nv_isurf_trait<ulonglong1> { typedef void type; };
|
| 76 |
+
template<> struct __nv_isurf_trait<float> { typedef void type; };
|
| 77 |
+
template<> struct __nv_isurf_trait<float1> { typedef void type; };
|
| 78 |
+
|
| 79 |
+
template<> struct __nv_isurf_trait<char2> { typedef void type; };
|
| 80 |
+
template<> struct __nv_isurf_trait<uchar2> { typedef void type; };
|
| 81 |
+
template<> struct __nv_isurf_trait<short2> { typedef void type; };
|
| 82 |
+
template<> struct __nv_isurf_trait<ushort2> { typedef void type; };
|
| 83 |
+
template<> struct __nv_isurf_trait<int2> { typedef void type; };
|
| 84 |
+
template<> struct __nv_isurf_trait<uint2> { typedef void type; };
|
| 85 |
+
template<> struct __nv_isurf_trait<longlong2> { typedef void type; };
|
| 86 |
+
template<> struct __nv_isurf_trait<ulonglong2> { typedef void type; };
|
| 87 |
+
template<> struct __nv_isurf_trait<float2> { typedef void type; };
|
| 88 |
+
|
| 89 |
+
template<> struct __nv_isurf_trait<char4> { typedef void type; };
|
| 90 |
+
template<> struct __nv_isurf_trait<uchar4> { typedef void type; };
|
| 91 |
+
template<> struct __nv_isurf_trait<short4> { typedef void type; };
|
| 92 |
+
template<> struct __nv_isurf_trait<ushort4> { typedef void type; };
|
| 93 |
+
template<> struct __nv_isurf_trait<int4> { typedef void type; };
|
| 94 |
+
template<> struct __nv_isurf_trait<uint4> { typedef void type; };
|
| 95 |
+
template<> struct __nv_isurf_trait<float4> { typedef void type; };
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
template <typename T>
|
| 99 |
+
static __device__ typename __nv_isurf_trait<T>::type surf1Dread(T *ptr, cudaSurfaceObject_t obj, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap)
|
| 100 |
+
{
|
| 101 |
+
__nv_tex_surf_handler("__isurf1Dread", ptr, obj, x, mode);
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
template <class T>
|
| 105 |
+
static __device__ T surf1Dread(cudaSurfaceObject_t surfObject, int x, cudaSurfaceBoundaryMode boundaryMode = cudaBoundaryModeTrap)
|
| 106 |
+
{
|
| 107 |
+
T ret;
|
| 108 |
+
surf1Dread(&ret, surfObject, x, boundaryMode);
|
| 109 |
+
return ret;
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
template <typename T>
|
| 113 |
+
static __device__ typename __nv_isurf_trait<T>::type surf2Dread(T *ptr, cudaSurfaceObject_t obj, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap)
|
| 114 |
+
{
|
| 115 |
+
__nv_tex_surf_handler("__isurf2Dread", ptr, obj, x, y, mode);
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
template <class T>
|
| 119 |
+
static __device__ T surf2Dread(cudaSurfaceObject_t surfObject, int x, int y, cudaSurfaceBoundaryMode boundaryMode = cudaBoundaryModeTrap)
|
| 120 |
+
{
|
| 121 |
+
T ret;
|
| 122 |
+
surf2Dread(&ret, surfObject, x, y, boundaryMode);
|
| 123 |
+
return ret;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
template <typename T>
|
| 128 |
+
static __device__ typename __nv_isurf_trait<T>::type surf3Dread(T *ptr, cudaSurfaceObject_t obj, int x, int y, int z, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap)
|
| 129 |
+
{
|
| 130 |
+
__nv_tex_surf_handler("__isurf3Dread", ptr, obj, x, y, z, mode);
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
template <class T>
|
| 134 |
+
static __device__ T surf3Dread(cudaSurfaceObject_t surfObject, int x, int y, int z, cudaSurfaceBoundaryMode boundaryMode = cudaBoundaryModeTrap)
|
| 135 |
+
{
|
| 136 |
+
T ret;
|
| 137 |
+
surf3Dread(&ret, surfObject, x, y, z, boundaryMode);
|
| 138 |
+
return ret;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
template <typename T>
|
| 142 |
+
static __device__ typename __nv_isurf_trait<T>::type surf1DLayeredread(T *ptr, cudaSurfaceObject_t obj, int x, int layer, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap)
|
| 143 |
+
{
|
| 144 |
+
__nv_tex_surf_handler("__isurf1DLayeredread", ptr, obj, x, layer, mode);
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
template <class T>
|
| 148 |
+
static __device__ T surf1DLayeredread(cudaSurfaceObject_t surfObject, int x, int layer, cudaSurfaceBoundaryMode boundaryMode = cudaBoundaryModeTrap)
|
| 149 |
+
{
|
| 150 |
+
T ret;
|
| 151 |
+
surf1DLayeredread(&ret, surfObject, x, layer, boundaryMode);
|
| 152 |
+
return ret;
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
template <typename T>
|
| 156 |
+
static __device__ typename __nv_isurf_trait<T>::type surf2DLayeredread(T *ptr, cudaSurfaceObject_t obj, int x, int y, int layer, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap)
|
| 157 |
+
{
|
| 158 |
+
__nv_tex_surf_handler("__isurf2DLayeredread", ptr, obj, x, y, layer, mode);
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
template <class T>
|
| 162 |
+
static __device__ T surf2DLayeredread(cudaSurfaceObject_t surfObject, int x, int y, int layer, cudaSurfaceBoundaryMode boundaryMode = cudaBoundaryModeTrap)
|
| 163 |
+
{
|
| 164 |
+
T ret;
|
| 165 |
+
surf2DLayeredread(&ret, surfObject, x, y, layer, boundaryMode);
|
| 166 |
+
return ret;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
template <typename T>
|
| 170 |
+
static __device__ typename __nv_isurf_trait<T>::type surfCubemapread(T *ptr, cudaSurfaceObject_t obj, int x, int y, int face, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap)
|
| 171 |
+
{
|
| 172 |
+
__nv_tex_surf_handler("__isurfCubemapread", ptr, obj, x, y, face, mode);
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
template <class T>
|
| 176 |
+
static __device__ T surfCubemapread(cudaSurfaceObject_t surfObject, int x, int y, int face, cudaSurfaceBoundaryMode boundaryMode = cudaBoundaryModeTrap)
|
| 177 |
+
{
|
| 178 |
+
T ret;
|
| 179 |
+
surfCubemapread(&ret, surfObject, x, y, face, boundaryMode);
|
| 180 |
+
return ret;
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
template <typename T>
|
| 184 |
+
static __device__ typename __nv_isurf_trait<T>::type surfCubemapLayeredread(T *ptr, cudaSurfaceObject_t obj, int x, int y, int layerface, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap)
|
| 185 |
+
{
|
| 186 |
+
__nv_tex_surf_handler("__isurfCubemapLayeredread", ptr, obj, x, y, layerface, mode);
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
template <class T>
|
| 190 |
+
static __device__ T surfCubemapLayeredread(cudaSurfaceObject_t surfObject, int x, int y, int layerface, cudaSurfaceBoundaryMode boundaryMode = cudaBoundaryModeTrap)
|
| 191 |
+
{
|
| 192 |
+
T ret;
|
| 193 |
+
surfCubemapLayeredread(&ret, surfObject, x, y, layerface, boundaryMode);
|
| 194 |
+
return ret;
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
template <typename T>
|
| 198 |
+
static __device__ typename __nv_isurf_trait<T>::type surf1Dwrite(T val, cudaSurfaceObject_t obj, int x, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap)
|
| 199 |
+
{
|
| 200 |
+
__nv_tex_surf_handler("__isurf1Dwrite_v2", &val, obj, x, mode);
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
template <typename T>
|
| 204 |
+
static __device__ typename __nv_isurf_trait<T>::type surf2Dwrite(T val, cudaSurfaceObject_t obj, int x, int y, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap)
|
| 205 |
+
{
|
| 206 |
+
__nv_tex_surf_handler("__isurf2Dwrite_v2", &val, obj, x, y, mode);
|
| 207 |
+
}
|
| 208 |
+
|
| 209 |
+
template <typename T>
|
| 210 |
+
static __device__ typename __nv_isurf_trait<T>::type surf3Dwrite(T val, cudaSurfaceObject_t obj, int x, int y, int z, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap)
|
| 211 |
+
{
|
| 212 |
+
__nv_tex_surf_handler("__isurf3Dwrite_v2", &val, obj, x, y, z, mode);
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
template <typename T>
|
| 216 |
+
static __device__ typename __nv_isurf_trait<T>::type surf1DLayeredwrite(T val, cudaSurfaceObject_t obj, int x, int layer, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap)
|
| 217 |
+
{
|
| 218 |
+
__nv_tex_surf_handler("__isurf1DLayeredwrite_v2", &val, obj, x, layer, mode);
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
template <typename T>
|
| 222 |
+
static __device__ typename __nv_isurf_trait<T>::type surf2DLayeredwrite(T val, cudaSurfaceObject_t obj, int x, int y, int layer, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap)
|
| 223 |
+
{
|
| 224 |
+
__nv_tex_surf_handler("__isurf2DLayeredwrite_v2", &val, obj, x, y, layer, mode);
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
template <typename T>
|
| 228 |
+
static __device__ typename __nv_isurf_trait<T>::type surfCubemapwrite(T val, cudaSurfaceObject_t obj, int x, int y, int face, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap)
|
| 229 |
+
{
|
| 230 |
+
__nv_tex_surf_handler("__isurfCubemapwrite_v2", &val, obj, x, y, face, mode);
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
template <typename T>
|
| 234 |
+
static __device__ typename __nv_isurf_trait<T>::type surfCubemapLayeredwrite(T val, cudaSurfaceObject_t obj, int x, int y, int layerface, cudaSurfaceBoundaryMode mode = cudaBoundaryModeTrap)
|
| 235 |
+
{
|
| 236 |
+
__nv_tex_surf_handler("__isurfCubemapLayeredwrite_v2", &val, obj, x, y, layerface, mode);
|
| 237 |
+
}
|
| 238 |
+
|
| 239 |
+
#endif // __cplusplus && __CUDACC__
|
| 240 |
+
|
| 241 |
+
#endif // __SURFACE_INDIRECT_FUNCTIONS_H__
|
| 242 |
+
|
| 243 |
+
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/surface_types.h
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2023 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__SURFACE_TYPES_H__)
|
| 51 |
+
#define __SURFACE_TYPES_H__
|
| 52 |
+
|
| 53 |
+
/*******************************************************************************
|
| 54 |
+
* *
|
| 55 |
+
* *
|
| 56 |
+
* *
|
| 57 |
+
*******************************************************************************/
|
| 58 |
+
|
| 59 |
+
#include "driver_types.h"
|
| 60 |
+
|
| 61 |
+
#ifndef __CUDACC_RTC_MINIMAL__
|
| 62 |
+
|
| 63 |
+
/**
|
| 64 |
+
* \addtogroup CUDART_TYPES
|
| 65 |
+
*
|
| 66 |
+
* @{
|
| 67 |
+
*/
|
| 68 |
+
|
| 69 |
+
/*******************************************************************************
|
| 70 |
+
* *
|
| 71 |
+
* *
|
| 72 |
+
* *
|
| 73 |
+
*******************************************************************************/
|
| 74 |
+
|
| 75 |
+
#define cudaSurfaceType1D 0x01
|
| 76 |
+
#define cudaSurfaceType2D 0x02
|
| 77 |
+
#define cudaSurfaceType3D 0x03
|
| 78 |
+
#define cudaSurfaceTypeCubemap 0x0C
|
| 79 |
+
#define cudaSurfaceType1DLayered 0xF1
|
| 80 |
+
#define cudaSurfaceType2DLayered 0xF2
|
| 81 |
+
#define cudaSurfaceTypeCubemapLayered 0xFC
|
| 82 |
+
|
| 83 |
+
/**
|
| 84 |
+
* CUDA Surface boundary modes
|
| 85 |
+
*/
|
| 86 |
+
enum __device_builtin__ cudaSurfaceBoundaryMode
|
| 87 |
+
{
|
| 88 |
+
cudaBoundaryModeZero = 0, /**< Zero boundary mode */
|
| 89 |
+
cudaBoundaryModeClamp = 1, /**< Clamp boundary mode */
|
| 90 |
+
cudaBoundaryModeTrap = 2 /**< Trap boundary mode */
|
| 91 |
+
};
|
| 92 |
+
|
| 93 |
+
/**
|
| 94 |
+
* CUDA Surface format modes
|
| 95 |
+
*/
|
| 96 |
+
enum __device_builtin__ cudaSurfaceFormatMode
|
| 97 |
+
{
|
| 98 |
+
cudaFormatModeForced = 0, /**< Forced format mode */
|
| 99 |
+
cudaFormatModeAuto = 1 /**< Auto format mode */
|
| 100 |
+
};
|
| 101 |
+
|
| 102 |
+
/**
|
| 103 |
+
* An opaque value that represents a CUDA Surface object
|
| 104 |
+
*/
|
| 105 |
+
typedef __device_builtin__ unsigned long long cudaSurfaceObject_t;
|
| 106 |
+
|
| 107 |
+
/** @} */
|
| 108 |
+
/** @} */ /* END CUDART_TYPES */
|
| 109 |
+
|
| 110 |
+
#endif /* !__CUDACC_RTC_MINIMAL__ */
|
| 111 |
+
#endif /* !__SURFACE_TYPES_H__ */
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/texture_fetch_functions.h
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2022 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__TEXTURE_FETCH_FUNCTIONS_H__)
|
| 51 |
+
#define __TEXTURE_FETCH_FUNCTIONS_H__
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 55 |
+
|
| 56 |
+
/*******************************************************************************
|
| 57 |
+
* *
|
| 58 |
+
* *
|
| 59 |
+
* *
|
| 60 |
+
*******************************************************************************/
|
| 61 |
+
|
| 62 |
+
#include "cuda_runtime_api.h"
|
| 63 |
+
#include "cuda_texture_types.h"
|
| 64 |
+
|
| 65 |
+
#if defined(_WIN32)
|
| 66 |
+
# define __DEPRECATED__ __declspec(deprecated)
|
| 67 |
+
#else
|
| 68 |
+
# define __DEPRECATED__ __attribute__((deprecated))
|
| 69 |
+
#endif
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
template <typename T>
|
| 73 |
+
struct __nv_tex_rmet_ret { };
|
| 74 |
+
|
| 75 |
+
template<> struct __nv_tex_rmet_ret<char> { typedef char type; };
|
| 76 |
+
template<> struct __nv_tex_rmet_ret<signed char> { typedef signed char type; };
|
| 77 |
+
template<> struct __nv_tex_rmet_ret<unsigned char> { typedef unsigned char type; };
|
| 78 |
+
template<> struct __nv_tex_rmet_ret<char1> { typedef char1 type; };
|
| 79 |
+
template<> struct __nv_tex_rmet_ret<uchar1> { typedef uchar1 type; };
|
| 80 |
+
template<> struct __nv_tex_rmet_ret<char2> { typedef char2 type; };
|
| 81 |
+
template<> struct __nv_tex_rmet_ret<uchar2> { typedef uchar2 type; };
|
| 82 |
+
template<> struct __nv_tex_rmet_ret<char4> { typedef char4 type; };
|
| 83 |
+
template<> struct __nv_tex_rmet_ret<uchar4> { typedef uchar4 type; };
|
| 84 |
+
|
| 85 |
+
template<> struct __nv_tex_rmet_ret<short> { typedef short type; };
|
| 86 |
+
template<> struct __nv_tex_rmet_ret<unsigned short> { typedef unsigned short type; };
|
| 87 |
+
template<> struct __nv_tex_rmet_ret<short1> { typedef short1 type; };
|
| 88 |
+
template<> struct __nv_tex_rmet_ret<ushort1> { typedef ushort1 type; };
|
| 89 |
+
template<> struct __nv_tex_rmet_ret<short2> { typedef short2 type; };
|
| 90 |
+
template<> struct __nv_tex_rmet_ret<ushort2> { typedef ushort2 type; };
|
| 91 |
+
template<> struct __nv_tex_rmet_ret<short4> { typedef short4 type; };
|
| 92 |
+
template<> struct __nv_tex_rmet_ret<ushort4> { typedef ushort4 type; };
|
| 93 |
+
|
| 94 |
+
template<> struct __nv_tex_rmet_ret<int> { typedef int type; };
|
| 95 |
+
template<> struct __nv_tex_rmet_ret<unsigned int> { typedef unsigned int type; };
|
| 96 |
+
template<> struct __nv_tex_rmet_ret<int1> { typedef int1 type; };
|
| 97 |
+
template<> struct __nv_tex_rmet_ret<uint1> { typedef uint1 type; };
|
| 98 |
+
template<> struct __nv_tex_rmet_ret<int2> { typedef int2 type; };
|
| 99 |
+
template<> struct __nv_tex_rmet_ret<uint2> { typedef uint2 type; };
|
| 100 |
+
template<> struct __nv_tex_rmet_ret<int4> { typedef int4 type; };
|
| 101 |
+
template<> struct __nv_tex_rmet_ret<uint4> { typedef uint4 type; };
|
| 102 |
+
|
| 103 |
+
#if !defined(__LP64__)
|
| 104 |
+
template<> struct __nv_tex_rmet_ret<long> { typedef long type; };
|
| 105 |
+
template<> struct __nv_tex_rmet_ret<unsigned long> { typedef unsigned long type; };
|
| 106 |
+
template<> struct __nv_tex_rmet_ret<long1> { typedef long1 type; };
|
| 107 |
+
template<> struct __nv_tex_rmet_ret<ulong1> { typedef ulong1 type; };
|
| 108 |
+
template<> struct __nv_tex_rmet_ret<long2> { typedef long2 type; };
|
| 109 |
+
template<> struct __nv_tex_rmet_ret<ulong2> { typedef ulong2 type; };
|
| 110 |
+
template<> struct __nv_tex_rmet_ret<long4> { typedef long4 type; };
|
| 111 |
+
template<> struct __nv_tex_rmet_ret<ulong4> { typedef ulong4 type; };
|
| 112 |
+
#endif /* !__LP64__ */
|
| 113 |
+
template<> struct __nv_tex_rmet_ret<float> { typedef float type; };
|
| 114 |
+
template<> struct __nv_tex_rmet_ret<float1> { typedef float1 type; };
|
| 115 |
+
template<> struct __nv_tex_rmet_ret<float2> { typedef float2 type; };
|
| 116 |
+
template<> struct __nv_tex_rmet_ret<float4> { typedef float4 type; };
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
template <typename T> struct __nv_tex_rmet_cast { typedef T* type; };
|
| 120 |
+
#if !defined(__LP64__)
|
| 121 |
+
template<> struct __nv_tex_rmet_cast<long> { typedef int *type; };
|
| 122 |
+
template<> struct __nv_tex_rmet_cast<unsigned long> { typedef unsigned int *type; };
|
| 123 |
+
template<> struct __nv_tex_rmet_cast<long1> { typedef int1 *type; };
|
| 124 |
+
template<> struct __nv_tex_rmet_cast<ulong1> { typedef uint1 *type; };
|
| 125 |
+
template<> struct __nv_tex_rmet_cast<long2> { typedef int2 *type; };
|
| 126 |
+
template<> struct __nv_tex_rmet_cast<ulong2> { typedef uint2 *type; };
|
| 127 |
+
template<> struct __nv_tex_rmet_cast<long4> { typedef int4 *type; };
|
| 128 |
+
template<> struct __nv_tex_rmet_cast<ulong4> { typedef uint4 *type; };
|
| 129 |
+
#endif /* !__LP64__ */
|
| 130 |
+
|
| 131 |
+
template <typename T>
|
| 132 |
+
struct __nv_tex_rmnf_ret { };
|
| 133 |
+
|
| 134 |
+
template <> struct __nv_tex_rmnf_ret<char> { typedef float type; };
|
| 135 |
+
template <> struct __nv_tex_rmnf_ret<signed char> { typedef float type; };
|
| 136 |
+
template <> struct __nv_tex_rmnf_ret<unsigned char> { typedef float type; };
|
| 137 |
+
template <> struct __nv_tex_rmnf_ret<short> { typedef float type; };
|
| 138 |
+
template <> struct __nv_tex_rmnf_ret<unsigned short> { typedef float type; };
|
| 139 |
+
template <> struct __nv_tex_rmnf_ret<char1> { typedef float1 type; };
|
| 140 |
+
template <> struct __nv_tex_rmnf_ret<uchar1> { typedef float1 type; };
|
| 141 |
+
template <> struct __nv_tex_rmnf_ret<short1> { typedef float1 type; };
|
| 142 |
+
template <> struct __nv_tex_rmnf_ret<ushort1> { typedef float1 type; };
|
| 143 |
+
template <> struct __nv_tex_rmnf_ret<char2> { typedef float2 type; };
|
| 144 |
+
template <> struct __nv_tex_rmnf_ret<uchar2> { typedef float2 type; };
|
| 145 |
+
template <> struct __nv_tex_rmnf_ret<short2> { typedef float2 type; };
|
| 146 |
+
template <> struct __nv_tex_rmnf_ret<ushort2> { typedef float2 type; };
|
| 147 |
+
template <> struct __nv_tex_rmnf_ret<char4> { typedef float4 type; };
|
| 148 |
+
template <> struct __nv_tex_rmnf_ret<uchar4> { typedef float4 type; };
|
| 149 |
+
template <> struct __nv_tex_rmnf_ret<short4> { typedef float4 type; };
|
| 150 |
+
template <> struct __nv_tex_rmnf_ret<ushort4> { typedef float4 type; };
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
template <typename T>
|
| 154 |
+
struct __nv_tex2dgather_ret { };
|
| 155 |
+
template <> struct __nv_tex2dgather_ret<char> { typedef char4 type; };
|
| 156 |
+
template <> struct __nv_tex2dgather_ret<signed char> { typedef char4 type; };
|
| 157 |
+
template <> struct __nv_tex2dgather_ret<char1> { typedef char4 type; };
|
| 158 |
+
template <> struct __nv_tex2dgather_ret<char2> { typedef char4 type; };
|
| 159 |
+
template <> struct __nv_tex2dgather_ret<char3> { typedef char4 type; };
|
| 160 |
+
template <> struct __nv_tex2dgather_ret<char4> { typedef char4 type; };
|
| 161 |
+
template <> struct __nv_tex2dgather_ret<unsigned char> { typedef uchar4 type; };
|
| 162 |
+
template <> struct __nv_tex2dgather_ret<uchar1> { typedef uchar4 type; };
|
| 163 |
+
template <> struct __nv_tex2dgather_ret<uchar2> { typedef uchar4 type; };
|
| 164 |
+
template <> struct __nv_tex2dgather_ret<uchar3> { typedef uchar4 type; };
|
| 165 |
+
template <> struct __nv_tex2dgather_ret<uchar4> { typedef uchar4 type; };
|
| 166 |
+
|
| 167 |
+
template <> struct __nv_tex2dgather_ret<short> { typedef short4 type; };
|
| 168 |
+
template <> struct __nv_tex2dgather_ret<short1> { typedef short4 type; };
|
| 169 |
+
template <> struct __nv_tex2dgather_ret<short2> { typedef short4 type; };
|
| 170 |
+
template <> struct __nv_tex2dgather_ret<short3> { typedef short4 type; };
|
| 171 |
+
template <> struct __nv_tex2dgather_ret<short4> { typedef short4 type; };
|
| 172 |
+
template <> struct __nv_tex2dgather_ret<unsigned short> { typedef ushort4 type; };
|
| 173 |
+
template <> struct __nv_tex2dgather_ret<ushort1> { typedef ushort4 type; };
|
| 174 |
+
template <> struct __nv_tex2dgather_ret<ushort2> { typedef ushort4 type; };
|
| 175 |
+
template <> struct __nv_tex2dgather_ret<ushort3> { typedef ushort4 type; };
|
| 176 |
+
template <> struct __nv_tex2dgather_ret<ushort4> { typedef ushort4 type; };
|
| 177 |
+
|
| 178 |
+
template <> struct __nv_tex2dgather_ret<int> { typedef int4 type; };
|
| 179 |
+
template <> struct __nv_tex2dgather_ret<int1> { typedef int4 type; };
|
| 180 |
+
template <> struct __nv_tex2dgather_ret<int2> { typedef int4 type; };
|
| 181 |
+
template <> struct __nv_tex2dgather_ret<int3> { typedef int4 type; };
|
| 182 |
+
template <> struct __nv_tex2dgather_ret<int4> { typedef int4 type; };
|
| 183 |
+
template <> struct __nv_tex2dgather_ret<unsigned int> { typedef uint4 type; };
|
| 184 |
+
template <> struct __nv_tex2dgather_ret<uint1> { typedef uint4 type; };
|
| 185 |
+
template <> struct __nv_tex2dgather_ret<uint2> { typedef uint4 type; };
|
| 186 |
+
template <> struct __nv_tex2dgather_ret<uint3> { typedef uint4 type; };
|
| 187 |
+
template <> struct __nv_tex2dgather_ret<uint4> { typedef uint4 type; };
|
| 188 |
+
|
| 189 |
+
template <> struct __nv_tex2dgather_ret<float> { typedef float4 type; };
|
| 190 |
+
template <> struct __nv_tex2dgather_ret<float1> { typedef float4 type; };
|
| 191 |
+
template <> struct __nv_tex2dgather_ret<float2> { typedef float4 type; };
|
| 192 |
+
template <> struct __nv_tex2dgather_ret<float3> { typedef float4 type; };
|
| 193 |
+
template <> struct __nv_tex2dgather_ret<float4> { typedef float4 type; };
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
template<typename T> struct __nv_tex2dgather_rmnf_ret { };
|
| 197 |
+
template<> struct __nv_tex2dgather_rmnf_ret<char> { typedef float4 type; };
|
| 198 |
+
template<> struct __nv_tex2dgather_rmnf_ret<signed char> { typedef float4 type; };
|
| 199 |
+
template<> struct __nv_tex2dgather_rmnf_ret<unsigned char> { typedef float4 type; };
|
| 200 |
+
template<> struct __nv_tex2dgather_rmnf_ret<char1> { typedef float4 type; };
|
| 201 |
+
template<> struct __nv_tex2dgather_rmnf_ret<uchar1> { typedef float4 type; };
|
| 202 |
+
template<> struct __nv_tex2dgather_rmnf_ret<char2> { typedef float4 type; };
|
| 203 |
+
template<> struct __nv_tex2dgather_rmnf_ret<uchar2> { typedef float4 type; };
|
| 204 |
+
template<> struct __nv_tex2dgather_rmnf_ret<char3> { typedef float4 type; };
|
| 205 |
+
template<> struct __nv_tex2dgather_rmnf_ret<uchar3> { typedef float4 type; };
|
| 206 |
+
template<> struct __nv_tex2dgather_rmnf_ret<char4> { typedef float4 type; };
|
| 207 |
+
template<> struct __nv_tex2dgather_rmnf_ret<uchar4> { typedef float4 type; };
|
| 208 |
+
template<> struct __nv_tex2dgather_rmnf_ret<signed short> { typedef float4 type; };
|
| 209 |
+
template<> struct __nv_tex2dgather_rmnf_ret<unsigned short> { typedef float4 type; };
|
| 210 |
+
template<> struct __nv_tex2dgather_rmnf_ret<short1> { typedef float4 type; };
|
| 211 |
+
template<> struct __nv_tex2dgather_rmnf_ret<ushort1> { typedef float4 type; };
|
| 212 |
+
template<> struct __nv_tex2dgather_rmnf_ret<short2> { typedef float4 type; };
|
| 213 |
+
template<> struct __nv_tex2dgather_rmnf_ret<ushort2> { typedef float4 type; };
|
| 214 |
+
template<> struct __nv_tex2dgather_rmnf_ret<short3> { typedef float4 type; };
|
| 215 |
+
template<> struct __nv_tex2dgather_rmnf_ret<ushort3> { typedef float4 type; };
|
| 216 |
+
template<> struct __nv_tex2dgather_rmnf_ret<short4> { typedef float4 type; };
|
| 217 |
+
template<> struct __nv_tex2dgather_rmnf_ret<ushort4> { typedef float4 type; };
|
| 218 |
+
|
| 219 |
+
#undef __DEPRECATED__
|
| 220 |
+
|
| 221 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 222 |
+
|
| 223 |
+
#endif /* !__TEXTURE_FETCH_FUNCTIONS_H__ */
|
Prism/LLaDA/LLaDA_Prism/.venv/lib/python3.12/site-packages/triton/backends/nvidia/include/vector_functions.hpp
ADDED
|
@@ -0,0 +1,316 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2014 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__VECTOR_FUNCTIONS_HPP__)
|
| 51 |
+
#define __VECTOR_FUNCTIONS_HPP__
|
| 52 |
+
|
| 53 |
+
/*******************************************************************************
|
| 54 |
+
* *
|
| 55 |
+
* *
|
| 56 |
+
* *
|
| 57 |
+
*******************************************************************************/
|
| 58 |
+
|
| 59 |
+
#include "cuda_runtime_api.h"
|
| 60 |
+
|
| 61 |
+
#if defined(__CUDACC_RTC__)
|
| 62 |
+
#define __VECTOR_FUNCTIONS_DECL__ __host__ __device__
|
| 63 |
+
#else /* !__CUDACC_RTC__ */
|
| 64 |
+
#define __VECTOR_FUNCTIONS_DECL__ static __inline__ __host__ __device__
|
| 65 |
+
#endif /* __CUDACC_RTC__ */
|
| 66 |
+
|
| 67 |
+
/*******************************************************************************
|
| 68 |
+
* *
|
| 69 |
+
* *
|
| 70 |
+
* *
|
| 71 |
+
*******************************************************************************/
|
| 72 |
+
|
| 73 |
+
__VECTOR_FUNCTIONS_DECL__ char1 make_char1(signed char x)
|
| 74 |
+
{
|
| 75 |
+
char1 t; t.x = x; return t;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
__VECTOR_FUNCTIONS_DECL__ uchar1 make_uchar1(unsigned char x)
|
| 79 |
+
{
|
| 80 |
+
uchar1 t; t.x = x; return t;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
__VECTOR_FUNCTIONS_DECL__ char2 make_char2(signed char x, signed char y)
|
| 84 |
+
{
|
| 85 |
+
char2 t; t.x = x; t.y = y; return t;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
__VECTOR_FUNCTIONS_DECL__ uchar2 make_uchar2(unsigned char x, unsigned char y)
|
| 89 |
+
{
|
| 90 |
+
uchar2 t; t.x = x; t.y = y; return t;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
__VECTOR_FUNCTIONS_DECL__ char3 make_char3(signed char x, signed char y, signed char z)
|
| 94 |
+
{
|
| 95 |
+
char3 t; t.x = x; t.y = y; t.z = z; return t;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
__VECTOR_FUNCTIONS_DECL__ uchar3 make_uchar3(unsigned char x, unsigned char y, unsigned char z)
|
| 99 |
+
{
|
| 100 |
+
uchar3 t; t.x = x; t.y = y; t.z = z; return t;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
__VECTOR_FUNCTIONS_DECL__ char4 make_char4(signed char x, signed char y, signed char z, signed char w)
|
| 104 |
+
{
|
| 105 |
+
char4 t; t.x = x; t.y = y; t.z = z; t.w = w; return t;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
__VECTOR_FUNCTIONS_DECL__ uchar4 make_uchar4(unsigned char x, unsigned char y, unsigned char z, unsigned char w)
|
| 109 |
+
{
|
| 110 |
+
uchar4 t; t.x = x; t.y = y; t.z = z; t.w = w; return t;
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
__VECTOR_FUNCTIONS_DECL__ short1 make_short1(short x)
|
| 114 |
+
{
|
| 115 |
+
short1 t; t.x = x; return t;
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
__VECTOR_FUNCTIONS_DECL__ ushort1 make_ushort1(unsigned short x)
|
| 119 |
+
{
|
| 120 |
+
ushort1 t; t.x = x; return t;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
__VECTOR_FUNCTIONS_DECL__ short2 make_short2(short x, short y)
|
| 124 |
+
{
|
| 125 |
+
short2 t; t.x = x; t.y = y; return t;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
__VECTOR_FUNCTIONS_DECL__ ushort2 make_ushort2(unsigned short x, unsigned short y)
|
| 129 |
+
{
|
| 130 |
+
ushort2 t; t.x = x; t.y = y; return t;
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
__VECTOR_FUNCTIONS_DECL__ short3 make_short3(short x,short y, short z)
|
| 134 |
+
{
|
| 135 |
+
short3 t; t.x = x; t.y = y; t.z = z; return t;
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
__VECTOR_FUNCTIONS_DECL__ ushort3 make_ushort3(unsigned short x, unsigned short y, unsigned short z)
|
| 139 |
+
{
|
| 140 |
+
ushort3 t; t.x = x; t.y = y; t.z = z; return t;
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
__VECTOR_FUNCTIONS_DECL__ short4 make_short4(short x, short y, short z, short w)
|
| 144 |
+
{
|
| 145 |
+
short4 t; t.x = x; t.y = y; t.z = z; t.w = w; return t;
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
__VECTOR_FUNCTIONS_DECL__ ushort4 make_ushort4(unsigned short x, unsigned short y, unsigned short z, unsigned short w)
|
| 149 |
+
{
|
| 150 |
+
ushort4 t; t.x = x; t.y = y; t.z = z; t.w = w; return t;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
__VECTOR_FUNCTIONS_DECL__ int1 make_int1(int x)
|
| 154 |
+
{
|
| 155 |
+
int1 t; t.x = x; return t;
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
__VECTOR_FUNCTIONS_DECL__ uint1 make_uint1(unsigned int x)
|
| 159 |
+
{
|
| 160 |
+
uint1 t; t.x = x; return t;
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
__VECTOR_FUNCTIONS_DECL__ int2 make_int2(int x, int y)
|
| 164 |
+
{
|
| 165 |
+
int2 t; t.x = x; t.y = y; return t;
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
__VECTOR_FUNCTIONS_DECL__ uint2 make_uint2(unsigned int x, unsigned int y)
|
| 169 |
+
{
|
| 170 |
+
uint2 t; t.x = x; t.y = y; return t;
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
__VECTOR_FUNCTIONS_DECL__ int3 make_int3(int x, int y, int z)
|
| 174 |
+
{
|
| 175 |
+
int3 t; t.x = x; t.y = y; t.z = z; return t;
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
__VECTOR_FUNCTIONS_DECL__ uint3 make_uint3(unsigned int x, unsigned int y, unsigned int z)
|
| 179 |
+
{
|
| 180 |
+
uint3 t; t.x = x; t.y = y; t.z = z; return t;
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
__VECTOR_FUNCTIONS_DECL__ int4 make_int4(int x, int y, int z, int w)
|
| 184 |
+
{
|
| 185 |
+
int4 t; t.x = x; t.y = y; t.z = z; t.w = w; return t;
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
__VECTOR_FUNCTIONS_DECL__ uint4 make_uint4(unsigned int x, unsigned int y, unsigned int z, unsigned int w)
|
| 189 |
+
{
|
| 190 |
+
uint4 t; t.x = x; t.y = y; t.z = z; t.w = w; return t;
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
__VECTOR_FUNCTIONS_DECL__ long1 make_long1(long int x)
|
| 194 |
+
{
|
| 195 |
+
long1 t; t.x = x; return t;
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
__VECTOR_FUNCTIONS_DECL__ ulong1 make_ulong1(unsigned long int x)
|
| 199 |
+
{
|
| 200 |
+
ulong1 t; t.x = x; return t;
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
__VECTOR_FUNCTIONS_DECL__ long2 make_long2(long int x, long int y)
|
| 204 |
+
{
|
| 205 |
+
long2 t; t.x = x; t.y = y; return t;
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
__VECTOR_FUNCTIONS_DECL__ ulong2 make_ulong2(unsigned long int x, unsigned long int y)
|
| 209 |
+
{
|
| 210 |
+
ulong2 t; t.x = x; t.y = y; return t;
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
__VECTOR_FUNCTIONS_DECL__ long3 make_long3(long int x, long int y, long int z)
|
| 214 |
+
{
|
| 215 |
+
long3 t; t.x = x; t.y = y; t.z = z; return t;
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
__VECTOR_FUNCTIONS_DECL__ ulong3 make_ulong3(unsigned long int x, unsigned long int y, unsigned long int z)
|
| 219 |
+
{
|
| 220 |
+
ulong3 t; t.x = x; t.y = y; t.z = z; return t;
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
__VECTOR_FUNCTIONS_DECL__ long4 make_long4(long int x, long int y, long int z, long int w)
|
| 224 |
+
{
|
| 225 |
+
long4 t; t.x = x; t.y = y; t.z = z; t.w = w; return t;
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
__VECTOR_FUNCTIONS_DECL__ ulong4 make_ulong4(unsigned long int x, unsigned long int y, unsigned long int z, unsigned long int w)
|
| 229 |
+
{
|
| 230 |
+
ulong4 t; t.x = x; t.y = y; t.z = z; t.w = w; return t;
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
__VECTOR_FUNCTIONS_DECL__ float1 make_float1(float x)
|
| 234 |
+
{
|
| 235 |
+
float1 t; t.x = x; return t;
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
__VECTOR_FUNCTIONS_DECL__ float2 make_float2(float x, float y)
|
| 239 |
+
{
|
| 240 |
+
float2 t; t.x = x; t.y = y; return t;
|
| 241 |
+
}
|
| 242 |
+
|
| 243 |
+
__VECTOR_FUNCTIONS_DECL__ float3 make_float3(float x, float y, float z)
|
| 244 |
+
{
|
| 245 |
+
float3 t; t.x = x; t.y = y; t.z = z; return t;
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
__VECTOR_FUNCTIONS_DECL__ float4 make_float4(float x, float y, float z, float w)
|
| 249 |
+
{
|
| 250 |
+
float4 t; t.x = x; t.y = y; t.z = z; t.w = w; return t;
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
__VECTOR_FUNCTIONS_DECL__ longlong1 make_longlong1(long long int x)
|
| 254 |
+
{
|
| 255 |
+
longlong1 t; t.x = x; return t;
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
__VECTOR_FUNCTIONS_DECL__ ulonglong1 make_ulonglong1(unsigned long long int x)
|
| 259 |
+
{
|
| 260 |
+
ulonglong1 t; t.x = x; return t;
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
__VECTOR_FUNCTIONS_DECL__ longlong2 make_longlong2(long long int x, long long int y)
|
| 264 |
+
{
|
| 265 |
+
longlong2 t; t.x = x; t.y = y; return t;
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
__VECTOR_FUNCTIONS_DECL__ ulonglong2 make_ulonglong2(unsigned long long int x, unsigned long long int y)
|
| 269 |
+
{
|
| 270 |
+
ulonglong2 t; t.x = x; t.y = y; return t;
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
__VECTOR_FUNCTIONS_DECL__ longlong3 make_longlong3(long long int x, long long int y, long long int z)
|
| 274 |
+
{
|
| 275 |
+
longlong3 t; t.x = x; t.y = y; t.z = z; return t;
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
__VECTOR_FUNCTIONS_DECL__ ulonglong3 make_ulonglong3(unsigned long long int x, unsigned long long int y, unsigned long long int z)
|
| 279 |
+
{
|
| 280 |
+
ulonglong3 t; t.x = x; t.y = y; t.z = z; return t;
|
| 281 |
+
}
|
| 282 |
+
|
| 283 |
+
__VECTOR_FUNCTIONS_DECL__ longlong4 make_longlong4(long long int x, long long int y, long long int z, long long int w)
|
| 284 |
+
{
|
| 285 |
+
longlong4 t; t.x = x; t.y = y; t.z = z; t.w = w; return t;
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
__VECTOR_FUNCTIONS_DECL__ ulonglong4 make_ulonglong4(unsigned long long int x, unsigned long long int y, unsigned long long int z, unsigned long long int w)
|
| 289 |
+
{
|
| 290 |
+
ulonglong4 t; t.x = x; t.y = y; t.z = z; t.w = w; return t;
|
| 291 |
+
}
|
| 292 |
+
|
| 293 |
+
__VECTOR_FUNCTIONS_DECL__ double1 make_double1(double x)
|
| 294 |
+
{
|
| 295 |
+
double1 t; t.x = x; return t;
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
__VECTOR_FUNCTIONS_DECL__ double2 make_double2(double x, double y)
|
| 299 |
+
{
|
| 300 |
+
double2 t; t.x = x; t.y = y; return t;
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
__VECTOR_FUNCTIONS_DECL__ double3 make_double3(double x, double y, double z)
|
| 304 |
+
{
|
| 305 |
+
double3 t; t.x = x; t.y = y; t.z = z; return t;
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
__VECTOR_FUNCTIONS_DECL__ double4 make_double4(double x, double y, double z, double w)
|
| 309 |
+
{
|
| 310 |
+
double4 t; t.x = x; t.y = y; t.z = z; t.w = w; return t;
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
+
#undef __VECTOR_FUNCTIONS_DECL__
|
| 314 |
+
|
| 315 |
+
#endif /* !__VECTOR_FUNCTIONS_HPP__ */
|
| 316 |
+
|
URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/__init__.pxd
ADDED
|
File without changes
|
URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/__init__.py
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 2 |
+
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
|
| 3 |
+
|
| 4 |
+
from cuda.bindings import utils
|
| 5 |
+
from cuda.bindings._version import __version__
|
URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/__pycache__/__init__.cpython-312.pyc
ADDED
|
Binary file (312 Bytes). View file
|
|
|
URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/__pycache__/_version.cpython-312.pyc
ADDED
|
Binary file (234 Bytes). View file
|
|
|
URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/_bindings/__init__.py
ADDED
|
File without changes
|
URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/_bindings/__pycache__/__init__.cpython-312.pyc
ADDED
|
Binary file (215 Bytes). View file
|
|
|
URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/_bindings/cydriver.cpp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/_bindings/cydriver.pxd
ADDED
|
@@ -0,0 +1,951 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 2 |
+
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
|
| 3 |
+
|
| 4 |
+
# This code was automatically generated with version 12.9.0. Do not modify it directly.
|
| 5 |
+
from cuda.bindings.cydriver cimport *
|
| 6 |
+
|
| 7 |
+
cdef CUresult _cuGetErrorString(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 8 |
+
|
| 9 |
+
cdef CUresult _cuGetErrorName(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 10 |
+
|
| 11 |
+
cdef CUresult _cuInit(unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 12 |
+
|
| 13 |
+
cdef CUresult _cuDriverGetVersion(int* driverVersion) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 14 |
+
|
| 15 |
+
cdef CUresult _cuDeviceGet(CUdevice* device, int ordinal) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 16 |
+
|
| 17 |
+
cdef CUresult _cuDeviceGetCount(int* count) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 18 |
+
|
| 19 |
+
cdef CUresult _cuDeviceGetName(char* name, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 20 |
+
|
| 21 |
+
cdef CUresult _cuDeviceGetUuid(CUuuid* uuid, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 22 |
+
|
| 23 |
+
cdef CUresult _cuDeviceGetUuid_v2(CUuuid* uuid, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 24 |
+
|
| 25 |
+
cdef CUresult _cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 26 |
+
|
| 27 |
+
cdef CUresult _cuDeviceTotalMem_v2(size_t* numbytes, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 28 |
+
|
| 29 |
+
cdef CUresult _cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format pformat, unsigned numChannels, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 30 |
+
|
| 31 |
+
cdef CUresult _cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 32 |
+
|
| 33 |
+
cdef CUresult _cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 34 |
+
|
| 35 |
+
cdef CUresult _cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 36 |
+
|
| 37 |
+
cdef CUresult _cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 38 |
+
|
| 39 |
+
cdef CUresult _cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 40 |
+
|
| 41 |
+
cdef CUresult _cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType typename, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 42 |
+
|
| 43 |
+
cdef CUresult _cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 44 |
+
|
| 45 |
+
cdef CUresult _cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 46 |
+
|
| 47 |
+
cdef CUresult _cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 48 |
+
|
| 49 |
+
cdef CUresult _cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 50 |
+
|
| 51 |
+
cdef CUresult _cuDevicePrimaryCtxRelease_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 52 |
+
|
| 53 |
+
cdef CUresult _cuDevicePrimaryCtxSetFlags_v2(CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 54 |
+
|
| 55 |
+
cdef CUresult _cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 56 |
+
|
| 57 |
+
cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 58 |
+
|
| 59 |
+
cdef CUresult _cuCtxCreate_v2(CUcontext* pctx, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 60 |
+
|
| 61 |
+
cdef CUresult _cuCtxCreate_v3(CUcontext* pctx, CUexecAffinityParam* paramsArray, int numParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 62 |
+
|
| 63 |
+
cdef CUresult _cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 64 |
+
|
| 65 |
+
cdef CUresult _cuCtxDestroy_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 66 |
+
|
| 67 |
+
cdef CUresult _cuCtxPushCurrent_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 68 |
+
|
| 69 |
+
cdef CUresult _cuCtxPopCurrent_v2(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 70 |
+
|
| 71 |
+
cdef CUresult _cuCtxSetCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 72 |
+
|
| 73 |
+
cdef CUresult _cuCtxGetCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 74 |
+
|
| 75 |
+
cdef CUresult _cuCtxGetDevice(CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 76 |
+
|
| 77 |
+
cdef CUresult _cuCtxGetFlags(unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 78 |
+
|
| 79 |
+
cdef CUresult _cuCtxSetFlags(unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 80 |
+
|
| 81 |
+
cdef CUresult _cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 82 |
+
|
| 83 |
+
cdef CUresult _cuCtxSynchronize() except ?CUDA_ERROR_NOT_FOUND nogil
|
| 84 |
+
|
| 85 |
+
cdef CUresult _cuCtxSetLimit(CUlimit limit, size_t value) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 86 |
+
|
| 87 |
+
cdef CUresult _cuCtxGetLimit(size_t* pvalue, CUlimit limit) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 88 |
+
|
| 89 |
+
cdef CUresult _cuCtxGetCacheConfig(CUfunc_cache* pconfig) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 90 |
+
|
| 91 |
+
cdef CUresult _cuCtxSetCacheConfig(CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 92 |
+
|
| 93 |
+
cdef CUresult _cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 94 |
+
|
| 95 |
+
cdef CUresult _cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 96 |
+
|
| 97 |
+
cdef CUresult _cuCtxResetPersistingL2Cache() except ?CUDA_ERROR_NOT_FOUND nogil
|
| 98 |
+
|
| 99 |
+
cdef CUresult _cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType typename) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 100 |
+
|
| 101 |
+
cdef CUresult _cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 102 |
+
|
| 103 |
+
cdef CUresult _cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 104 |
+
|
| 105 |
+
cdef CUresult _cuCtxAttach(CUcontext* pctx, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 106 |
+
|
| 107 |
+
cdef CUresult _cuCtxDetach(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 108 |
+
|
| 109 |
+
cdef CUresult _cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 110 |
+
|
| 111 |
+
cdef CUresult _cuCtxSetSharedMemConfig(CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 112 |
+
|
| 113 |
+
cdef CUresult _cuModuleLoad(CUmodule* module, const char* fname) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 114 |
+
|
| 115 |
+
cdef CUresult _cuModuleLoadData(CUmodule* module, const void* image) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 116 |
+
|
| 117 |
+
cdef CUresult _cuModuleLoadDataEx(CUmodule* module, const void* image, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 118 |
+
|
| 119 |
+
cdef CUresult _cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 120 |
+
|
| 121 |
+
cdef CUresult _cuModuleUnload(CUmodule hmod) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 122 |
+
|
| 123 |
+
cdef CUresult _cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 124 |
+
|
| 125 |
+
cdef CUresult _cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 126 |
+
|
| 127 |
+
cdef CUresult _cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 128 |
+
|
| 129 |
+
cdef CUresult _cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 130 |
+
|
| 131 |
+
cdef CUresult _cuModuleGetGlobal_v2(CUdeviceptr* dptr, size_t* numbytes, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 132 |
+
|
| 133 |
+
cdef CUresult _cuLinkCreate_v2(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 134 |
+
|
| 135 |
+
cdef CUresult _cuLinkAddData_v2(CUlinkState state, CUjitInputType typename, void* data, size_t size, const char* name, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 136 |
+
|
| 137 |
+
cdef CUresult _cuLinkAddFile_v2(CUlinkState state, CUjitInputType typename, const char* path, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 138 |
+
|
| 139 |
+
cdef CUresult _cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 140 |
+
|
| 141 |
+
cdef CUresult _cuLinkDestroy(CUlinkState state) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 142 |
+
|
| 143 |
+
cdef CUresult _cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 144 |
+
|
| 145 |
+
cdef CUresult _cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 146 |
+
|
| 147 |
+
cdef CUresult _cuLibraryLoadData(CUlibrary* library, const void* code, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 148 |
+
|
| 149 |
+
cdef CUresult _cuLibraryLoadFromFile(CUlibrary* library, const char* fileName, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 150 |
+
|
| 151 |
+
cdef CUresult _cuLibraryUnload(CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 152 |
+
|
| 153 |
+
cdef CUresult _cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 154 |
+
|
| 155 |
+
cdef CUresult _cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 156 |
+
|
| 157 |
+
cdef CUresult _cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 158 |
+
|
| 159 |
+
cdef CUresult _cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 160 |
+
|
| 161 |
+
cdef CUresult _cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 162 |
+
|
| 163 |
+
cdef CUresult _cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 164 |
+
|
| 165 |
+
cdef CUresult _cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 166 |
+
|
| 167 |
+
cdef CUresult _cuLibraryGetManaged(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 168 |
+
|
| 169 |
+
cdef CUresult _cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 170 |
+
|
| 171 |
+
cdef CUresult _cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 172 |
+
|
| 173 |
+
cdef CUresult _cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 174 |
+
|
| 175 |
+
cdef CUresult _cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 176 |
+
|
| 177 |
+
cdef CUresult _cuKernelGetName(const char** name, CUkernel hfunc) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 178 |
+
|
| 179 |
+
cdef CUresult _cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 180 |
+
|
| 181 |
+
cdef CUresult _cuMemGetInfo_v2(size_t* free, size_t* total) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 182 |
+
|
| 183 |
+
cdef CUresult _cuMemAlloc_v2(CUdeviceptr* dptr, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 184 |
+
|
| 185 |
+
cdef CUresult _cuMemAllocPitch_v2(CUdeviceptr* dptr, size_t* pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 186 |
+
|
| 187 |
+
cdef CUresult _cuMemFree_v2(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 188 |
+
|
| 189 |
+
cdef CUresult _cuMemGetAddressRange_v2(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 190 |
+
|
| 191 |
+
cdef CUresult _cuMemAllocHost_v2(void** pp, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 192 |
+
|
| 193 |
+
cdef CUresult _cuMemFreeHost(void* p) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 194 |
+
|
| 195 |
+
cdef CUresult _cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 196 |
+
|
| 197 |
+
cdef CUresult _cuMemHostGetDevicePointer_v2(CUdeviceptr* pdptr, void* p, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 198 |
+
|
| 199 |
+
cdef CUresult _cuMemHostGetFlags(unsigned int* pFlags, void* p) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 200 |
+
|
| 201 |
+
cdef CUresult _cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 202 |
+
|
| 203 |
+
cdef CUresult _cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 204 |
+
|
| 205 |
+
cdef CUresult _cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 206 |
+
|
| 207 |
+
cdef CUresult _cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 208 |
+
|
| 209 |
+
cdef CUresult _cuDeviceGetPCIBusId(char* pciBusId, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 210 |
+
|
| 211 |
+
cdef CUresult _cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 212 |
+
|
| 213 |
+
cdef CUresult _cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 214 |
+
|
| 215 |
+
cdef CUresult _cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 216 |
+
|
| 217 |
+
cdef CUresult _cuIpcOpenMemHandle_v2(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 218 |
+
|
| 219 |
+
cdef CUresult _cuIpcCloseMemHandle(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 220 |
+
|
| 221 |
+
cdef CUresult _cuMemHostRegister_v2(void* p, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 222 |
+
|
| 223 |
+
cdef CUresult _cuMemHostUnregister(void* p) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 224 |
+
|
| 225 |
+
cdef CUresult _cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 226 |
+
|
| 227 |
+
cdef CUresult _cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 228 |
+
|
| 229 |
+
cdef CUresult _cuMemcpyHtoD_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 230 |
+
|
| 231 |
+
cdef CUresult _cuMemcpyDtoH_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 232 |
+
|
| 233 |
+
cdef CUresult _cuMemcpyDtoD_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 234 |
+
|
| 235 |
+
cdef CUresult _cuMemcpyDtoA_v2(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 236 |
+
|
| 237 |
+
cdef CUresult _cuMemcpyAtoD_v2(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 238 |
+
|
| 239 |
+
cdef CUresult _cuMemcpyHtoA_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 240 |
+
|
| 241 |
+
cdef CUresult _cuMemcpyAtoH_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 242 |
+
|
| 243 |
+
cdef CUresult _cuMemcpyAtoA_v2(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 244 |
+
|
| 245 |
+
cdef CUresult _cuMemcpy2D_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 246 |
+
|
| 247 |
+
cdef CUresult _cuMemcpy2DUnaligned_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 248 |
+
|
| 249 |
+
cdef CUresult _cuMemcpy3D_v2(const CUDA_MEMCPY3D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 250 |
+
|
| 251 |
+
cdef CUresult _cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 252 |
+
|
| 253 |
+
cdef CUresult _cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 254 |
+
|
| 255 |
+
cdef CUresult _cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 256 |
+
|
| 257 |
+
cdef CUresult _cuMemcpyHtoDAsync_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 258 |
+
|
| 259 |
+
cdef CUresult _cuMemcpyDtoHAsync_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 260 |
+
|
| 261 |
+
cdef CUresult _cuMemcpyDtoDAsync_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 262 |
+
|
| 263 |
+
cdef CUresult _cuMemcpyHtoAAsync_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 264 |
+
|
| 265 |
+
cdef CUresult _cuMemcpyAtoHAsync_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 266 |
+
|
| 267 |
+
cdef CUresult _cuMemcpy2DAsync_v2(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 268 |
+
|
| 269 |
+
cdef CUresult _cuMemcpy3DAsync_v2(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 270 |
+
|
| 271 |
+
cdef CUresult _cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 272 |
+
|
| 273 |
+
cdef CUresult _cuMemcpyBatchAsync(CUdeviceptr* dsts, CUdeviceptr* srcs, size_t* sizes, size_t count, CUmemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, size_t* failIdx, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 274 |
+
|
| 275 |
+
cdef CUresult _cuMemcpy3DBatchAsync(size_t numOps, CUDA_MEMCPY3D_BATCH_OP* opList, size_t* failIdx, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 276 |
+
|
| 277 |
+
cdef CUresult _cuMemsetD8_v2(CUdeviceptr dstDevice, unsigned char uc, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 278 |
+
|
| 279 |
+
cdef CUresult _cuMemsetD16_v2(CUdeviceptr dstDevice, unsigned short us, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 280 |
+
|
| 281 |
+
cdef CUresult _cuMemsetD32_v2(CUdeviceptr dstDevice, unsigned int ui, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 282 |
+
|
| 283 |
+
cdef CUresult _cuMemsetD2D8_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 284 |
+
|
| 285 |
+
cdef CUresult _cuMemsetD2D16_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 286 |
+
|
| 287 |
+
cdef CUresult _cuMemsetD2D32_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 288 |
+
|
| 289 |
+
cdef CUresult _cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 290 |
+
|
| 291 |
+
cdef CUresult _cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 292 |
+
|
| 293 |
+
cdef CUresult _cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 294 |
+
|
| 295 |
+
cdef CUresult _cuMemsetD2D8Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 296 |
+
|
| 297 |
+
cdef CUresult _cuMemsetD2D16Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 298 |
+
|
| 299 |
+
cdef CUresult _cuMemsetD2D32Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 300 |
+
|
| 301 |
+
cdef CUresult _cuArrayCreate_v2(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 302 |
+
|
| 303 |
+
cdef CUresult _cuArrayGetDescriptor_v2(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 304 |
+
|
| 305 |
+
cdef CUresult _cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 306 |
+
|
| 307 |
+
cdef CUresult _cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 308 |
+
|
| 309 |
+
cdef CUresult _cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 310 |
+
|
| 311 |
+
cdef CUresult _cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 312 |
+
|
| 313 |
+
cdef CUresult _cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 314 |
+
|
| 315 |
+
cdef CUresult _cuArrayDestroy(CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 316 |
+
|
| 317 |
+
cdef CUresult _cuArray3DCreate_v2(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 318 |
+
|
| 319 |
+
cdef CUresult _cuArray3DGetDescriptor_v2(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 320 |
+
|
| 321 |
+
cdef CUresult _cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 322 |
+
|
| 323 |
+
cdef CUresult _cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 324 |
+
|
| 325 |
+
cdef CUresult _cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 326 |
+
|
| 327 |
+
cdef CUresult _cuMemGetHandleForAddressRange(void* handle, CUdeviceptr dptr, size_t size, CUmemRangeHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 328 |
+
|
| 329 |
+
cdef CUresult _cuMemBatchDecompressAsync(CUmemDecompressParams* paramsArray, size_t count, unsigned int flags, size_t* errorIndex, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 330 |
+
|
| 331 |
+
cdef CUresult _cuMemAddressReserve(CUdeviceptr* ptr, size_t size, size_t alignment, CUdeviceptr addr, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 332 |
+
|
| 333 |
+
cdef CUresult _cuMemAddressFree(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 334 |
+
|
| 335 |
+
cdef CUresult _cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 336 |
+
|
| 337 |
+
cdef CUresult _cuMemRelease(CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 338 |
+
|
| 339 |
+
cdef CUresult _cuMemMap(CUdeviceptr ptr, size_t size, size_t offset, CUmemGenericAllocationHandle handle, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 340 |
+
|
| 341 |
+
cdef CUresult _cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 342 |
+
|
| 343 |
+
cdef CUresult _cuMemUnmap(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 344 |
+
|
| 345 |
+
cdef CUresult _cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 346 |
+
|
| 347 |
+
cdef CUresult _cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 348 |
+
|
| 349 |
+
cdef CUresult _cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 350 |
+
|
| 351 |
+
cdef CUresult _cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 352 |
+
|
| 353 |
+
cdef CUresult _cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 354 |
+
|
| 355 |
+
cdef CUresult _cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 356 |
+
|
| 357 |
+
cdef CUresult _cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 358 |
+
|
| 359 |
+
cdef CUresult _cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 360 |
+
|
| 361 |
+
cdef CUresult _cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 362 |
+
|
| 363 |
+
cdef CUresult _cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 364 |
+
|
| 365 |
+
cdef CUresult _cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 366 |
+
|
| 367 |
+
cdef CUresult _cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 368 |
+
|
| 369 |
+
cdef CUresult _cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 370 |
+
|
| 371 |
+
cdef CUresult _cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 372 |
+
|
| 373 |
+
cdef CUresult _cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 374 |
+
|
| 375 |
+
cdef CUresult _cuMemPoolDestroy(CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 376 |
+
|
| 377 |
+
cdef CUresult _cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 378 |
+
|
| 379 |
+
cdef CUresult _cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 380 |
+
|
| 381 |
+
cdef CUresult _cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 382 |
+
|
| 383 |
+
cdef CUresult _cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 384 |
+
|
| 385 |
+
cdef CUresult _cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 386 |
+
|
| 387 |
+
cdef CUresult _cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 388 |
+
|
| 389 |
+
cdef CUresult _cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 390 |
+
|
| 391 |
+
cdef CUresult _cuMulticastBindMem(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 392 |
+
|
| 393 |
+
cdef CUresult _cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 394 |
+
|
| 395 |
+
cdef CUresult _cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 396 |
+
|
| 397 |
+
cdef CUresult _cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 398 |
+
|
| 399 |
+
cdef CUresult _cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 400 |
+
|
| 401 |
+
cdef CUresult _cuMemPrefetchAsync(CUdeviceptr devPtr, size_t count, CUdevice dstDevice, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 402 |
+
|
| 403 |
+
cdef CUresult _cuMemPrefetchAsync_v2(CUdeviceptr devPtr, size_t count, CUmemLocation location, unsigned int flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 404 |
+
|
| 405 |
+
cdef CUresult _cuMemAdvise(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 406 |
+
|
| 407 |
+
cdef CUresult _cuMemAdvise_v2(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 408 |
+
|
| 409 |
+
cdef CUresult _cuMemRangeGetAttribute(void* data, size_t dataSize, CUmem_range_attribute attribute, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 410 |
+
|
| 411 |
+
cdef CUresult _cuMemRangeGetAttributes(void** data, size_t* dataSizes, CUmem_range_attribute* attributes, size_t numAttributes, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 412 |
+
|
| 413 |
+
cdef CUresult _cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 414 |
+
|
| 415 |
+
cdef CUresult _cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 416 |
+
|
| 417 |
+
cdef CUresult _cuStreamCreate(CUstream* phStream, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 418 |
+
|
| 419 |
+
cdef CUresult _cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 420 |
+
|
| 421 |
+
cdef CUresult _cuStreamGetPriority(CUstream hStream, int* priority) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 422 |
+
|
| 423 |
+
cdef CUresult _cuStreamGetDevice(CUstream hStream, CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 424 |
+
|
| 425 |
+
cdef CUresult _cuStreamGetFlags(CUstream hStream, unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 426 |
+
|
| 427 |
+
cdef CUresult _cuStreamGetId(CUstream hStream, unsigned long long* streamId) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 428 |
+
|
| 429 |
+
cdef CUresult _cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 430 |
+
|
| 431 |
+
cdef CUresult _cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 432 |
+
|
| 433 |
+
cdef CUresult _cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 434 |
+
|
| 435 |
+
cdef CUresult _cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 436 |
+
|
| 437 |
+
cdef CUresult _cuStreamBeginCapture_v2(CUstream hStream, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 438 |
+
|
| 439 |
+
cdef CUresult _cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 440 |
+
|
| 441 |
+
cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 442 |
+
|
| 443 |
+
cdef CUresult _cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 444 |
+
|
| 445 |
+
cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 446 |
+
|
| 447 |
+
cdef CUresult _cuStreamGetCaptureInfo_v2(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 448 |
+
|
| 449 |
+
cdef CUresult _cuStreamGetCaptureInfo_v3(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, const CUgraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 450 |
+
|
| 451 |
+
cdef CUresult _cuStreamUpdateCaptureDependencies(CUstream hStream, CUgraphNode* dependencies, size_t numDependencies, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 452 |
+
|
| 453 |
+
cdef CUresult _cuStreamUpdateCaptureDependencies_v2(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 454 |
+
|
| 455 |
+
cdef CUresult _cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 456 |
+
|
| 457 |
+
cdef CUresult _cuStreamQuery(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 458 |
+
|
| 459 |
+
cdef CUresult _cuStreamSynchronize(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 460 |
+
|
| 461 |
+
cdef CUresult _cuStreamDestroy_v2(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 462 |
+
|
| 463 |
+
cdef CUresult _cuStreamCopyAttributes(CUstream dst, CUstream src) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 464 |
+
|
| 465 |
+
cdef CUresult _cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 466 |
+
|
| 467 |
+
cdef CUresult _cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 468 |
+
|
| 469 |
+
cdef CUresult _cuEventCreate(CUevent* phEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 470 |
+
|
| 471 |
+
cdef CUresult _cuEventRecord(CUevent hEvent, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 472 |
+
|
| 473 |
+
cdef CUresult _cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 474 |
+
|
| 475 |
+
cdef CUresult _cuEventQuery(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 476 |
+
|
| 477 |
+
cdef CUresult _cuEventSynchronize(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 478 |
+
|
| 479 |
+
cdef CUresult _cuEventDestroy_v2(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 480 |
+
|
| 481 |
+
cdef CUresult _cuEventElapsedTime(float* pMilliseconds, CUevent hStart, CUevent hEnd) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 482 |
+
|
| 483 |
+
cdef CUresult _cuEventElapsedTime_v2(float* pMilliseconds, CUevent hStart, CUevent hEnd) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 484 |
+
|
| 485 |
+
cdef CUresult _cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 486 |
+
|
| 487 |
+
cdef CUresult _cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 488 |
+
|
| 489 |
+
cdef CUresult _cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 490 |
+
|
| 491 |
+
cdef CUresult _cuDestroyExternalMemory(CUexternalMemory extMem) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 492 |
+
|
| 493 |
+
cdef CUresult _cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 494 |
+
|
| 495 |
+
cdef CUresult _cuSignalExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 496 |
+
|
| 497 |
+
cdef CUresult _cuWaitExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 498 |
+
|
| 499 |
+
cdef CUresult _cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 500 |
+
|
| 501 |
+
cdef CUresult _cuStreamWaitValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 502 |
+
|
| 503 |
+
cdef CUresult _cuStreamWaitValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 504 |
+
|
| 505 |
+
cdef CUresult _cuStreamWriteValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 506 |
+
|
| 507 |
+
cdef CUresult _cuStreamWriteValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 508 |
+
|
| 509 |
+
cdef CUresult _cuStreamBatchMemOp_v2(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 510 |
+
|
| 511 |
+
cdef CUresult _cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 512 |
+
|
| 513 |
+
cdef CUresult _cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 514 |
+
|
| 515 |
+
cdef CUresult _cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 516 |
+
|
| 517 |
+
cdef CUresult _cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 518 |
+
|
| 519 |
+
cdef CUresult _cuFuncGetName(const char** name, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 520 |
+
|
| 521 |
+
cdef CUresult _cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 522 |
+
|
| 523 |
+
cdef CUresult _cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 524 |
+
|
| 525 |
+
cdef CUresult _cuFuncLoad(CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 526 |
+
|
| 527 |
+
cdef CUresult _cuLaunchKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 528 |
+
|
| 529 |
+
cdef CUresult _cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 530 |
+
|
| 531 |
+
cdef CUresult _cuLaunchCooperativeKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 532 |
+
|
| 533 |
+
cdef CUresult _cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 534 |
+
|
| 535 |
+
cdef CUresult _cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 536 |
+
|
| 537 |
+
cdef CUresult _cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 538 |
+
|
| 539 |
+
cdef CUresult _cuFuncSetSharedSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 540 |
+
|
| 541 |
+
cdef CUresult _cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 542 |
+
|
| 543 |
+
cdef CUresult _cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 544 |
+
|
| 545 |
+
cdef CUresult _cuParamSetf(CUfunction hfunc, int offset, float value) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 546 |
+
|
| 547 |
+
cdef CUresult _cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 548 |
+
|
| 549 |
+
cdef CUresult _cuLaunch(CUfunction f) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 550 |
+
|
| 551 |
+
cdef CUresult _cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 552 |
+
|
| 553 |
+
cdef CUresult _cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 554 |
+
|
| 555 |
+
cdef CUresult _cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 556 |
+
|
| 557 |
+
cdef CUresult _cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 558 |
+
|
| 559 |
+
cdef CUresult _cuGraphCreate(CUgraph* phGraph, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 560 |
+
|
| 561 |
+
cdef CUresult _cuGraphAddKernelNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 562 |
+
|
| 563 |
+
cdef CUresult _cuGraphKernelNodeGetParams_v2(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 564 |
+
|
| 565 |
+
cdef CUresult _cuGraphKernelNodeSetParams_v2(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 566 |
+
|
| 567 |
+
cdef CUresult _cuGraphAddMemcpyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 568 |
+
|
| 569 |
+
cdef CUresult _cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 570 |
+
|
| 571 |
+
cdef CUresult _cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 572 |
+
|
| 573 |
+
cdef CUresult _cuGraphAddMemsetNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 574 |
+
|
| 575 |
+
cdef CUresult _cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 576 |
+
|
| 577 |
+
cdef CUresult _cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 578 |
+
|
| 579 |
+
cdef CUresult _cuGraphAddHostNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 580 |
+
|
| 581 |
+
cdef CUresult _cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 582 |
+
|
| 583 |
+
cdef CUresult _cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 584 |
+
|
| 585 |
+
cdef CUresult _cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 586 |
+
|
| 587 |
+
cdef CUresult _cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 588 |
+
|
| 589 |
+
cdef CUresult _cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 590 |
+
|
| 591 |
+
cdef CUresult _cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 592 |
+
|
| 593 |
+
cdef CUresult _cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 594 |
+
|
| 595 |
+
cdef CUresult _cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 596 |
+
|
| 597 |
+
cdef CUresult _cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 598 |
+
|
| 599 |
+
cdef CUresult _cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 600 |
+
|
| 601 |
+
cdef CUresult _cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 602 |
+
|
| 603 |
+
cdef CUresult _cuGraphAddExternalSemaphoresSignalNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 604 |
+
|
| 605 |
+
cdef CUresult _cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 606 |
+
|
| 607 |
+
cdef CUresult _cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 608 |
+
|
| 609 |
+
cdef CUresult _cuGraphAddExternalSemaphoresWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 610 |
+
|
| 611 |
+
cdef CUresult _cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 612 |
+
|
| 613 |
+
cdef CUresult _cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 614 |
+
|
| 615 |
+
cdef CUresult _cuGraphAddBatchMemOpNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 616 |
+
|
| 617 |
+
cdef CUresult _cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 618 |
+
|
| 619 |
+
cdef CUresult _cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 620 |
+
|
| 621 |
+
cdef CUresult _cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 622 |
+
|
| 623 |
+
cdef CUresult _cuGraphAddMemAllocNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUDA_MEM_ALLOC_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 624 |
+
|
| 625 |
+
cdef CUresult _cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 626 |
+
|
| 627 |
+
cdef CUresult _cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 628 |
+
|
| 629 |
+
cdef CUresult _cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 630 |
+
|
| 631 |
+
cdef CUresult _cuDeviceGraphMemTrim(CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 632 |
+
|
| 633 |
+
cdef CUresult _cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 634 |
+
|
| 635 |
+
cdef CUresult _cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 636 |
+
|
| 637 |
+
cdef CUresult _cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 638 |
+
|
| 639 |
+
cdef CUresult _cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 640 |
+
|
| 641 |
+
cdef CUresult _cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* typename) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 642 |
+
|
| 643 |
+
cdef CUresult _cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 644 |
+
|
| 645 |
+
cdef CUresult _cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 646 |
+
|
| 647 |
+
cdef CUresult _cuGraphGetEdges(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, size_t* numEdges) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 648 |
+
|
| 649 |
+
cdef CUresult _cuGraphGetEdges_v2(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, CUgraphEdgeData* edgeData, size_t* numEdges) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 650 |
+
|
| 651 |
+
cdef CUresult _cuGraphNodeGetDependencies(CUgraphNode hNode, CUgraphNode* dependencies, size_t* numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 652 |
+
|
| 653 |
+
cdef CUresult _cuGraphNodeGetDependencies_v2(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 654 |
+
|
| 655 |
+
cdef CUresult _cuGraphNodeGetDependentNodes(CUgraphNode hNode, CUgraphNode* dependentNodes, size_t* numDependentNodes) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 656 |
+
|
| 657 |
+
cdef CUresult _cuGraphNodeGetDependentNodes_v2(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 658 |
+
|
| 659 |
+
cdef CUresult _cuGraphAddDependencies(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 660 |
+
|
| 661 |
+
cdef CUresult _cuGraphAddDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 662 |
+
|
| 663 |
+
cdef CUresult _cuGraphRemoveDependencies(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 664 |
+
|
| 665 |
+
cdef CUresult _cuGraphRemoveDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 666 |
+
|
| 667 |
+
cdef CUresult _cuGraphDestroyNode(CUgraphNode hNode) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 668 |
+
|
| 669 |
+
cdef CUresult _cuGraphInstantiateWithFlags(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 670 |
+
|
| 671 |
+
cdef CUresult _cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 672 |
+
|
| 673 |
+
cdef CUresult _cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 674 |
+
|
| 675 |
+
cdef CUresult _cuGraphExecKernelNodeSetParams_v2(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 676 |
+
|
| 677 |
+
cdef CUresult _cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 678 |
+
|
| 679 |
+
cdef CUresult _cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 680 |
+
|
| 681 |
+
cdef CUresult _cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 682 |
+
|
| 683 |
+
cdef CUresult _cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 684 |
+
|
| 685 |
+
cdef CUresult _cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 686 |
+
|
| 687 |
+
cdef CUresult _cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 688 |
+
|
| 689 |
+
cdef CUresult _cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 690 |
+
|
| 691 |
+
cdef CUresult _cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 692 |
+
|
| 693 |
+
cdef CUresult _cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 694 |
+
|
| 695 |
+
cdef CUresult _cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 696 |
+
|
| 697 |
+
cdef CUresult _cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 698 |
+
|
| 699 |
+
cdef CUresult _cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 700 |
+
|
| 701 |
+
cdef CUresult _cuGraphExecDestroy(CUgraphExec hGraphExec) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 702 |
+
|
| 703 |
+
cdef CUresult _cuGraphDestroy(CUgraph hGraph) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 704 |
+
|
| 705 |
+
cdef CUresult _cuGraphExecUpdate_v2(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 706 |
+
|
| 707 |
+
cdef CUresult _cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 708 |
+
|
| 709 |
+
cdef CUresult _cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 710 |
+
|
| 711 |
+
cdef CUresult _cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 712 |
+
|
| 713 |
+
cdef CUresult _cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 714 |
+
|
| 715 |
+
cdef CUresult _cuUserObjectCreate(CUuserObject* object_out, void* ptr, CUhostFn destroy, unsigned int initialRefcount, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 716 |
+
|
| 717 |
+
cdef CUresult _cuUserObjectRetain(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 718 |
+
|
| 719 |
+
cdef CUresult _cuUserObjectRelease(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 720 |
+
|
| 721 |
+
cdef CUresult _cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 722 |
+
|
| 723 |
+
cdef CUresult _cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 724 |
+
|
| 725 |
+
cdef CUresult _cuGraphAddNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 726 |
+
|
| 727 |
+
cdef CUresult _cuGraphAddNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 728 |
+
|
| 729 |
+
cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 730 |
+
|
| 731 |
+
cdef CUresult _cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 732 |
+
|
| 733 |
+
cdef CUresult _cuGraphConditionalHandleCreate(CUgraphConditionalHandle* pHandle_out, CUgraph hGraph, CUcontext ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 734 |
+
|
| 735 |
+
cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 736 |
+
|
| 737 |
+
cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 738 |
+
|
| 739 |
+
cdef CUresult _cuOccupancyMaxPotentialBlockSize(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 740 |
+
|
| 741 |
+
cdef CUresult _cuOccupancyMaxPotentialBlockSizeWithFlags(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 742 |
+
|
| 743 |
+
cdef CUresult _cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 744 |
+
|
| 745 |
+
cdef CUresult _cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 746 |
+
|
| 747 |
+
cdef CUresult _cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 748 |
+
|
| 749 |
+
cdef CUresult _cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 750 |
+
|
| 751 |
+
cdef CUresult _cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 752 |
+
|
| 753 |
+
cdef CUresult _cuTexRefSetAddress_v2(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t numbytes) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 754 |
+
|
| 755 |
+
cdef CUresult _cuTexRefSetAddress2D_v3(CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR* desc, CUdeviceptr dptr, size_t Pitch) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 756 |
+
|
| 757 |
+
cdef CUresult _cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 758 |
+
|
| 759 |
+
cdef CUresult _cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 760 |
+
|
| 761 |
+
cdef CUresult _cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 762 |
+
|
| 763 |
+
cdef CUresult _cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 764 |
+
|
| 765 |
+
cdef CUresult _cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 766 |
+
|
| 767 |
+
cdef CUresult _cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 768 |
+
|
| 769 |
+
cdef CUresult _cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 770 |
+
|
| 771 |
+
cdef CUresult _cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 772 |
+
|
| 773 |
+
cdef CUresult _cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 774 |
+
|
| 775 |
+
cdef CUresult _cuTexRefGetAddress_v2(CUdeviceptr* pdptr, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 776 |
+
|
| 777 |
+
cdef CUresult _cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 778 |
+
|
| 779 |
+
cdef CUresult _cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 780 |
+
|
| 781 |
+
cdef CUresult _cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 782 |
+
|
| 783 |
+
cdef CUresult _cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 784 |
+
|
| 785 |
+
cdef CUresult _cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 786 |
+
|
| 787 |
+
cdef CUresult _cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 788 |
+
|
| 789 |
+
cdef CUresult _cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 790 |
+
|
| 791 |
+
cdef CUresult _cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 792 |
+
|
| 793 |
+
cdef CUresult _cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 794 |
+
|
| 795 |
+
cdef CUresult _cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 796 |
+
|
| 797 |
+
cdef CUresult _cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 798 |
+
|
| 799 |
+
cdef CUresult _cuTexRefCreate(CUtexref* pTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 800 |
+
|
| 801 |
+
cdef CUresult _cuTexRefDestroy(CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 802 |
+
|
| 803 |
+
cdef CUresult _cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 804 |
+
|
| 805 |
+
cdef CUresult _cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 806 |
+
|
| 807 |
+
cdef CUresult _cuTexObjectCreate(CUtexObject* pTexObject, const CUDA_RESOURCE_DESC* pResDesc, const CUDA_TEXTURE_DESC* pTexDesc, const CUDA_RESOURCE_VIEW_DESC* pResViewDesc) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 808 |
+
|
| 809 |
+
cdef CUresult _cuTexObjectDestroy(CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 810 |
+
|
| 811 |
+
cdef CUresult _cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 812 |
+
|
| 813 |
+
cdef CUresult _cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 814 |
+
|
| 815 |
+
cdef CUresult _cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 816 |
+
|
| 817 |
+
cdef CUresult _cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 818 |
+
|
| 819 |
+
cdef CUresult _cuSurfObjectDestroy(CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 820 |
+
|
| 821 |
+
cdef CUresult _cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 822 |
+
|
| 823 |
+
cdef CUresult _cuTensorMapEncodeTiled(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const cuuint32_t* boxDim, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 824 |
+
|
| 825 |
+
cdef CUresult _cuTensorMapEncodeIm2col(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const int* pixelBoxLowerCorner, const int* pixelBoxUpperCorner, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 826 |
+
|
| 827 |
+
cdef CUresult _cuTensorMapEncodeIm2colWide(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapIm2ColWideMode mode, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 828 |
+
|
| 829 |
+
cdef CUresult _cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 830 |
+
|
| 831 |
+
cdef CUresult _cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 832 |
+
|
| 833 |
+
cdef CUresult _cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 834 |
+
|
| 835 |
+
cdef CUresult _cuCtxDisablePeerAccess(CUcontext peerContext) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 836 |
+
|
| 837 |
+
cdef CUresult _cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 838 |
+
|
| 839 |
+
cdef CUresult _cuGraphicsUnregisterResource(CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 840 |
+
|
| 841 |
+
cdef CUresult _cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 842 |
+
|
| 843 |
+
cdef CUresult _cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 844 |
+
|
| 845 |
+
cdef CUresult _cuGraphicsResourceGetMappedPointer_v2(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 846 |
+
|
| 847 |
+
cdef CUresult _cuGraphicsResourceSetMapFlags_v2(CUgraphicsResource resource, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 848 |
+
|
| 849 |
+
cdef CUresult _cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 850 |
+
|
| 851 |
+
cdef CUresult _cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 852 |
+
|
| 853 |
+
cdef CUresult _cuGetProcAddress_v2(const char* symbol, void** pfn, int cudaVersion, cuuint64_t flags, CUdriverProcAddressQueryResult* symbolStatus) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 854 |
+
|
| 855 |
+
cdef CUresult _cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 856 |
+
|
| 857 |
+
cdef CUresult _cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 858 |
+
|
| 859 |
+
cdef CUresult _cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 860 |
+
|
| 861 |
+
cdef CUresult _cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 862 |
+
|
| 863 |
+
cdef CUresult _cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 864 |
+
|
| 865 |
+
cdef CUresult _cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 866 |
+
|
| 867 |
+
cdef CUresult _cuGreenCtxDestroy(CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 868 |
+
|
| 869 |
+
cdef CUresult _cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 870 |
+
|
| 871 |
+
cdef CUresult _cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 872 |
+
|
| 873 |
+
cdef CUresult _cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 874 |
+
|
| 875 |
+
cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 876 |
+
|
| 877 |
+
cdef CUresult _cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remaining, unsigned int useFlags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 878 |
+
|
| 879 |
+
cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 880 |
+
|
| 881 |
+
cdef CUresult _cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 882 |
+
|
| 883 |
+
cdef CUresult _cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 884 |
+
|
| 885 |
+
cdef CUresult _cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 886 |
+
|
| 887 |
+
cdef CUresult _cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 888 |
+
|
| 889 |
+
cdef CUresult _cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 890 |
+
|
| 891 |
+
cdef CUresult _cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 892 |
+
|
| 893 |
+
cdef CUresult _cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 894 |
+
|
| 895 |
+
cdef CUresult _cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 896 |
+
|
| 897 |
+
cdef CUresult _cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 898 |
+
|
| 899 |
+
cdef CUresult _cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 900 |
+
|
| 901 |
+
cdef CUresult _cuCheckpointProcessGetState(int pid, CUprocessState* state) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 902 |
+
|
| 903 |
+
cdef CUresult _cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 904 |
+
|
| 905 |
+
cdef CUresult _cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 906 |
+
|
| 907 |
+
cdef CUresult _cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 908 |
+
|
| 909 |
+
cdef CUresult _cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 910 |
+
|
| 911 |
+
cdef CUresult _cuProfilerStart() except ?CUDA_ERROR_NOT_FOUND nogil
|
| 912 |
+
|
| 913 |
+
cdef CUresult _cuProfilerStop() except ?CUDA_ERROR_NOT_FOUND nogil
|
| 914 |
+
|
| 915 |
+
cdef CUresult _cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 916 |
+
|
| 917 |
+
cdef CUresult _cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 918 |
+
|
| 919 |
+
cdef CUresult _cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 920 |
+
|
| 921 |
+
cdef CUresult _cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 922 |
+
|
| 923 |
+
cdef CUresult _cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 924 |
+
|
| 925 |
+
cdef CUresult _cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 926 |
+
|
| 927 |
+
cdef CUresult _cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 928 |
+
|
| 929 |
+
cdef CUresult _cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 930 |
+
|
| 931 |
+
cdef CUresult _cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 932 |
+
|
| 933 |
+
cdef CUresult _cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 934 |
+
|
| 935 |
+
cdef CUresult _cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 936 |
+
|
| 937 |
+
cdef CUresult _cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 938 |
+
|
| 939 |
+
cdef CUresult _cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 940 |
+
|
| 941 |
+
cdef CUresult _cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 942 |
+
|
| 943 |
+
cdef CUresult _cuGLGetDevices_v2(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 944 |
+
|
| 945 |
+
cdef CUresult _cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 946 |
+
|
| 947 |
+
cdef CUresult _cuVDPAUCtxCreate_v2(CUcontext* pCtx, unsigned int flags, CUdevice device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 948 |
+
|
| 949 |
+
cdef CUresult _cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
| 950 |
+
|
| 951 |
+
cdef CUresult _cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
|
URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/_bindings/cydriver.pyx
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/_bindings/cynvrtc.cpp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
URSA/.venv_ursa/lib/python3.12/site-packages/cuda/bindings/_bindings/cynvrtc.cpython-312-x86_64-linux-gnu.so
ADDED
|
Binary file (94.8 kB). View file
|
|
|