Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- cuda_toolkit/include/CL/cl.h +2012 -0
- cuda_toolkit/include/CL/cl.hpp +0 -0
- cuda_toolkit/include/CL/cl_d3d10.h +241 -0
- cuda_toolkit/include/CL/cl_d3d10_ext.h +122 -0
- cuda_toolkit/include/CL/cl_d3d11.h +243 -0
- cuda_toolkit/include/CL/cl_d3d11_ext.h +122 -0
- cuda_toolkit/include/CL/cl_d3d9_ext.h +143 -0
- cuda_toolkit/include/CL/cl_dx9_media_sharing.h +350 -0
- cuda_toolkit/include/CL/cl_egl.h +167 -0
- cuda_toolkit/include/CL/cl_ext.h +0 -0
- cuda_toolkit/include/CL/cl_gl.h +372 -0
- cuda_toolkit/include/CL/cl_gl_ext.h +18 -0
- cuda_toolkit/include/CL/cl_platform.h +1478 -0
- cuda_toolkit/include/CL/cl_version.h +81 -0
- cuda_toolkit/include/CL/opencl.h +32 -0
- cuda_toolkit/include/cooperative_groups/memcpy_async.h +62 -0
- cuda_toolkit/include/cooperative_groups/reduce.h +63 -0
- cuda_toolkit/include/cooperative_groups/scan.h +63 -0
- cuda_toolkit/include/crt/common_functions.h +310 -0
- cuda_toolkit/lib/x64/OpenCL.lib +0 -0
- cuda_toolkit/lib/x64/cublasLt.lib +0 -0
- cuda_toolkit/lib/x64/cufft.lib +0 -0
- cuda_toolkit/lib/x64/cufftw.lib +0 -0
- cuda_toolkit/lib/x64/curand.lib +0 -0
- cuda_toolkit/lib/x64/cusolverMg.lib +0 -0
- cuda_toolkit/lib/x64/nppc.lib +0 -0
- cuda_toolkit/lib/x64/nppim.lib +0 -0
- cuda_toolkit/lib/x64/nppisu.lib +0 -0
- cuda_toolkit/lib/x64/nvJitLink.lib +0 -0
- cuda_toolkit/lib/x64/nvblas.lib +0 -0
- cuda_toolkit/lib/x64/nvfatbin.lib +0 -0
- cuda_toolkit/lib/x64/nvjpeg.lib +0 -0
- cuda_toolkit/lib/x64/nvml.lib +0 -0
- cuda_toolkit/lib/x64/nvrtc.lib +0 -0
- cuda_toolkit/lib/x64/nvvm.lib +0 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/Archives/index.html +194 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/CopyrightAndLicenses/index.html +0 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/CustomizationGuide/index.html +821 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/Notices/notices.html +154 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/NsightCompute/index.html +0 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/NsightComputeCli/index.html +0 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/NvRulesAPI/index.html +169 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ProfilingGuide/index.html +0 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ReleaseNotes/index.html +0 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ReleaseNotes/topics/gpu-support.html +196 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ReleaseNotes/topics/known-issues.html +230 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ReleaseNotes/topics/library-support-optix.html +195 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ReleaseNotes/topics/library-support.html +152 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ReleaseNotes/topics/platform-support.html +206 -0
- cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ReleaseNotes/topics/release-notes-older-versions.html +151 -0
cuda_toolkit/include/CL/cl.h
ADDED
|
@@ -0,0 +1,2012 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*******************************************************************************
|
| 2 |
+
* Copyright (c) 2008-2020 The Khronos Group Inc.
|
| 3 |
+
*
|
| 4 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
* you may not use this file except in compliance with the License.
|
| 6 |
+
* You may obtain a copy of the License at
|
| 7 |
+
*
|
| 8 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
*
|
| 10 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
* See the License for the specific language governing permissions and
|
| 14 |
+
* limitations under the License.
|
| 15 |
+
******************************************************************************/
|
| 16 |
+
|
| 17 |
+
#ifndef __OPENCL_CL_H
|
| 18 |
+
#define __OPENCL_CL_H
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
#ifndef __CL_VERSION_H
|
| 22 |
+
#define __CL_VERSION_H
|
| 23 |
+
|
| 24 |
+
/* Detect which version to target */
|
| 25 |
+
#if !defined(CL_TARGET_OPENCL_VERSION)
|
| 26 |
+
#pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
|
| 27 |
+
#define CL_TARGET_OPENCL_VERSION 300
|
| 28 |
+
#endif
|
| 29 |
+
#if CL_TARGET_OPENCL_VERSION != 100 && \
|
| 30 |
+
CL_TARGET_OPENCL_VERSION != 110 && \
|
| 31 |
+
CL_TARGET_OPENCL_VERSION != 120 && \
|
| 32 |
+
CL_TARGET_OPENCL_VERSION != 200 && \
|
| 33 |
+
CL_TARGET_OPENCL_VERSION != 210 && \
|
| 34 |
+
CL_TARGET_OPENCL_VERSION != 220 && \
|
| 35 |
+
CL_TARGET_OPENCL_VERSION != 300
|
| 36 |
+
#pragma message("cl_version: CL_TARGET_OPENCL_VERSION is not a valid value (100, 110, 120, 200, 210, 220, 300). Defaulting to 300 (OpenCL 3.0)")
|
| 37 |
+
#undef CL_TARGET_OPENCL_VERSION
|
| 38 |
+
#define CL_TARGET_OPENCL_VERSION 300
|
| 39 |
+
#endif
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
/* OpenCL Version */
|
| 43 |
+
#if CL_TARGET_OPENCL_VERSION >= 300 && !defined(CL_VERSION_3_0)
|
| 44 |
+
#define CL_VERSION_3_0 1
|
| 45 |
+
#endif
|
| 46 |
+
#if CL_TARGET_OPENCL_VERSION >= 220 && !defined(CL_VERSION_2_2)
|
| 47 |
+
#define CL_VERSION_2_2 1
|
| 48 |
+
#endif
|
| 49 |
+
#if CL_TARGET_OPENCL_VERSION >= 210 && !defined(CL_VERSION_2_1)
|
| 50 |
+
#define CL_VERSION_2_1 1
|
| 51 |
+
#endif
|
| 52 |
+
#if CL_TARGET_OPENCL_VERSION >= 200 && !defined(CL_VERSION_2_0)
|
| 53 |
+
#define CL_VERSION_2_0 1
|
| 54 |
+
#endif
|
| 55 |
+
#if CL_TARGET_OPENCL_VERSION >= 120 && !defined(CL_VERSION_1_2)
|
| 56 |
+
#define CL_VERSION_1_2 1
|
| 57 |
+
#endif
|
| 58 |
+
#if CL_TARGET_OPENCL_VERSION >= 110 && !defined(CL_VERSION_1_1)
|
| 59 |
+
#define CL_VERSION_1_1 1
|
| 60 |
+
#endif
|
| 61 |
+
#if CL_TARGET_OPENCL_VERSION >= 100 && !defined(CL_VERSION_1_0)
|
| 62 |
+
#define CL_VERSION_1_0 1
|
| 63 |
+
#endif
|
| 64 |
+
|
| 65 |
+
/* Allow deprecated APIs for older OpenCL versions. */
|
| 66 |
+
#if CL_TARGET_OPENCL_VERSION <= 220 && !defined(CL_USE_DEPRECATED_OPENCL_2_2_APIS)
|
| 67 |
+
#define CL_USE_DEPRECATED_OPENCL_2_2_APIS
|
| 68 |
+
#endif
|
| 69 |
+
#if CL_TARGET_OPENCL_VERSION <= 210 && !defined(CL_USE_DEPRECATED_OPENCL_2_1_APIS)
|
| 70 |
+
#define CL_USE_DEPRECATED_OPENCL_2_1_APIS
|
| 71 |
+
#endif
|
| 72 |
+
#if CL_TARGET_OPENCL_VERSION <= 200 && !defined(CL_USE_DEPRECATED_OPENCL_2_0_APIS)
|
| 73 |
+
#define CL_USE_DEPRECATED_OPENCL_2_0_APIS
|
| 74 |
+
#endif
|
| 75 |
+
#if CL_TARGET_OPENCL_VERSION <= 120 && !defined(CL_USE_DEPRECATED_OPENCL_1_2_APIS)
|
| 76 |
+
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
|
| 77 |
+
#endif
|
| 78 |
+
#if CL_TARGET_OPENCL_VERSION <= 110 && !defined(CL_USE_DEPRECATED_OPENCL_1_1_APIS)
|
| 79 |
+
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
|
| 80 |
+
#endif
|
| 81 |
+
#if CL_TARGET_OPENCL_VERSION <= 100 && !defined(CL_USE_DEPRECATED_OPENCL_1_0_APIS)
|
| 82 |
+
#define CL_USE_DEPRECATED_OPENCL_1_0_APIS
|
| 83 |
+
#endif
|
| 84 |
+
|
| 85 |
+
#endif /* __CL_VERSION_H */
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
#include <CL/cl_platform.h>
|
| 89 |
+
|
| 90 |
+
#ifdef __cplusplus
|
| 91 |
+
extern "C" {
|
| 92 |
+
#endif
|
| 93 |
+
|
| 94 |
+
/******************************************************************************/
|
| 95 |
+
|
| 96 |
+
typedef struct _cl_platform_id * cl_platform_id;
|
| 97 |
+
typedef struct _cl_device_id * cl_device_id;
|
| 98 |
+
typedef struct _cl_context * cl_context;
|
| 99 |
+
typedef struct _cl_command_queue * cl_command_queue;
|
| 100 |
+
typedef struct _cl_mem * cl_mem;
|
| 101 |
+
typedef struct _cl_program * cl_program;
|
| 102 |
+
typedef struct _cl_kernel * cl_kernel;
|
| 103 |
+
typedef struct _cl_event * cl_event;
|
| 104 |
+
typedef struct _cl_sampler * cl_sampler;
|
| 105 |
+
|
| 106 |
+
typedef cl_uint cl_bool; /* WARNING! Unlike cl_ types in cl_platform.h, cl_bool is not guaranteed to be the same size as the bool in kernels. */
|
| 107 |
+
typedef cl_ulong cl_bitfield;
|
| 108 |
+
typedef cl_ulong cl_properties;
|
| 109 |
+
typedef cl_bitfield cl_device_type;
|
| 110 |
+
typedef cl_uint cl_platform_info;
|
| 111 |
+
typedef cl_uint cl_device_info;
|
| 112 |
+
typedef cl_bitfield cl_device_fp_config;
|
| 113 |
+
typedef cl_uint cl_device_mem_cache_type;
|
| 114 |
+
typedef cl_uint cl_device_local_mem_type;
|
| 115 |
+
typedef cl_bitfield cl_device_exec_capabilities;
|
| 116 |
+
#ifdef CL_VERSION_2_0
|
| 117 |
+
typedef cl_bitfield cl_device_svm_capabilities;
|
| 118 |
+
#endif
|
| 119 |
+
typedef cl_bitfield cl_command_queue_properties;
|
| 120 |
+
#ifdef CL_VERSION_1_2
|
| 121 |
+
typedef intptr_t cl_device_partition_property;
|
| 122 |
+
typedef cl_bitfield cl_device_affinity_domain;
|
| 123 |
+
#endif
|
| 124 |
+
|
| 125 |
+
typedef intptr_t cl_context_properties;
|
| 126 |
+
typedef cl_uint cl_context_info;
|
| 127 |
+
#ifdef CL_VERSION_2_0
|
| 128 |
+
typedef cl_properties cl_queue_properties;
|
| 129 |
+
#endif
|
| 130 |
+
typedef cl_uint cl_command_queue_info;
|
| 131 |
+
typedef cl_uint cl_channel_order;
|
| 132 |
+
typedef cl_uint cl_channel_type;
|
| 133 |
+
typedef cl_bitfield cl_mem_flags;
|
| 134 |
+
#ifdef CL_VERSION_2_0
|
| 135 |
+
typedef cl_bitfield cl_svm_mem_flags;
|
| 136 |
+
#endif
|
| 137 |
+
typedef cl_uint cl_mem_object_type;
|
| 138 |
+
typedef cl_uint cl_mem_info;
|
| 139 |
+
#ifdef CL_VERSION_1_2
|
| 140 |
+
typedef cl_bitfield cl_mem_migration_flags;
|
| 141 |
+
#endif
|
| 142 |
+
typedef cl_uint cl_image_info;
|
| 143 |
+
#ifdef CL_VERSION_1_1
|
| 144 |
+
typedef cl_uint cl_buffer_create_type;
|
| 145 |
+
#endif
|
| 146 |
+
typedef cl_uint cl_addressing_mode;
|
| 147 |
+
typedef cl_uint cl_filter_mode;
|
| 148 |
+
typedef cl_uint cl_sampler_info;
|
| 149 |
+
typedef cl_bitfield cl_map_flags;
|
| 150 |
+
#ifdef CL_VERSION_2_0
|
| 151 |
+
typedef intptr_t cl_pipe_properties;
|
| 152 |
+
typedef cl_uint cl_pipe_info;
|
| 153 |
+
#endif
|
| 154 |
+
typedef cl_uint cl_program_info;
|
| 155 |
+
typedef cl_uint cl_program_build_info;
|
| 156 |
+
#ifdef CL_VERSION_1_2
|
| 157 |
+
typedef cl_uint cl_program_binary_type;
|
| 158 |
+
#endif
|
| 159 |
+
typedef cl_int cl_build_status;
|
| 160 |
+
typedef cl_uint cl_kernel_info;
|
| 161 |
+
#ifdef CL_VERSION_1_2
|
| 162 |
+
typedef cl_uint cl_kernel_arg_info;
|
| 163 |
+
typedef cl_uint cl_kernel_arg_address_qualifier;
|
| 164 |
+
typedef cl_uint cl_kernel_arg_access_qualifier;
|
| 165 |
+
typedef cl_bitfield cl_kernel_arg_type_qualifier;
|
| 166 |
+
#endif
|
| 167 |
+
typedef cl_uint cl_kernel_work_group_info;
|
| 168 |
+
#ifdef CL_VERSION_2_1
|
| 169 |
+
typedef cl_uint cl_kernel_sub_group_info;
|
| 170 |
+
#endif
|
| 171 |
+
typedef cl_uint cl_event_info;
|
| 172 |
+
typedef cl_uint cl_command_type;
|
| 173 |
+
typedef cl_uint cl_profiling_info;
|
| 174 |
+
#ifdef CL_VERSION_2_0
|
| 175 |
+
typedef cl_properties cl_sampler_properties;
|
| 176 |
+
typedef cl_uint cl_kernel_exec_info;
|
| 177 |
+
#endif
|
| 178 |
+
#ifdef CL_VERSION_3_0
|
| 179 |
+
typedef cl_bitfield cl_device_atomic_capabilities;
|
| 180 |
+
typedef cl_bitfield cl_device_device_enqueue_capabilities;
|
| 181 |
+
typedef cl_uint cl_khronos_vendor_id;
|
| 182 |
+
typedef cl_properties cl_mem_properties;
|
| 183 |
+
typedef cl_uint cl_version;
|
| 184 |
+
#endif
|
| 185 |
+
|
| 186 |
+
typedef struct _cl_image_format {
|
| 187 |
+
cl_channel_order image_channel_order;
|
| 188 |
+
cl_channel_type image_channel_data_type;
|
| 189 |
+
} cl_image_format;
|
| 190 |
+
|
| 191 |
+
#ifdef CL_VERSION_1_2
|
| 192 |
+
|
| 193 |
+
typedef struct _cl_image_desc {
|
| 194 |
+
cl_mem_object_type image_type;
|
| 195 |
+
size_t image_width;
|
| 196 |
+
size_t image_height;
|
| 197 |
+
size_t image_depth;
|
| 198 |
+
size_t image_array_size;
|
| 199 |
+
size_t image_row_pitch;
|
| 200 |
+
size_t image_slice_pitch;
|
| 201 |
+
cl_uint num_mip_levels;
|
| 202 |
+
cl_uint num_samples;
|
| 203 |
+
#ifdef CL_VERSION_2_0
|
| 204 |
+
#if defined(__GNUC__)
|
| 205 |
+
__extension__ /* Prevents warnings about anonymous union in -pedantic builds */
|
| 206 |
+
#endif
|
| 207 |
+
#if defined(_MSC_VER) && !defined(__STDC__)
|
| 208 |
+
#pragma warning( push )
|
| 209 |
+
#pragma warning( disable : 4201 ) /* Prevents warning about nameless struct/union in /W4 builds */
|
| 210 |
+
#endif
|
| 211 |
+
#ifdef __clang__
|
| 212 |
+
#pragma clang diagnostic push
|
| 213 |
+
#pragma clang diagnostic ignored "-Wc11-extensions" /* Prevents warning about nameless union being C11 extension*/
|
| 214 |
+
#endif
|
| 215 |
+
#if defined(_MSC_VER) && defined(__STDC__)
|
| 216 |
+
/* Anonymous unions are not supported in /Za builds */
|
| 217 |
+
#else
|
| 218 |
+
union {
|
| 219 |
+
#endif
|
| 220 |
+
#endif
|
| 221 |
+
cl_mem buffer;
|
| 222 |
+
#ifdef CL_VERSION_2_0
|
| 223 |
+
#if defined(_MSC_VER) && defined(__STDC__)
|
| 224 |
+
/* Anonymous unions are not supported in /Za builds */
|
| 225 |
+
#else
|
| 226 |
+
cl_mem mem_object;
|
| 227 |
+
};
|
| 228 |
+
#endif
|
| 229 |
+
#if defined(_MSC_VER) && !defined(__STDC__)
|
| 230 |
+
#pragma warning( pop )
|
| 231 |
+
#endif
|
| 232 |
+
#ifdef __clang__
|
| 233 |
+
#pragma clang diagnostic pop
|
| 234 |
+
#endif
|
| 235 |
+
#endif
|
| 236 |
+
} cl_image_desc;
|
| 237 |
+
|
| 238 |
+
#endif
|
| 239 |
+
|
| 240 |
+
#ifdef CL_VERSION_1_1
|
| 241 |
+
|
| 242 |
+
typedef struct _cl_buffer_region {
|
| 243 |
+
size_t origin;
|
| 244 |
+
size_t size;
|
| 245 |
+
} cl_buffer_region;
|
| 246 |
+
|
| 247 |
+
#endif
|
| 248 |
+
|
| 249 |
+
#ifdef CL_VERSION_3_0
|
| 250 |
+
|
| 251 |
+
#define CL_NAME_VERSION_MAX_NAME_SIZE 64
|
| 252 |
+
|
| 253 |
+
typedef struct _cl_name_version {
|
| 254 |
+
cl_version version;
|
| 255 |
+
char name[CL_NAME_VERSION_MAX_NAME_SIZE];
|
| 256 |
+
} cl_name_version;
|
| 257 |
+
|
| 258 |
+
#endif
|
| 259 |
+
|
| 260 |
+
/******************************************************************************/
|
| 261 |
+
|
| 262 |
+
/* Error Codes */
|
| 263 |
+
#define CL_SUCCESS 0
|
| 264 |
+
#define CL_DEVICE_NOT_FOUND -1
|
| 265 |
+
#define CL_DEVICE_NOT_AVAILABLE -2
|
| 266 |
+
#define CL_COMPILER_NOT_AVAILABLE -3
|
| 267 |
+
#define CL_MEM_OBJECT_ALLOCATION_FAILURE -4
|
| 268 |
+
#define CL_OUT_OF_RESOURCES -5
|
| 269 |
+
#define CL_OUT_OF_HOST_MEMORY -6
|
| 270 |
+
#define CL_PROFILING_INFO_NOT_AVAILABLE -7
|
| 271 |
+
#define CL_MEM_COPY_OVERLAP -8
|
| 272 |
+
#define CL_IMAGE_FORMAT_MISMATCH -9
|
| 273 |
+
#define CL_IMAGE_FORMAT_NOT_SUPPORTED -10
|
| 274 |
+
#define CL_BUILD_PROGRAM_FAILURE -11
|
| 275 |
+
#define CL_MAP_FAILURE -12
|
| 276 |
+
#ifdef CL_VERSION_1_1
|
| 277 |
+
#define CL_MISALIGNED_SUB_BUFFER_OFFSET -13
|
| 278 |
+
#define CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST -14
|
| 279 |
+
#endif
|
| 280 |
+
#ifdef CL_VERSION_1_2
|
| 281 |
+
#define CL_COMPILE_PROGRAM_FAILURE -15
|
| 282 |
+
#define CL_LINKER_NOT_AVAILABLE -16
|
| 283 |
+
#define CL_LINK_PROGRAM_FAILURE -17
|
| 284 |
+
#define CL_DEVICE_PARTITION_FAILED -18
|
| 285 |
+
#define CL_KERNEL_ARG_INFO_NOT_AVAILABLE -19
|
| 286 |
+
#endif
|
| 287 |
+
|
| 288 |
+
#define CL_INVALID_VALUE -30
|
| 289 |
+
#define CL_INVALID_DEVICE_TYPE -31
|
| 290 |
+
#define CL_INVALID_PLATFORM -32
|
| 291 |
+
#define CL_INVALID_DEVICE -33
|
| 292 |
+
#define CL_INVALID_CONTEXT -34
|
| 293 |
+
#define CL_INVALID_QUEUE_PROPERTIES -35
|
| 294 |
+
#define CL_INVALID_COMMAND_QUEUE -36
|
| 295 |
+
#define CL_INVALID_HOST_PTR -37
|
| 296 |
+
#define CL_INVALID_MEM_OBJECT -38
|
| 297 |
+
#define CL_INVALID_IMAGE_FORMAT_DESCRIPTOR -39
|
| 298 |
+
#define CL_INVALID_IMAGE_SIZE -40
|
| 299 |
+
#define CL_INVALID_SAMPLER -41
|
| 300 |
+
#define CL_INVALID_BINARY -42
|
| 301 |
+
#define CL_INVALID_BUILD_OPTIONS -43
|
| 302 |
+
#define CL_INVALID_PROGRAM -44
|
| 303 |
+
#define CL_INVALID_PROGRAM_EXECUTABLE -45
|
| 304 |
+
#define CL_INVALID_KERNEL_NAME -46
|
| 305 |
+
#define CL_INVALID_KERNEL_DEFINITION -47
|
| 306 |
+
#define CL_INVALID_KERNEL -48
|
| 307 |
+
#define CL_INVALID_ARG_INDEX -49
|
| 308 |
+
#define CL_INVALID_ARG_VALUE -50
|
| 309 |
+
#define CL_INVALID_ARG_SIZE -51
|
| 310 |
+
#define CL_INVALID_KERNEL_ARGS -52
|
| 311 |
+
#define CL_INVALID_WORK_DIMENSION -53
|
| 312 |
+
#define CL_INVALID_WORK_GROUP_SIZE -54
|
| 313 |
+
#define CL_INVALID_WORK_ITEM_SIZE -55
|
| 314 |
+
#define CL_INVALID_GLOBAL_OFFSET -56
|
| 315 |
+
#define CL_INVALID_EVENT_WAIT_LIST -57
|
| 316 |
+
#define CL_INVALID_EVENT -58
|
| 317 |
+
#define CL_INVALID_OPERATION -59
|
| 318 |
+
#define CL_INVALID_GL_OBJECT -60
|
| 319 |
+
#define CL_INVALID_BUFFER_SIZE -61
|
| 320 |
+
#define CL_INVALID_MIP_LEVEL -62
|
| 321 |
+
#define CL_INVALID_GLOBAL_WORK_SIZE -63
|
| 322 |
+
#ifdef CL_VERSION_1_1
|
| 323 |
+
#define CL_INVALID_PROPERTY -64
|
| 324 |
+
#endif
|
| 325 |
+
#ifdef CL_VERSION_1_2
|
| 326 |
+
#define CL_INVALID_IMAGE_DESCRIPTOR -65
|
| 327 |
+
#define CL_INVALID_COMPILER_OPTIONS -66
|
| 328 |
+
#define CL_INVALID_LINKER_OPTIONS -67
|
| 329 |
+
#define CL_INVALID_DEVICE_PARTITION_COUNT -68
|
| 330 |
+
#endif
|
| 331 |
+
#ifdef CL_VERSION_2_0
|
| 332 |
+
#define CL_INVALID_PIPE_SIZE -69
|
| 333 |
+
#define CL_INVALID_DEVICE_QUEUE -70
|
| 334 |
+
#endif
|
| 335 |
+
#ifdef CL_VERSION_2_2
|
| 336 |
+
#define CL_INVALID_SPEC_ID -71
|
| 337 |
+
#define CL_MAX_SIZE_RESTRICTION_EXCEEDED -72
|
| 338 |
+
#endif
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
/* cl_bool */
|
| 342 |
+
#define CL_FALSE 0
|
| 343 |
+
#define CL_TRUE 1
|
| 344 |
+
#ifdef CL_VERSION_1_2
|
| 345 |
+
#define CL_BLOCKING CL_TRUE
|
| 346 |
+
#define CL_NON_BLOCKING CL_FALSE
|
| 347 |
+
#endif
|
| 348 |
+
|
| 349 |
+
/* cl_platform_info */
|
| 350 |
+
#define CL_PLATFORM_PROFILE 0x0900
|
| 351 |
+
#define CL_PLATFORM_VERSION 0x0901
|
| 352 |
+
#define CL_PLATFORM_NAME 0x0902
|
| 353 |
+
#define CL_PLATFORM_VENDOR 0x0903
|
| 354 |
+
#define CL_PLATFORM_EXTENSIONS 0x0904
|
| 355 |
+
#ifdef CL_VERSION_2_1
|
| 356 |
+
#define CL_PLATFORM_HOST_TIMER_RESOLUTION 0x0905
|
| 357 |
+
#endif
|
| 358 |
+
#ifdef CL_VERSION_3_0
|
| 359 |
+
#define CL_PLATFORM_NUMERIC_VERSION 0x0906
|
| 360 |
+
#define CL_PLATFORM_EXTENSIONS_WITH_VERSION 0x0907
|
| 361 |
+
#endif
|
| 362 |
+
|
| 363 |
+
/* cl_device_type - bitfield */
|
| 364 |
+
#define CL_DEVICE_TYPE_DEFAULT (1 << 0)
|
| 365 |
+
#define CL_DEVICE_TYPE_CPU (1 << 1)
|
| 366 |
+
#define CL_DEVICE_TYPE_GPU (1 << 2)
|
| 367 |
+
#define CL_DEVICE_TYPE_ACCELERATOR (1 << 3)
|
| 368 |
+
#ifdef CL_VERSION_1_2
|
| 369 |
+
#define CL_DEVICE_TYPE_CUSTOM (1 << 4)
|
| 370 |
+
#endif
|
| 371 |
+
#define CL_DEVICE_TYPE_ALL 0xFFFFFFFF
|
| 372 |
+
|
| 373 |
+
/* cl_device_info */
|
| 374 |
+
#define CL_DEVICE_TYPE 0x1000
|
| 375 |
+
#define CL_DEVICE_VENDOR_ID 0x1001
|
| 376 |
+
#define CL_DEVICE_MAX_COMPUTE_UNITS 0x1002
|
| 377 |
+
#define CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS 0x1003
|
| 378 |
+
#define CL_DEVICE_MAX_WORK_GROUP_SIZE 0x1004
|
| 379 |
+
#define CL_DEVICE_MAX_WORK_ITEM_SIZES 0x1005
|
| 380 |
+
#define CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR 0x1006
|
| 381 |
+
#define CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT 0x1007
|
| 382 |
+
#define CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT 0x1008
|
| 383 |
+
#define CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG 0x1009
|
| 384 |
+
#define CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT 0x100A
|
| 385 |
+
#define CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE 0x100B
|
| 386 |
+
#define CL_DEVICE_MAX_CLOCK_FREQUENCY 0x100C
|
| 387 |
+
#define CL_DEVICE_ADDRESS_BITS 0x100D
|
| 388 |
+
#define CL_DEVICE_MAX_READ_IMAGE_ARGS 0x100E
|
| 389 |
+
#define CL_DEVICE_MAX_WRITE_IMAGE_ARGS 0x100F
|
| 390 |
+
#define CL_DEVICE_MAX_MEM_ALLOC_SIZE 0x1010
|
| 391 |
+
#define CL_DEVICE_IMAGE2D_MAX_WIDTH 0x1011
|
| 392 |
+
#define CL_DEVICE_IMAGE2D_MAX_HEIGHT 0x1012
|
| 393 |
+
#define CL_DEVICE_IMAGE3D_MAX_WIDTH 0x1013
|
| 394 |
+
#define CL_DEVICE_IMAGE3D_MAX_HEIGHT 0x1014
|
| 395 |
+
#define CL_DEVICE_IMAGE3D_MAX_DEPTH 0x1015
|
| 396 |
+
#define CL_DEVICE_IMAGE_SUPPORT 0x1016
|
| 397 |
+
#define CL_DEVICE_MAX_PARAMETER_SIZE 0x1017
|
| 398 |
+
#define CL_DEVICE_MAX_SAMPLERS 0x1018
|
| 399 |
+
#define CL_DEVICE_MEM_BASE_ADDR_ALIGN 0x1019
|
| 400 |
+
#define CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE 0x101A
|
| 401 |
+
#define CL_DEVICE_SINGLE_FP_CONFIG 0x101B
|
| 402 |
+
#define CL_DEVICE_GLOBAL_MEM_CACHE_TYPE 0x101C
|
| 403 |
+
#define CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE 0x101D
|
| 404 |
+
#define CL_DEVICE_GLOBAL_MEM_CACHE_SIZE 0x101E
|
| 405 |
+
#define CL_DEVICE_GLOBAL_MEM_SIZE 0x101F
|
| 406 |
+
#define CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE 0x1020
|
| 407 |
+
#define CL_DEVICE_MAX_CONSTANT_ARGS 0x1021
|
| 408 |
+
#define CL_DEVICE_LOCAL_MEM_TYPE 0x1022
|
| 409 |
+
#define CL_DEVICE_LOCAL_MEM_SIZE 0x1023
|
| 410 |
+
#define CL_DEVICE_ERROR_CORRECTION_SUPPORT 0x1024
|
| 411 |
+
#define CL_DEVICE_PROFILING_TIMER_RESOLUTION 0x1025
|
| 412 |
+
#define CL_DEVICE_ENDIAN_LITTLE 0x1026
|
| 413 |
+
#define CL_DEVICE_AVAILABLE 0x1027
|
| 414 |
+
#define CL_DEVICE_COMPILER_AVAILABLE 0x1028
|
| 415 |
+
#define CL_DEVICE_EXECUTION_CAPABILITIES 0x1029
|
| 416 |
+
#define CL_DEVICE_QUEUE_PROPERTIES 0x102A /* deprecated */
|
| 417 |
+
#ifdef CL_VERSION_2_0
|
| 418 |
+
#define CL_DEVICE_QUEUE_ON_HOST_PROPERTIES 0x102A
|
| 419 |
+
#endif
|
| 420 |
+
#define CL_DEVICE_NAME 0x102B
|
| 421 |
+
#define CL_DEVICE_VENDOR 0x102C
|
| 422 |
+
#define CL_DRIVER_VERSION 0x102D
|
| 423 |
+
#define CL_DEVICE_PROFILE 0x102E
|
| 424 |
+
#define CL_DEVICE_VERSION 0x102F
|
| 425 |
+
#define CL_DEVICE_EXTENSIONS 0x1030
|
| 426 |
+
#define CL_DEVICE_PLATFORM 0x1031
|
| 427 |
+
#ifdef CL_VERSION_1_2
|
| 428 |
+
#define CL_DEVICE_DOUBLE_FP_CONFIG 0x1032
|
| 429 |
+
#endif
|
| 430 |
+
/* 0x1033 reserved for CL_DEVICE_HALF_FP_CONFIG which is already defined in "cl_ext.h" */
|
| 431 |
+
#ifdef CL_VERSION_1_1
|
| 432 |
+
#define CL_DEVICE_PREFERRED_VECTOR_WIDTH_HALF 0x1034
|
| 433 |
+
#define CL_DEVICE_HOST_UNIFIED_MEMORY 0x1035 /* deprecated */
|
| 434 |
+
#define CL_DEVICE_NATIVE_VECTOR_WIDTH_CHAR 0x1036
|
| 435 |
+
#define CL_DEVICE_NATIVE_VECTOR_WIDTH_SHORT 0x1037
|
| 436 |
+
#define CL_DEVICE_NATIVE_VECTOR_WIDTH_INT 0x1038
|
| 437 |
+
#define CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG 0x1039
|
| 438 |
+
#define CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT 0x103A
|
| 439 |
+
#define CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE 0x103B
|
| 440 |
+
#define CL_DEVICE_NATIVE_VECTOR_WIDTH_HALF 0x103C
|
| 441 |
+
#define CL_DEVICE_OPENCL_C_VERSION 0x103D
|
| 442 |
+
#endif
|
| 443 |
+
#ifdef CL_VERSION_1_2
|
| 444 |
+
#define CL_DEVICE_LINKER_AVAILABLE 0x103E
|
| 445 |
+
#define CL_DEVICE_BUILT_IN_KERNELS 0x103F
|
| 446 |
+
#define CL_DEVICE_IMAGE_MAX_BUFFER_SIZE 0x1040
|
| 447 |
+
#define CL_DEVICE_IMAGE_MAX_ARRAY_SIZE 0x1041
|
| 448 |
+
#define CL_DEVICE_PARENT_DEVICE 0x1042
|
| 449 |
+
#define CL_DEVICE_PARTITION_MAX_SUB_DEVICES 0x1043
|
| 450 |
+
#define CL_DEVICE_PARTITION_PROPERTIES 0x1044
|
| 451 |
+
#define CL_DEVICE_PARTITION_AFFINITY_DOMAIN 0x1045
|
| 452 |
+
#define CL_DEVICE_PARTITION_TYPE 0x1046
|
| 453 |
+
#define CL_DEVICE_REFERENCE_COUNT 0x1047
|
| 454 |
+
#define CL_DEVICE_PREFERRED_INTEROP_USER_SYNC 0x1048
|
| 455 |
+
#define CL_DEVICE_PRINTF_BUFFER_SIZE 0x1049
|
| 456 |
+
#endif
|
| 457 |
+
#ifdef CL_VERSION_2_0
|
| 458 |
+
#define CL_DEVICE_IMAGE_PITCH_ALIGNMENT 0x104A
|
| 459 |
+
#define CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT 0x104B
|
| 460 |
+
#define CL_DEVICE_MAX_READ_WRITE_IMAGE_ARGS 0x104C
|
| 461 |
+
#define CL_DEVICE_MAX_GLOBAL_VARIABLE_SIZE 0x104D
|
| 462 |
+
#define CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES 0x104E
|
| 463 |
+
#define CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE 0x104F
|
| 464 |
+
#define CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE 0x1050
|
| 465 |
+
#define CL_DEVICE_MAX_ON_DEVICE_QUEUES 0x1051
|
| 466 |
+
#define CL_DEVICE_MAX_ON_DEVICE_EVENTS 0x1052
|
| 467 |
+
#define CL_DEVICE_SVM_CAPABILITIES 0x1053
|
| 468 |
+
#define CL_DEVICE_GLOBAL_VARIABLE_PREFERRED_TOTAL_SIZE 0x1054
|
| 469 |
+
#define CL_DEVICE_MAX_PIPE_ARGS 0x1055
|
| 470 |
+
#define CL_DEVICE_PIPE_MAX_ACTIVE_RESERVATIONS 0x1056
|
| 471 |
+
#define CL_DEVICE_PIPE_MAX_PACKET_SIZE 0x1057
|
| 472 |
+
#define CL_DEVICE_PREFERRED_PLATFORM_ATOMIC_ALIGNMENT 0x1058
|
| 473 |
+
#define CL_DEVICE_PREFERRED_GLOBAL_ATOMIC_ALIGNMENT 0x1059
|
| 474 |
+
#define CL_DEVICE_PREFERRED_LOCAL_ATOMIC_ALIGNMENT 0x105A
|
| 475 |
+
#endif
|
| 476 |
+
#ifdef CL_VERSION_2_1
|
| 477 |
+
#define CL_DEVICE_IL_VERSION 0x105B
|
| 478 |
+
#define CL_DEVICE_MAX_NUM_SUB_GROUPS 0x105C
|
| 479 |
+
#define CL_DEVICE_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS 0x105D
|
| 480 |
+
#endif
|
| 481 |
+
#ifdef CL_VERSION_3_0
|
| 482 |
+
#define CL_DEVICE_NUMERIC_VERSION 0x105E
|
| 483 |
+
#define CL_DEVICE_EXTENSIONS_WITH_VERSION 0x1060
|
| 484 |
+
#define CL_DEVICE_ILS_WITH_VERSION 0x1061
|
| 485 |
+
#define CL_DEVICE_BUILT_IN_KERNELS_WITH_VERSION 0x1062
|
| 486 |
+
#define CL_DEVICE_ATOMIC_MEMORY_CAPABILITIES 0x1063
|
| 487 |
+
#define CL_DEVICE_ATOMIC_FENCE_CAPABILITIES 0x1064
|
| 488 |
+
#define CL_DEVICE_NON_UNIFORM_WORK_GROUP_SUPPORT 0x1065
|
| 489 |
+
#define CL_DEVICE_OPENCL_C_ALL_VERSIONS 0x1066
|
| 490 |
+
#define CL_DEVICE_PREFERRED_WORK_GROUP_SIZE_MULTIPLE 0x1067
|
| 491 |
+
#define CL_DEVICE_WORK_GROUP_COLLECTIVE_FUNCTIONS_SUPPORT 0x1068
|
| 492 |
+
#define CL_DEVICE_GENERIC_ADDRESS_SPACE_SUPPORT 0x1069
|
| 493 |
+
/* 0x106A to 0x106E - Reserved for upcoming KHR extension */
|
| 494 |
+
#define CL_DEVICE_OPENCL_C_FEATURES 0x106F
|
| 495 |
+
#define CL_DEVICE_DEVICE_ENQUEUE_CAPABILITIES 0x1070
|
| 496 |
+
#define CL_DEVICE_PIPE_SUPPORT 0x1071
|
| 497 |
+
#define CL_DEVICE_LATEST_CONFORMANCE_VERSION_PASSED 0x1072
|
| 498 |
+
#endif
|
| 499 |
+
|
| 500 |
+
/* cl_device_fp_config - bitfield */
|
| 501 |
+
#define CL_FP_DENORM (1 << 0)
|
| 502 |
+
#define CL_FP_INF_NAN (1 << 1)
|
| 503 |
+
#define CL_FP_ROUND_TO_NEAREST (1 << 2)
|
| 504 |
+
#define CL_FP_ROUND_TO_ZERO (1 << 3)
|
| 505 |
+
#define CL_FP_ROUND_TO_INF (1 << 4)
|
| 506 |
+
#define CL_FP_FMA (1 << 5)
|
| 507 |
+
#ifdef CL_VERSION_1_1
|
| 508 |
+
#define CL_FP_SOFT_FLOAT (1 << 6)
|
| 509 |
+
#endif
|
| 510 |
+
#ifdef CL_VERSION_1_2
|
| 511 |
+
#define CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT (1 << 7)
|
| 512 |
+
#endif
|
| 513 |
+
|
| 514 |
+
/* cl_device_mem_cache_type */
|
| 515 |
+
#define CL_NONE 0x0
|
| 516 |
+
#define CL_READ_ONLY_CACHE 0x1
|
| 517 |
+
#define CL_READ_WRITE_CACHE 0x2
|
| 518 |
+
|
| 519 |
+
/* cl_device_local_mem_type */
|
| 520 |
+
#define CL_LOCAL 0x1
|
| 521 |
+
#define CL_GLOBAL 0x2
|
| 522 |
+
|
| 523 |
+
/* cl_device_exec_capabilities - bitfield */
|
| 524 |
+
#define CL_EXEC_KERNEL (1 << 0)
|
| 525 |
+
#define CL_EXEC_NATIVE_KERNEL (1 << 1)
|
| 526 |
+
|
| 527 |
+
/* cl_command_queue_properties - bitfield */
|
| 528 |
+
#define CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE (1 << 0)
|
| 529 |
+
#define CL_QUEUE_PROFILING_ENABLE (1 << 1)
|
| 530 |
+
#ifdef CL_VERSION_2_0
|
| 531 |
+
#define CL_QUEUE_ON_DEVICE (1 << 2)
|
| 532 |
+
#define CL_QUEUE_ON_DEVICE_DEFAULT (1 << 3)
|
| 533 |
+
#endif
|
| 534 |
+
|
| 535 |
+
/* cl_context_info */
|
| 536 |
+
#define CL_CONTEXT_REFERENCE_COUNT 0x1080
|
| 537 |
+
#define CL_CONTEXT_DEVICES 0x1081
|
| 538 |
+
#define CL_CONTEXT_PROPERTIES 0x1082
|
| 539 |
+
#ifdef CL_VERSION_1_1
|
| 540 |
+
#define CL_CONTEXT_NUM_DEVICES 0x1083
|
| 541 |
+
#endif
|
| 542 |
+
|
| 543 |
+
/* cl_context_properties */
|
| 544 |
+
#define CL_CONTEXT_PLATFORM 0x1084
|
| 545 |
+
#ifdef CL_VERSION_1_2
|
| 546 |
+
#define CL_CONTEXT_INTEROP_USER_SYNC 0x1085
|
| 547 |
+
#endif
|
| 548 |
+
|
| 549 |
+
#ifdef CL_VERSION_1_2
|
| 550 |
+
|
| 551 |
+
/* cl_device_partition_property */
|
| 552 |
+
#define CL_DEVICE_PARTITION_EQUALLY 0x1086
|
| 553 |
+
#define CL_DEVICE_PARTITION_BY_COUNTS 0x1087
|
| 554 |
+
#define CL_DEVICE_PARTITION_BY_COUNTS_LIST_END 0x0
|
| 555 |
+
#define CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN 0x1088
|
| 556 |
+
|
| 557 |
+
#endif
|
| 558 |
+
|
| 559 |
+
#ifdef CL_VERSION_1_2
|
| 560 |
+
|
| 561 |
+
/* cl_device_affinity_domain */
|
| 562 |
+
#define CL_DEVICE_AFFINITY_DOMAIN_NUMA (1 << 0)
|
| 563 |
+
#define CL_DEVICE_AFFINITY_DOMAIN_L4_CACHE (1 << 1)
|
| 564 |
+
#define CL_DEVICE_AFFINITY_DOMAIN_L3_CACHE (1 << 2)
|
| 565 |
+
#define CL_DEVICE_AFFINITY_DOMAIN_L2_CACHE (1 << 3)
|
| 566 |
+
#define CL_DEVICE_AFFINITY_DOMAIN_L1_CACHE (1 << 4)
|
| 567 |
+
#define CL_DEVICE_AFFINITY_DOMAIN_NEXT_PARTITIONABLE (1 << 5)
|
| 568 |
+
|
| 569 |
+
#endif
|
| 570 |
+
|
| 571 |
+
#ifdef CL_VERSION_2_0
|
| 572 |
+
|
| 573 |
+
/* cl_device_svm_capabilities */
|
| 574 |
+
#define CL_DEVICE_SVM_COARSE_GRAIN_BUFFER (1 << 0)
|
| 575 |
+
#define CL_DEVICE_SVM_FINE_GRAIN_BUFFER (1 << 1)
|
| 576 |
+
#define CL_DEVICE_SVM_FINE_GRAIN_SYSTEM (1 << 2)
|
| 577 |
+
#define CL_DEVICE_SVM_ATOMICS (1 << 3)
|
| 578 |
+
|
| 579 |
+
#endif
|
| 580 |
+
|
| 581 |
+
/* cl_command_queue_info */
|
| 582 |
+
#define CL_QUEUE_CONTEXT 0x1090
|
| 583 |
+
#define CL_QUEUE_DEVICE 0x1091
|
| 584 |
+
#define CL_QUEUE_REFERENCE_COUNT 0x1092
|
| 585 |
+
#define CL_QUEUE_PROPERTIES 0x1093
|
| 586 |
+
#ifdef CL_VERSION_2_0
|
| 587 |
+
#define CL_QUEUE_SIZE 0x1094
|
| 588 |
+
#endif
|
| 589 |
+
#ifdef CL_VERSION_2_1
|
| 590 |
+
#define CL_QUEUE_DEVICE_DEFAULT 0x1095
|
| 591 |
+
#endif
|
| 592 |
+
#ifdef CL_VERSION_3_0
|
| 593 |
+
#define CL_QUEUE_PROPERTIES_ARRAY 0x1098
|
| 594 |
+
#endif
|
| 595 |
+
|
| 596 |
+
/* cl_mem_flags and cl_svm_mem_flags - bitfield */
|
| 597 |
+
#define CL_MEM_READ_WRITE (1 << 0)
|
| 598 |
+
#define CL_MEM_WRITE_ONLY (1 << 1)
|
| 599 |
+
#define CL_MEM_READ_ONLY (1 << 2)
|
| 600 |
+
#define CL_MEM_USE_HOST_PTR (1 << 3)
|
| 601 |
+
#define CL_MEM_ALLOC_HOST_PTR (1 << 4)
|
| 602 |
+
#define CL_MEM_COPY_HOST_PTR (1 << 5)
|
| 603 |
+
/* reserved (1 << 6) */
|
| 604 |
+
#ifdef CL_VERSION_1_2
|
| 605 |
+
#define CL_MEM_HOST_WRITE_ONLY (1 << 7)
|
| 606 |
+
#define CL_MEM_HOST_READ_ONLY (1 << 8)
|
| 607 |
+
#define CL_MEM_HOST_NO_ACCESS (1 << 9)
|
| 608 |
+
#endif
|
| 609 |
+
#ifdef CL_VERSION_2_0
|
| 610 |
+
#define CL_MEM_SVM_FINE_GRAIN_BUFFER (1 << 10) /* used by cl_svm_mem_flags only */
|
| 611 |
+
#define CL_MEM_SVM_ATOMICS (1 << 11) /* used by cl_svm_mem_flags only */
|
| 612 |
+
#define CL_MEM_KERNEL_READ_AND_WRITE (1 << 12)
|
| 613 |
+
#endif
|
| 614 |
+
|
| 615 |
+
#ifdef CL_VERSION_1_2
|
| 616 |
+
|
| 617 |
+
/* cl_mem_migration_flags - bitfield */
|
| 618 |
+
#define CL_MIGRATE_MEM_OBJECT_HOST (1 << 0)
|
| 619 |
+
#define CL_MIGRATE_MEM_OBJECT_CONTENT_UNDEFINED (1 << 1)
|
| 620 |
+
|
| 621 |
+
#endif
|
| 622 |
+
|
| 623 |
+
/* cl_channel_order */
|
| 624 |
+
#define CL_R 0x10B0
|
| 625 |
+
#define CL_A 0x10B1
|
| 626 |
+
#define CL_RG 0x10B2
|
| 627 |
+
#define CL_RA 0x10B3
|
| 628 |
+
#define CL_RGB 0x10B4
|
| 629 |
+
#define CL_RGBA 0x10B5
|
| 630 |
+
#define CL_BGRA 0x10B6
|
| 631 |
+
#define CL_ARGB 0x10B7
|
| 632 |
+
#define CL_INTENSITY 0x10B8
|
| 633 |
+
#define CL_LUMINANCE 0x10B9
|
| 634 |
+
#ifdef CL_VERSION_1_1
|
| 635 |
+
#define CL_Rx 0x10BA
|
| 636 |
+
#define CL_RGx 0x10BB
|
| 637 |
+
#define CL_RGBx 0x10BC
|
| 638 |
+
#endif
|
| 639 |
+
#ifdef CL_VERSION_1_2
|
| 640 |
+
#define CL_DEPTH 0x10BD
|
| 641 |
+
#define CL_DEPTH_STENCIL 0x10BE
|
| 642 |
+
#endif
|
| 643 |
+
#ifdef CL_VERSION_2_0
|
| 644 |
+
#define CL_sRGB 0x10BF
|
| 645 |
+
#define CL_sRGBx 0x10C0
|
| 646 |
+
#define CL_sRGBA 0x10C1
|
| 647 |
+
#define CL_sBGRA 0x10C2
|
| 648 |
+
#define CL_ABGR 0x10C3
|
| 649 |
+
#endif
|
| 650 |
+
|
| 651 |
+
/* cl_channel_type */
|
| 652 |
+
#define CL_SNORM_INT8 0x10D0
|
| 653 |
+
#define CL_SNORM_INT16 0x10D1
|
| 654 |
+
#define CL_UNORM_INT8 0x10D2
|
| 655 |
+
#define CL_UNORM_INT16 0x10D3
|
| 656 |
+
#define CL_UNORM_SHORT_565 0x10D4
|
| 657 |
+
#define CL_UNORM_SHORT_555 0x10D5
|
| 658 |
+
#define CL_UNORM_INT_101010 0x10D6
|
| 659 |
+
#define CL_SIGNED_INT8 0x10D7
|
| 660 |
+
#define CL_SIGNED_INT16 0x10D8
|
| 661 |
+
#define CL_SIGNED_INT32 0x10D9
|
| 662 |
+
#define CL_UNSIGNED_INT8 0x10DA
|
| 663 |
+
#define CL_UNSIGNED_INT16 0x10DB
|
| 664 |
+
#define CL_UNSIGNED_INT32 0x10DC
|
| 665 |
+
#define CL_HALF_FLOAT 0x10DD
|
| 666 |
+
#define CL_FLOAT 0x10DE
|
| 667 |
+
#ifdef CL_VERSION_1_2
|
| 668 |
+
#define CL_UNORM_INT24 0x10DF
|
| 669 |
+
#endif
|
| 670 |
+
#ifdef CL_VERSION_2_1
|
| 671 |
+
#define CL_UNORM_INT_101010_2 0x10E0
|
| 672 |
+
#endif
|
| 673 |
+
|
| 674 |
+
/* cl_mem_object_type */
|
| 675 |
+
#define CL_MEM_OBJECT_BUFFER 0x10F0
|
| 676 |
+
#define CL_MEM_OBJECT_IMAGE2D 0x10F1
|
| 677 |
+
#define CL_MEM_OBJECT_IMAGE3D 0x10F2
|
| 678 |
+
#ifdef CL_VERSION_1_2
|
| 679 |
+
#define CL_MEM_OBJECT_IMAGE2D_ARRAY 0x10F3
|
| 680 |
+
#define CL_MEM_OBJECT_IMAGE1D 0x10F4
|
| 681 |
+
#define CL_MEM_OBJECT_IMAGE1D_ARRAY 0x10F5
|
| 682 |
+
#define CL_MEM_OBJECT_IMAGE1D_BUFFER 0x10F6
|
| 683 |
+
#endif
|
| 684 |
+
#ifdef CL_VERSION_2_0
|
| 685 |
+
#define CL_MEM_OBJECT_PIPE 0x10F7
|
| 686 |
+
#endif
|
| 687 |
+
|
| 688 |
+
/* cl_mem_info */
|
| 689 |
+
#define CL_MEM_TYPE 0x1100
|
| 690 |
+
#define CL_MEM_FLAGS 0x1101
|
| 691 |
+
#define CL_MEM_SIZE 0x1102
|
| 692 |
+
#define CL_MEM_HOST_PTR 0x1103
|
| 693 |
+
#define CL_MEM_MAP_COUNT 0x1104
|
| 694 |
+
#define CL_MEM_REFERENCE_COUNT 0x1105
|
| 695 |
+
#define CL_MEM_CONTEXT 0x1106
|
| 696 |
+
#ifdef CL_VERSION_1_1
|
| 697 |
+
#define CL_MEM_ASSOCIATED_MEMOBJECT 0x1107
|
| 698 |
+
#define CL_MEM_OFFSET 0x1108
|
| 699 |
+
#endif
|
| 700 |
+
#ifdef CL_VERSION_2_0
|
| 701 |
+
#define CL_MEM_USES_SVM_POINTER 0x1109
|
| 702 |
+
#endif
|
| 703 |
+
#ifdef CL_VERSION_3_0
|
| 704 |
+
#define CL_MEM_PROPERTIES 0x110A
|
| 705 |
+
#endif
|
| 706 |
+
|
| 707 |
+
/* cl_image_info */
|
| 708 |
+
#define CL_IMAGE_FORMAT 0x1110
|
| 709 |
+
#define CL_IMAGE_ELEMENT_SIZE 0x1111
|
| 710 |
+
#define CL_IMAGE_ROW_PITCH 0x1112
|
| 711 |
+
#define CL_IMAGE_SLICE_PITCH 0x1113
|
| 712 |
+
#define CL_IMAGE_WIDTH 0x1114
|
| 713 |
+
#define CL_IMAGE_HEIGHT 0x1115
|
| 714 |
+
#define CL_IMAGE_DEPTH 0x1116
|
| 715 |
+
#ifdef CL_VERSION_1_2
|
| 716 |
+
#define CL_IMAGE_ARRAY_SIZE 0x1117
|
| 717 |
+
#define CL_IMAGE_BUFFER 0x1118
|
| 718 |
+
#define CL_IMAGE_NUM_MIP_LEVELS 0x1119
|
| 719 |
+
#define CL_IMAGE_NUM_SAMPLES 0x111A
|
| 720 |
+
#endif
|
| 721 |
+
|
| 722 |
+
|
| 723 |
+
/* cl_pipe_info */
|
| 724 |
+
#ifdef CL_VERSION_2_0
|
| 725 |
+
#define CL_PIPE_PACKET_SIZE 0x1120
|
| 726 |
+
#define CL_PIPE_MAX_PACKETS 0x1121
|
| 727 |
+
#endif
|
| 728 |
+
#ifdef CL_VERSION_3_0
|
| 729 |
+
#define CL_PIPE_PROPERTIES 0x1122
|
| 730 |
+
#endif
|
| 731 |
+
|
| 732 |
+
/* cl_addressing_mode */
|
| 733 |
+
#define CL_ADDRESS_NONE 0x1130
|
| 734 |
+
#define CL_ADDRESS_CLAMP_TO_EDGE 0x1131
|
| 735 |
+
#define CL_ADDRESS_CLAMP 0x1132
|
| 736 |
+
#define CL_ADDRESS_REPEAT 0x1133
|
| 737 |
+
#ifdef CL_VERSION_1_1
|
| 738 |
+
#define CL_ADDRESS_MIRRORED_REPEAT 0x1134
|
| 739 |
+
#endif
|
| 740 |
+
|
| 741 |
+
/* cl_filter_mode */
|
| 742 |
+
#define CL_FILTER_NEAREST 0x1140
|
| 743 |
+
#define CL_FILTER_LINEAR 0x1141
|
| 744 |
+
|
| 745 |
+
/* cl_sampler_info */
|
| 746 |
+
#define CL_SAMPLER_REFERENCE_COUNT 0x1150
|
| 747 |
+
#define CL_SAMPLER_CONTEXT 0x1151
|
| 748 |
+
#define CL_SAMPLER_NORMALIZED_COORDS 0x1152
|
| 749 |
+
#define CL_SAMPLER_ADDRESSING_MODE 0x1153
|
| 750 |
+
#define CL_SAMPLER_FILTER_MODE 0x1154
|
| 751 |
+
#ifdef CL_VERSION_2_0
|
| 752 |
+
/* These enumerants are for the cl_khr_mipmap_image extension.
|
| 753 |
+
They have since been added to cl_ext.h with an appropriate
|
| 754 |
+
KHR suffix, but are left here for backwards compatibility. */
|
| 755 |
+
#define CL_SAMPLER_MIP_FILTER_MODE 0x1155
|
| 756 |
+
#define CL_SAMPLER_LOD_MIN 0x1156
|
| 757 |
+
#define CL_SAMPLER_LOD_MAX 0x1157
|
| 758 |
+
#endif
|
| 759 |
+
#ifdef CL_VERSION_3_0
|
| 760 |
+
#define CL_SAMPLER_PROPERTIES 0x1158
|
| 761 |
+
#endif
|
| 762 |
+
|
| 763 |
+
/* cl_map_flags - bitfield */
|
| 764 |
+
#define CL_MAP_READ (1 << 0)
|
| 765 |
+
#define CL_MAP_WRITE (1 << 1)
|
| 766 |
+
#ifdef CL_VERSION_1_2
|
| 767 |
+
#define CL_MAP_WRITE_INVALIDATE_REGION (1 << 2)
|
| 768 |
+
#endif
|
| 769 |
+
|
| 770 |
+
/* cl_program_info */
|
| 771 |
+
#define CL_PROGRAM_REFERENCE_COUNT 0x1160
|
| 772 |
+
#define CL_PROGRAM_CONTEXT 0x1161
|
| 773 |
+
#define CL_PROGRAM_NUM_DEVICES 0x1162
|
| 774 |
+
#define CL_PROGRAM_DEVICES 0x1163
|
| 775 |
+
#define CL_PROGRAM_SOURCE 0x1164
|
| 776 |
+
#define CL_PROGRAM_BINARY_SIZES 0x1165
|
| 777 |
+
#define CL_PROGRAM_BINARIES 0x1166
|
| 778 |
+
#ifdef CL_VERSION_1_2
|
| 779 |
+
#define CL_PROGRAM_NUM_KERNELS 0x1167
|
| 780 |
+
#define CL_PROGRAM_KERNEL_NAMES 0x1168
|
| 781 |
+
#endif
|
| 782 |
+
#ifdef CL_VERSION_2_1
|
| 783 |
+
#define CL_PROGRAM_IL 0x1169
|
| 784 |
+
#endif
|
| 785 |
+
#ifdef CL_VERSION_2_2
|
| 786 |
+
#define CL_PROGRAM_SCOPE_GLOBAL_CTORS_PRESENT 0x116A
|
| 787 |
+
#define CL_PROGRAM_SCOPE_GLOBAL_DTORS_PRESENT 0x116B
|
| 788 |
+
#endif
|
| 789 |
+
|
| 790 |
+
/* cl_program_build_info */
|
| 791 |
+
#define CL_PROGRAM_BUILD_STATUS 0x1181
|
| 792 |
+
#define CL_PROGRAM_BUILD_OPTIONS 0x1182
|
| 793 |
+
#define CL_PROGRAM_BUILD_LOG 0x1183
|
| 794 |
+
#ifdef CL_VERSION_1_2
|
| 795 |
+
#define CL_PROGRAM_BINARY_TYPE 0x1184
|
| 796 |
+
#endif
|
| 797 |
+
#ifdef CL_VERSION_2_0
|
| 798 |
+
#define CL_PROGRAM_BUILD_GLOBAL_VARIABLE_TOTAL_SIZE 0x1185
|
| 799 |
+
#endif
|
| 800 |
+
|
| 801 |
+
#ifdef CL_VERSION_1_2
|
| 802 |
+
|
| 803 |
+
/* cl_program_binary_type */
|
| 804 |
+
#define CL_PROGRAM_BINARY_TYPE_NONE 0x0
|
| 805 |
+
#define CL_PROGRAM_BINARY_TYPE_COMPILED_OBJECT 0x1
|
| 806 |
+
#define CL_PROGRAM_BINARY_TYPE_LIBRARY 0x2
|
| 807 |
+
#define CL_PROGRAM_BINARY_TYPE_EXECUTABLE 0x4
|
| 808 |
+
|
| 809 |
+
#endif
|
| 810 |
+
|
| 811 |
+
/* cl_build_status */
|
| 812 |
+
#define CL_BUILD_SUCCESS 0
|
| 813 |
+
#define CL_BUILD_NONE -1
|
| 814 |
+
#define CL_BUILD_ERROR -2
|
| 815 |
+
#define CL_BUILD_IN_PROGRESS -3
|
| 816 |
+
|
| 817 |
+
/* cl_kernel_info */
|
| 818 |
+
#define CL_KERNEL_FUNCTION_NAME 0x1190
|
| 819 |
+
#define CL_KERNEL_NUM_ARGS 0x1191
|
| 820 |
+
#define CL_KERNEL_REFERENCE_COUNT 0x1192
|
| 821 |
+
#define CL_KERNEL_CONTEXT 0x1193
|
| 822 |
+
#define CL_KERNEL_PROGRAM 0x1194
|
| 823 |
+
#ifdef CL_VERSION_1_2
|
| 824 |
+
#define CL_KERNEL_ATTRIBUTES 0x1195
|
| 825 |
+
#endif
|
| 826 |
+
|
| 827 |
+
#ifdef CL_VERSION_1_2
|
| 828 |
+
|
| 829 |
+
/* cl_kernel_arg_info */
|
| 830 |
+
#define CL_KERNEL_ARG_ADDRESS_QUALIFIER 0x1196
|
| 831 |
+
#define CL_KERNEL_ARG_ACCESS_QUALIFIER 0x1197
|
| 832 |
+
#define CL_KERNEL_ARG_TYPE_NAME 0x1198
|
| 833 |
+
#define CL_KERNEL_ARG_TYPE_QUALIFIER 0x1199
|
| 834 |
+
#define CL_KERNEL_ARG_NAME 0x119A
|
| 835 |
+
|
| 836 |
+
#endif
|
| 837 |
+
|
| 838 |
+
#ifdef CL_VERSION_1_2
|
| 839 |
+
|
| 840 |
+
/* cl_kernel_arg_address_qualifier */
|
| 841 |
+
#define CL_KERNEL_ARG_ADDRESS_GLOBAL 0x119B
|
| 842 |
+
#define CL_KERNEL_ARG_ADDRESS_LOCAL 0x119C
|
| 843 |
+
#define CL_KERNEL_ARG_ADDRESS_CONSTANT 0x119D
|
| 844 |
+
#define CL_KERNEL_ARG_ADDRESS_PRIVATE 0x119E
|
| 845 |
+
|
| 846 |
+
#endif
|
| 847 |
+
|
| 848 |
+
#ifdef CL_VERSION_1_2
|
| 849 |
+
|
| 850 |
+
/* cl_kernel_arg_access_qualifier */
|
| 851 |
+
#define CL_KERNEL_ARG_ACCESS_READ_ONLY 0x11A0
|
| 852 |
+
#define CL_KERNEL_ARG_ACCESS_WRITE_ONLY 0x11A1
|
| 853 |
+
#define CL_KERNEL_ARG_ACCESS_READ_WRITE 0x11A2
|
| 854 |
+
#define CL_KERNEL_ARG_ACCESS_NONE 0x11A3
|
| 855 |
+
|
| 856 |
+
#endif
|
| 857 |
+
|
| 858 |
+
#ifdef CL_VERSION_1_2
|
| 859 |
+
|
| 860 |
+
/* cl_kernel_arg_type_qualifier */
|
| 861 |
+
#define CL_KERNEL_ARG_TYPE_NONE 0
|
| 862 |
+
#define CL_KERNEL_ARG_TYPE_CONST (1 << 0)
|
| 863 |
+
#define CL_KERNEL_ARG_TYPE_RESTRICT (1 << 1)
|
| 864 |
+
#define CL_KERNEL_ARG_TYPE_VOLATILE (1 << 2)
|
| 865 |
+
#ifdef CL_VERSION_2_0
|
| 866 |
+
#define CL_KERNEL_ARG_TYPE_PIPE (1 << 3)
|
| 867 |
+
#endif
|
| 868 |
+
|
| 869 |
+
#endif
|
| 870 |
+
|
| 871 |
+
/* cl_kernel_work_group_info */
|
| 872 |
+
#define CL_KERNEL_WORK_GROUP_SIZE 0x11B0
|
| 873 |
+
#define CL_KERNEL_COMPILE_WORK_GROUP_SIZE 0x11B1
|
| 874 |
+
#define CL_KERNEL_LOCAL_MEM_SIZE 0x11B2
|
| 875 |
+
#define CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE 0x11B3
|
| 876 |
+
#define CL_KERNEL_PRIVATE_MEM_SIZE 0x11B4
|
| 877 |
+
#ifdef CL_VERSION_1_2
|
| 878 |
+
#define CL_KERNEL_GLOBAL_WORK_SIZE 0x11B5
|
| 879 |
+
#endif
|
| 880 |
+
|
| 881 |
+
#ifdef CL_VERSION_2_1
|
| 882 |
+
|
| 883 |
+
/* cl_kernel_sub_group_info */
|
| 884 |
+
#define CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE 0x2033
|
| 885 |
+
#define CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE 0x2034
|
| 886 |
+
#define CL_KERNEL_LOCAL_SIZE_FOR_SUB_GROUP_COUNT 0x11B8
|
| 887 |
+
#define CL_KERNEL_MAX_NUM_SUB_GROUPS 0x11B9
|
| 888 |
+
#define CL_KERNEL_COMPILE_NUM_SUB_GROUPS 0x11BA
|
| 889 |
+
|
| 890 |
+
#endif
|
| 891 |
+
|
| 892 |
+
#ifdef CL_VERSION_2_0
|
| 893 |
+
|
| 894 |
+
/* cl_kernel_exec_info */
|
| 895 |
+
#define CL_KERNEL_EXEC_INFO_SVM_PTRS 0x11B6
|
| 896 |
+
#define CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM 0x11B7
|
| 897 |
+
|
| 898 |
+
#endif
|
| 899 |
+
|
| 900 |
+
/* cl_event_info */
|
| 901 |
+
#define CL_EVENT_COMMAND_QUEUE 0x11D0
|
| 902 |
+
#define CL_EVENT_COMMAND_TYPE 0x11D1
|
| 903 |
+
#define CL_EVENT_REFERENCE_COUNT 0x11D2
|
| 904 |
+
#define CL_EVENT_COMMAND_EXECUTION_STATUS 0x11D3
|
| 905 |
+
#ifdef CL_VERSION_1_1
|
| 906 |
+
#define CL_EVENT_CONTEXT 0x11D4
|
| 907 |
+
#endif
|
| 908 |
+
|
| 909 |
+
/* cl_command_type */
|
| 910 |
+
#define CL_COMMAND_NDRANGE_KERNEL 0x11F0
|
| 911 |
+
#define CL_COMMAND_TASK 0x11F1
|
| 912 |
+
#define CL_COMMAND_NATIVE_KERNEL 0x11F2
|
| 913 |
+
#define CL_COMMAND_READ_BUFFER 0x11F3
|
| 914 |
+
#define CL_COMMAND_WRITE_BUFFER 0x11F4
|
| 915 |
+
#define CL_COMMAND_COPY_BUFFER 0x11F5
|
| 916 |
+
#define CL_COMMAND_READ_IMAGE 0x11F6
|
| 917 |
+
#define CL_COMMAND_WRITE_IMAGE 0x11F7
|
| 918 |
+
#define CL_COMMAND_COPY_IMAGE 0x11F8
|
| 919 |
+
#define CL_COMMAND_COPY_IMAGE_TO_BUFFER 0x11F9
|
| 920 |
+
#define CL_COMMAND_COPY_BUFFER_TO_IMAGE 0x11FA
|
| 921 |
+
#define CL_COMMAND_MAP_BUFFER 0x11FB
|
| 922 |
+
#define CL_COMMAND_MAP_IMAGE 0x11FC
|
| 923 |
+
#define CL_COMMAND_UNMAP_MEM_OBJECT 0x11FD
|
| 924 |
+
#define CL_COMMAND_MARKER 0x11FE
|
| 925 |
+
#define CL_COMMAND_ACQUIRE_GL_OBJECTS 0x11FF
|
| 926 |
+
#define CL_COMMAND_RELEASE_GL_OBJECTS 0x1200
|
| 927 |
+
#ifdef CL_VERSION_1_1
|
| 928 |
+
#define CL_COMMAND_READ_BUFFER_RECT 0x1201
|
| 929 |
+
#define CL_COMMAND_WRITE_BUFFER_RECT 0x1202
|
| 930 |
+
#define CL_COMMAND_COPY_BUFFER_RECT 0x1203
|
| 931 |
+
#define CL_COMMAND_USER 0x1204
|
| 932 |
+
#endif
|
| 933 |
+
#ifdef CL_VERSION_1_2
|
| 934 |
+
#define CL_COMMAND_BARRIER 0x1205
|
| 935 |
+
#define CL_COMMAND_MIGRATE_MEM_OBJECTS 0x1206
|
| 936 |
+
#define CL_COMMAND_FILL_BUFFER 0x1207
|
| 937 |
+
#define CL_COMMAND_FILL_IMAGE 0x1208
|
| 938 |
+
#endif
|
| 939 |
+
#ifdef CL_VERSION_2_0
|
| 940 |
+
#define CL_COMMAND_SVM_FREE 0x1209
|
| 941 |
+
#define CL_COMMAND_SVM_MEMCPY 0x120A
|
| 942 |
+
#define CL_COMMAND_SVM_MEMFILL 0x120B
|
| 943 |
+
#define CL_COMMAND_SVM_MAP 0x120C
|
| 944 |
+
#define CL_COMMAND_SVM_UNMAP 0x120D
|
| 945 |
+
#endif
|
| 946 |
+
#ifdef CL_VERSION_3_0
|
| 947 |
+
#define CL_COMMAND_SVM_MIGRATE_MEM 0x120E
|
| 948 |
+
#endif
|
| 949 |
+
|
| 950 |
+
/* command execution status */
|
| 951 |
+
#define CL_COMPLETE 0x0
|
| 952 |
+
#define CL_RUNNING 0x1
|
| 953 |
+
#define CL_SUBMITTED 0x2
|
| 954 |
+
#define CL_QUEUED 0x3
|
| 955 |
+
|
| 956 |
+
/* cl_buffer_create_type */
|
| 957 |
+
#ifdef CL_VERSION_1_1
|
| 958 |
+
#define CL_BUFFER_CREATE_TYPE_REGION 0x1220
|
| 959 |
+
#endif
|
| 960 |
+
|
| 961 |
+
/* cl_profiling_info */
|
| 962 |
+
#define CL_PROFILING_COMMAND_QUEUED 0x1280
|
| 963 |
+
#define CL_PROFILING_COMMAND_SUBMIT 0x1281
|
| 964 |
+
#define CL_PROFILING_COMMAND_START 0x1282
|
| 965 |
+
#define CL_PROFILING_COMMAND_END 0x1283
|
| 966 |
+
#ifdef CL_VERSION_2_0
|
| 967 |
+
#define CL_PROFILING_COMMAND_COMPLETE 0x1284
|
| 968 |
+
#endif
|
| 969 |
+
|
| 970 |
+
/* cl_device_atomic_capabilities - bitfield */
|
| 971 |
+
#ifdef CL_VERSION_3_0
|
| 972 |
+
#define CL_DEVICE_ATOMIC_ORDER_RELAXED (1 << 0)
|
| 973 |
+
#define CL_DEVICE_ATOMIC_ORDER_ACQ_REL (1 << 1)
|
| 974 |
+
#define CL_DEVICE_ATOMIC_ORDER_SEQ_CST (1 << 2)
|
| 975 |
+
#define CL_DEVICE_ATOMIC_SCOPE_WORK_ITEM (1 << 3)
|
| 976 |
+
#define CL_DEVICE_ATOMIC_SCOPE_WORK_GROUP (1 << 4)
|
| 977 |
+
#define CL_DEVICE_ATOMIC_SCOPE_DEVICE (1 << 5)
|
| 978 |
+
#define CL_DEVICE_ATOMIC_SCOPE_ALL_DEVICES (1 << 6)
|
| 979 |
+
#endif
|
| 980 |
+
|
| 981 |
+
/* cl_device_device_enqueue_capabilities - bitfield */
|
| 982 |
+
#ifdef CL_VERSION_3_0
|
| 983 |
+
#define CL_DEVICE_QUEUE_SUPPORTED (1 << 0)
|
| 984 |
+
#define CL_DEVICE_QUEUE_REPLACEABLE_DEFAULT (1 << 1)
|
| 985 |
+
#endif
|
| 986 |
+
|
| 987 |
+
/* cl_khronos_vendor_id */
|
| 988 |
+
#define CL_KHRONOS_VENDOR_ID_CODEPLAY 0x10004
|
| 989 |
+
|
| 990 |
+
#ifdef CL_VERSION_3_0
|
| 991 |
+
|
| 992 |
+
/* cl_version */
|
| 993 |
+
#define CL_VERSION_MAJOR_BITS (10)
|
| 994 |
+
#define CL_VERSION_MINOR_BITS (10)
|
| 995 |
+
#define CL_VERSION_PATCH_BITS (12)
|
| 996 |
+
|
| 997 |
+
#define CL_VERSION_MAJOR_MASK ((1 << CL_VERSION_MAJOR_BITS) - 1)
|
| 998 |
+
#define CL_VERSION_MINOR_MASK ((1 << CL_VERSION_MINOR_BITS) - 1)
|
| 999 |
+
#define CL_VERSION_PATCH_MASK ((1 << CL_VERSION_PATCH_BITS) - 1)
|
| 1000 |
+
|
| 1001 |
+
#define CL_VERSION_MAJOR(version) \
|
| 1002 |
+
((version) >> (CL_VERSION_MINOR_BITS + CL_VERSION_PATCH_BITS))
|
| 1003 |
+
|
| 1004 |
+
#define CL_VERSION_MINOR(version) \
|
| 1005 |
+
(((version) >> CL_VERSION_PATCH_BITS) & CL_VERSION_MINOR_MASK)
|
| 1006 |
+
|
| 1007 |
+
#define CL_VERSION_PATCH(version) ((version) & CL_VERSION_PATCH_MASK)
|
| 1008 |
+
|
| 1009 |
+
#define CL_MAKE_VERSION(major, minor, patch) \
|
| 1010 |
+
((((major) & CL_VERSION_MAJOR_MASK) \
|
| 1011 |
+
<< (CL_VERSION_MINOR_BITS + CL_VERSION_PATCH_BITS)) | \
|
| 1012 |
+
(((minor) & CL_VERSION_MINOR_MASK) << CL_VERSION_PATCH_BITS) | \
|
| 1013 |
+
((patch) & CL_VERSION_PATCH_MASK))
|
| 1014 |
+
|
| 1015 |
+
#endif
|
| 1016 |
+
|
| 1017 |
+
/********************************************************************************************************/
|
| 1018 |
+
|
| 1019 |
+
/* CL_NO_PROTOTYPES implies CL_NO_CORE_PROTOTYPES: */
|
| 1020 |
+
#if defined(CL_NO_PROTOTYPES) && !defined(CL_NO_CORE_PROTOTYPES)
|
| 1021 |
+
#define CL_NO_CORE_PROTOTYPES
|
| 1022 |
+
#endif
|
| 1023 |
+
|
| 1024 |
+
#if !defined(CL_NO_CORE_PROTOTYPES)
|
| 1025 |
+
|
| 1026 |
+
/* Platform API */
|
| 1027 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1028 |
+
clGetPlatformIDs(cl_uint num_entries,
|
| 1029 |
+
cl_platform_id * platforms,
|
| 1030 |
+
cl_uint * num_platforms) CL_API_SUFFIX__VERSION_1_0;
|
| 1031 |
+
|
| 1032 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1033 |
+
clGetPlatformInfo(cl_platform_id platform,
|
| 1034 |
+
cl_platform_info param_name,
|
| 1035 |
+
size_t param_value_size,
|
| 1036 |
+
void * param_value,
|
| 1037 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1038 |
+
|
| 1039 |
+
/* Device APIs */
|
| 1040 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1041 |
+
clGetDeviceIDs(cl_platform_id platform,
|
| 1042 |
+
cl_device_type device_type,
|
| 1043 |
+
cl_uint num_entries,
|
| 1044 |
+
cl_device_id * devices,
|
| 1045 |
+
cl_uint * num_devices) CL_API_SUFFIX__VERSION_1_0;
|
| 1046 |
+
|
| 1047 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1048 |
+
clGetDeviceInfo(cl_device_id device,
|
| 1049 |
+
cl_device_info param_name,
|
| 1050 |
+
size_t param_value_size,
|
| 1051 |
+
void * param_value,
|
| 1052 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1053 |
+
|
| 1054 |
+
#ifdef CL_VERSION_1_2
|
| 1055 |
+
|
| 1056 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1057 |
+
clCreateSubDevices(cl_device_id in_device,
|
| 1058 |
+
const cl_device_partition_property * properties,
|
| 1059 |
+
cl_uint num_devices,
|
| 1060 |
+
cl_device_id * out_devices,
|
| 1061 |
+
cl_uint * num_devices_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 1062 |
+
|
| 1063 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1064 |
+
clRetainDevice(cl_device_id device) CL_API_SUFFIX__VERSION_1_2;
|
| 1065 |
+
|
| 1066 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1067 |
+
clReleaseDevice(cl_device_id device) CL_API_SUFFIX__VERSION_1_2;
|
| 1068 |
+
|
| 1069 |
+
#endif
|
| 1070 |
+
|
| 1071 |
+
#ifdef CL_VERSION_2_1
|
| 1072 |
+
|
| 1073 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1074 |
+
clSetDefaultDeviceCommandQueue(cl_context context,
|
| 1075 |
+
cl_device_id device,
|
| 1076 |
+
cl_command_queue command_queue) CL_API_SUFFIX__VERSION_2_1;
|
| 1077 |
+
|
| 1078 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1079 |
+
clGetDeviceAndHostTimer(cl_device_id device,
|
| 1080 |
+
cl_ulong* device_timestamp,
|
| 1081 |
+
cl_ulong* host_timestamp) CL_API_SUFFIX__VERSION_2_1;
|
| 1082 |
+
|
| 1083 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1084 |
+
clGetHostTimer(cl_device_id device,
|
| 1085 |
+
cl_ulong * host_timestamp) CL_API_SUFFIX__VERSION_2_1;
|
| 1086 |
+
|
| 1087 |
+
#endif
|
| 1088 |
+
|
| 1089 |
+
/* Context APIs */
|
| 1090 |
+
extern CL_API_ENTRY cl_context CL_API_CALL
|
| 1091 |
+
clCreateContext(const cl_context_properties * properties,
|
| 1092 |
+
cl_uint num_devices,
|
| 1093 |
+
const cl_device_id * devices,
|
| 1094 |
+
void (CL_CALLBACK * pfn_notify)(const char * errinfo,
|
| 1095 |
+
const void * private_info,
|
| 1096 |
+
size_t cb,
|
| 1097 |
+
void * user_data),
|
| 1098 |
+
void * user_data,
|
| 1099 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1100 |
+
|
| 1101 |
+
extern CL_API_ENTRY cl_context CL_API_CALL
|
| 1102 |
+
clCreateContextFromType(const cl_context_properties * properties,
|
| 1103 |
+
cl_device_type device_type,
|
| 1104 |
+
void (CL_CALLBACK * pfn_notify)(const char * errinfo,
|
| 1105 |
+
const void * private_info,
|
| 1106 |
+
size_t cb,
|
| 1107 |
+
void * user_data),
|
| 1108 |
+
void * user_data,
|
| 1109 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1110 |
+
|
| 1111 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1112 |
+
clRetainContext(cl_context context) CL_API_SUFFIX__VERSION_1_0;
|
| 1113 |
+
|
| 1114 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1115 |
+
clReleaseContext(cl_context context) CL_API_SUFFIX__VERSION_1_0;
|
| 1116 |
+
|
| 1117 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1118 |
+
clGetContextInfo(cl_context context,
|
| 1119 |
+
cl_context_info param_name,
|
| 1120 |
+
size_t param_value_size,
|
| 1121 |
+
void * param_value,
|
| 1122 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1123 |
+
|
| 1124 |
+
#ifdef CL_VERSION_3_0
|
| 1125 |
+
|
| 1126 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1127 |
+
clSetContextDestructorCallback(cl_context context,
|
| 1128 |
+
void (CL_CALLBACK* pfn_notify)(cl_context context,
|
| 1129 |
+
void* user_data),
|
| 1130 |
+
void* user_data) CL_API_SUFFIX__VERSION_3_0;
|
| 1131 |
+
|
| 1132 |
+
#endif
|
| 1133 |
+
|
| 1134 |
+
/* Command Queue APIs */
|
| 1135 |
+
|
| 1136 |
+
#ifdef CL_VERSION_2_0
|
| 1137 |
+
|
| 1138 |
+
extern CL_API_ENTRY cl_command_queue CL_API_CALL
|
| 1139 |
+
clCreateCommandQueueWithProperties(cl_context context,
|
| 1140 |
+
cl_device_id device,
|
| 1141 |
+
const cl_queue_properties * properties,
|
| 1142 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_2_0;
|
| 1143 |
+
|
| 1144 |
+
#endif
|
| 1145 |
+
|
| 1146 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1147 |
+
clRetainCommandQueue(cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0;
|
| 1148 |
+
|
| 1149 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1150 |
+
clReleaseCommandQueue(cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0;
|
| 1151 |
+
|
| 1152 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1153 |
+
clGetCommandQueueInfo(cl_command_queue command_queue,
|
| 1154 |
+
cl_command_queue_info param_name,
|
| 1155 |
+
size_t param_value_size,
|
| 1156 |
+
void * param_value,
|
| 1157 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1158 |
+
|
| 1159 |
+
/* Memory Object APIs */
|
| 1160 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 1161 |
+
clCreateBuffer(cl_context context,
|
| 1162 |
+
cl_mem_flags flags,
|
| 1163 |
+
size_t size,
|
| 1164 |
+
void * host_ptr,
|
| 1165 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1166 |
+
|
| 1167 |
+
#ifdef CL_VERSION_1_1
|
| 1168 |
+
|
| 1169 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 1170 |
+
clCreateSubBuffer(cl_mem buffer,
|
| 1171 |
+
cl_mem_flags flags,
|
| 1172 |
+
cl_buffer_create_type buffer_create_type,
|
| 1173 |
+
const void * buffer_create_info,
|
| 1174 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_1;
|
| 1175 |
+
|
| 1176 |
+
#endif
|
| 1177 |
+
|
| 1178 |
+
#ifdef CL_VERSION_1_2
|
| 1179 |
+
|
| 1180 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 1181 |
+
clCreateImage(cl_context context,
|
| 1182 |
+
cl_mem_flags flags,
|
| 1183 |
+
const cl_image_format * image_format,
|
| 1184 |
+
const cl_image_desc * image_desc,
|
| 1185 |
+
void * host_ptr,
|
| 1186 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 1187 |
+
|
| 1188 |
+
#endif
|
| 1189 |
+
|
| 1190 |
+
#ifdef CL_VERSION_2_0
|
| 1191 |
+
|
| 1192 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 1193 |
+
clCreatePipe(cl_context context,
|
| 1194 |
+
cl_mem_flags flags,
|
| 1195 |
+
cl_uint pipe_packet_size,
|
| 1196 |
+
cl_uint pipe_max_packets,
|
| 1197 |
+
const cl_pipe_properties * properties,
|
| 1198 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_2_0;
|
| 1199 |
+
|
| 1200 |
+
#endif
|
| 1201 |
+
|
| 1202 |
+
#ifdef CL_VERSION_3_0
|
| 1203 |
+
|
| 1204 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 1205 |
+
clCreateBufferWithProperties(cl_context context,
|
| 1206 |
+
const cl_mem_properties * properties,
|
| 1207 |
+
cl_mem_flags flags,
|
| 1208 |
+
size_t size,
|
| 1209 |
+
void * host_ptr,
|
| 1210 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_3_0;
|
| 1211 |
+
|
| 1212 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 1213 |
+
clCreateImageWithProperties(cl_context context,
|
| 1214 |
+
const cl_mem_properties * properties,
|
| 1215 |
+
cl_mem_flags flags,
|
| 1216 |
+
const cl_image_format * image_format,
|
| 1217 |
+
const cl_image_desc * image_desc,
|
| 1218 |
+
void * host_ptr,
|
| 1219 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_3_0;
|
| 1220 |
+
|
| 1221 |
+
#endif
|
| 1222 |
+
|
| 1223 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1224 |
+
clRetainMemObject(cl_mem memobj) CL_API_SUFFIX__VERSION_1_0;
|
| 1225 |
+
|
| 1226 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1227 |
+
clReleaseMemObject(cl_mem memobj) CL_API_SUFFIX__VERSION_1_0;
|
| 1228 |
+
|
| 1229 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1230 |
+
clGetSupportedImageFormats(cl_context context,
|
| 1231 |
+
cl_mem_flags flags,
|
| 1232 |
+
cl_mem_object_type image_type,
|
| 1233 |
+
cl_uint num_entries,
|
| 1234 |
+
cl_image_format * image_formats,
|
| 1235 |
+
cl_uint * num_image_formats) CL_API_SUFFIX__VERSION_1_0;
|
| 1236 |
+
|
| 1237 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1238 |
+
clGetMemObjectInfo(cl_mem memobj,
|
| 1239 |
+
cl_mem_info param_name,
|
| 1240 |
+
size_t param_value_size,
|
| 1241 |
+
void * param_value,
|
| 1242 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1243 |
+
|
| 1244 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1245 |
+
clGetImageInfo(cl_mem image,
|
| 1246 |
+
cl_image_info param_name,
|
| 1247 |
+
size_t param_value_size,
|
| 1248 |
+
void * param_value,
|
| 1249 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1250 |
+
|
| 1251 |
+
#ifdef CL_VERSION_2_0
|
| 1252 |
+
|
| 1253 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1254 |
+
clGetPipeInfo(cl_mem pipe,
|
| 1255 |
+
cl_pipe_info param_name,
|
| 1256 |
+
size_t param_value_size,
|
| 1257 |
+
void * param_value,
|
| 1258 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_2_0;
|
| 1259 |
+
|
| 1260 |
+
#endif
|
| 1261 |
+
|
| 1262 |
+
#ifdef CL_VERSION_1_1
|
| 1263 |
+
|
| 1264 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1265 |
+
clSetMemObjectDestructorCallback(cl_mem memobj,
|
| 1266 |
+
void (CL_CALLBACK * pfn_notify)(cl_mem memobj,
|
| 1267 |
+
void * user_data),
|
| 1268 |
+
void * user_data) CL_API_SUFFIX__VERSION_1_1;
|
| 1269 |
+
|
| 1270 |
+
#endif
|
| 1271 |
+
|
| 1272 |
+
/* SVM Allocation APIs */
|
| 1273 |
+
|
| 1274 |
+
#ifdef CL_VERSION_2_0
|
| 1275 |
+
|
| 1276 |
+
extern CL_API_ENTRY void * CL_API_CALL
|
| 1277 |
+
clSVMAlloc(cl_context context,
|
| 1278 |
+
cl_svm_mem_flags flags,
|
| 1279 |
+
size_t size,
|
| 1280 |
+
cl_uint alignment) CL_API_SUFFIX__VERSION_2_0;
|
| 1281 |
+
|
| 1282 |
+
extern CL_API_ENTRY void CL_API_CALL
|
| 1283 |
+
clSVMFree(cl_context context,
|
| 1284 |
+
void * svm_pointer) CL_API_SUFFIX__VERSION_2_0;
|
| 1285 |
+
|
| 1286 |
+
#endif
|
| 1287 |
+
|
| 1288 |
+
/* Sampler APIs */
|
| 1289 |
+
|
| 1290 |
+
#ifdef CL_VERSION_2_0
|
| 1291 |
+
|
| 1292 |
+
extern CL_API_ENTRY cl_sampler CL_API_CALL
|
| 1293 |
+
clCreateSamplerWithProperties(cl_context context,
|
| 1294 |
+
const cl_sampler_properties * sampler_properties,
|
| 1295 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_2_0;
|
| 1296 |
+
|
| 1297 |
+
#endif
|
| 1298 |
+
|
| 1299 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1300 |
+
clRetainSampler(cl_sampler sampler) CL_API_SUFFIX__VERSION_1_0;
|
| 1301 |
+
|
| 1302 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1303 |
+
clReleaseSampler(cl_sampler sampler) CL_API_SUFFIX__VERSION_1_0;
|
| 1304 |
+
|
| 1305 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1306 |
+
clGetSamplerInfo(cl_sampler sampler,
|
| 1307 |
+
cl_sampler_info param_name,
|
| 1308 |
+
size_t param_value_size,
|
| 1309 |
+
void * param_value,
|
| 1310 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1311 |
+
|
| 1312 |
+
/* Program Object APIs */
|
| 1313 |
+
extern CL_API_ENTRY cl_program CL_API_CALL
|
| 1314 |
+
clCreateProgramWithSource(cl_context context,
|
| 1315 |
+
cl_uint count,
|
| 1316 |
+
const char ** strings,
|
| 1317 |
+
const size_t * lengths,
|
| 1318 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1319 |
+
|
| 1320 |
+
extern CL_API_ENTRY cl_program CL_API_CALL
|
| 1321 |
+
clCreateProgramWithBinary(cl_context context,
|
| 1322 |
+
cl_uint num_devices,
|
| 1323 |
+
const cl_device_id * device_list,
|
| 1324 |
+
const size_t * lengths,
|
| 1325 |
+
const unsigned char ** binaries,
|
| 1326 |
+
cl_int * binary_status,
|
| 1327 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1328 |
+
|
| 1329 |
+
#ifdef CL_VERSION_1_2
|
| 1330 |
+
|
| 1331 |
+
extern CL_API_ENTRY cl_program CL_API_CALL
|
| 1332 |
+
clCreateProgramWithBuiltInKernels(cl_context context,
|
| 1333 |
+
cl_uint num_devices,
|
| 1334 |
+
const cl_device_id * device_list,
|
| 1335 |
+
const char * kernel_names,
|
| 1336 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 1337 |
+
|
| 1338 |
+
#endif
|
| 1339 |
+
|
| 1340 |
+
#ifdef CL_VERSION_2_1
|
| 1341 |
+
|
| 1342 |
+
extern CL_API_ENTRY cl_program CL_API_CALL
|
| 1343 |
+
clCreateProgramWithIL(cl_context context,
|
| 1344 |
+
const void* il,
|
| 1345 |
+
size_t length,
|
| 1346 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_2_1;
|
| 1347 |
+
|
| 1348 |
+
#endif
|
| 1349 |
+
|
| 1350 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1351 |
+
clRetainProgram(cl_program program) CL_API_SUFFIX__VERSION_1_0;
|
| 1352 |
+
|
| 1353 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1354 |
+
clReleaseProgram(cl_program program) CL_API_SUFFIX__VERSION_1_0;
|
| 1355 |
+
|
| 1356 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1357 |
+
clBuildProgram(cl_program program,
|
| 1358 |
+
cl_uint num_devices,
|
| 1359 |
+
const cl_device_id * device_list,
|
| 1360 |
+
const char * options,
|
| 1361 |
+
void (CL_CALLBACK * pfn_notify)(cl_program program,
|
| 1362 |
+
void * user_data),
|
| 1363 |
+
void * user_data) CL_API_SUFFIX__VERSION_1_0;
|
| 1364 |
+
|
| 1365 |
+
#ifdef CL_VERSION_1_2
|
| 1366 |
+
|
| 1367 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1368 |
+
clCompileProgram(cl_program program,
|
| 1369 |
+
cl_uint num_devices,
|
| 1370 |
+
const cl_device_id * device_list,
|
| 1371 |
+
const char * options,
|
| 1372 |
+
cl_uint num_input_headers,
|
| 1373 |
+
const cl_program * input_headers,
|
| 1374 |
+
const char ** header_include_names,
|
| 1375 |
+
void (CL_CALLBACK * pfn_notify)(cl_program program,
|
| 1376 |
+
void * user_data),
|
| 1377 |
+
void * user_data) CL_API_SUFFIX__VERSION_1_2;
|
| 1378 |
+
|
| 1379 |
+
extern CL_API_ENTRY cl_program CL_API_CALL
|
| 1380 |
+
clLinkProgram(cl_context context,
|
| 1381 |
+
cl_uint num_devices,
|
| 1382 |
+
const cl_device_id * device_list,
|
| 1383 |
+
const char * options,
|
| 1384 |
+
cl_uint num_input_programs,
|
| 1385 |
+
const cl_program * input_programs,
|
| 1386 |
+
void (CL_CALLBACK * pfn_notify)(cl_program program,
|
| 1387 |
+
void * user_data),
|
| 1388 |
+
void * user_data,
|
| 1389 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 1390 |
+
|
| 1391 |
+
#endif
|
| 1392 |
+
|
| 1393 |
+
#ifdef CL_VERSION_2_2
|
| 1394 |
+
|
| 1395 |
+
extern CL_API_ENTRY CL_API_PREFIX__VERSION_2_2_DEPRECATED cl_int CL_API_CALL
|
| 1396 |
+
clSetProgramReleaseCallback(cl_program program,
|
| 1397 |
+
void (CL_CALLBACK * pfn_notify)(cl_program program,
|
| 1398 |
+
void * user_data),
|
| 1399 |
+
void * user_data) CL_API_SUFFIX__VERSION_2_2_DEPRECATED;
|
| 1400 |
+
|
| 1401 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1402 |
+
clSetProgramSpecializationConstant(cl_program program,
|
| 1403 |
+
cl_uint spec_id,
|
| 1404 |
+
size_t spec_size,
|
| 1405 |
+
const void* spec_value) CL_API_SUFFIX__VERSION_2_2;
|
| 1406 |
+
|
| 1407 |
+
#endif
|
| 1408 |
+
|
| 1409 |
+
#ifdef CL_VERSION_1_2
|
| 1410 |
+
|
| 1411 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1412 |
+
clUnloadPlatformCompiler(cl_platform_id platform) CL_API_SUFFIX__VERSION_1_2;
|
| 1413 |
+
|
| 1414 |
+
#endif
|
| 1415 |
+
|
| 1416 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1417 |
+
clGetProgramInfo(cl_program program,
|
| 1418 |
+
cl_program_info param_name,
|
| 1419 |
+
size_t param_value_size,
|
| 1420 |
+
void * param_value,
|
| 1421 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1422 |
+
|
| 1423 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1424 |
+
clGetProgramBuildInfo(cl_program program,
|
| 1425 |
+
cl_device_id device,
|
| 1426 |
+
cl_program_build_info param_name,
|
| 1427 |
+
size_t param_value_size,
|
| 1428 |
+
void * param_value,
|
| 1429 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1430 |
+
|
| 1431 |
+
/* Kernel Object APIs */
|
| 1432 |
+
extern CL_API_ENTRY cl_kernel CL_API_CALL
|
| 1433 |
+
clCreateKernel(cl_program program,
|
| 1434 |
+
const char * kernel_name,
|
| 1435 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1436 |
+
|
| 1437 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1438 |
+
clCreateKernelsInProgram(cl_program program,
|
| 1439 |
+
cl_uint num_kernels,
|
| 1440 |
+
cl_kernel * kernels,
|
| 1441 |
+
cl_uint * num_kernels_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1442 |
+
|
| 1443 |
+
#ifdef CL_VERSION_2_1
|
| 1444 |
+
|
| 1445 |
+
extern CL_API_ENTRY cl_kernel CL_API_CALL
|
| 1446 |
+
clCloneKernel(cl_kernel source_kernel,
|
| 1447 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_2_1;
|
| 1448 |
+
|
| 1449 |
+
#endif
|
| 1450 |
+
|
| 1451 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1452 |
+
clRetainKernel(cl_kernel kernel) CL_API_SUFFIX__VERSION_1_0;
|
| 1453 |
+
|
| 1454 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1455 |
+
clReleaseKernel(cl_kernel kernel) CL_API_SUFFIX__VERSION_1_0;
|
| 1456 |
+
|
| 1457 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1458 |
+
clSetKernelArg(cl_kernel kernel,
|
| 1459 |
+
cl_uint arg_index,
|
| 1460 |
+
size_t arg_size,
|
| 1461 |
+
const void * arg_value) CL_API_SUFFIX__VERSION_1_0;
|
| 1462 |
+
|
| 1463 |
+
#ifdef CL_VERSION_2_0
|
| 1464 |
+
|
| 1465 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1466 |
+
clSetKernelArgSVMPointer(cl_kernel kernel,
|
| 1467 |
+
cl_uint arg_index,
|
| 1468 |
+
const void * arg_value) CL_API_SUFFIX__VERSION_2_0;
|
| 1469 |
+
|
| 1470 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1471 |
+
clSetKernelExecInfo(cl_kernel kernel,
|
| 1472 |
+
cl_kernel_exec_info param_name,
|
| 1473 |
+
size_t param_value_size,
|
| 1474 |
+
const void * param_value) CL_API_SUFFIX__VERSION_2_0;
|
| 1475 |
+
|
| 1476 |
+
#endif
|
| 1477 |
+
|
| 1478 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1479 |
+
clGetKernelInfo(cl_kernel kernel,
|
| 1480 |
+
cl_kernel_info param_name,
|
| 1481 |
+
size_t param_value_size,
|
| 1482 |
+
void * param_value,
|
| 1483 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1484 |
+
|
| 1485 |
+
#ifdef CL_VERSION_1_2
|
| 1486 |
+
|
| 1487 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1488 |
+
clGetKernelArgInfo(cl_kernel kernel,
|
| 1489 |
+
cl_uint arg_indx,
|
| 1490 |
+
cl_kernel_arg_info param_name,
|
| 1491 |
+
size_t param_value_size,
|
| 1492 |
+
void * param_value,
|
| 1493 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 1494 |
+
|
| 1495 |
+
#endif
|
| 1496 |
+
|
| 1497 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1498 |
+
clGetKernelWorkGroupInfo(cl_kernel kernel,
|
| 1499 |
+
cl_device_id device,
|
| 1500 |
+
cl_kernel_work_group_info param_name,
|
| 1501 |
+
size_t param_value_size,
|
| 1502 |
+
void * param_value,
|
| 1503 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1504 |
+
|
| 1505 |
+
#ifdef CL_VERSION_2_1
|
| 1506 |
+
|
| 1507 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1508 |
+
clGetKernelSubGroupInfo(cl_kernel kernel,
|
| 1509 |
+
cl_device_id device,
|
| 1510 |
+
cl_kernel_sub_group_info param_name,
|
| 1511 |
+
size_t input_value_size,
|
| 1512 |
+
const void* input_value,
|
| 1513 |
+
size_t param_value_size,
|
| 1514 |
+
void* param_value,
|
| 1515 |
+
size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_2_1;
|
| 1516 |
+
|
| 1517 |
+
#endif
|
| 1518 |
+
|
| 1519 |
+
/* Event Object APIs */
|
| 1520 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1521 |
+
clWaitForEvents(cl_uint num_events,
|
| 1522 |
+
const cl_event * event_list) CL_API_SUFFIX__VERSION_1_0;
|
| 1523 |
+
|
| 1524 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1525 |
+
clGetEventInfo(cl_event event,
|
| 1526 |
+
cl_event_info param_name,
|
| 1527 |
+
size_t param_value_size,
|
| 1528 |
+
void * param_value,
|
| 1529 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1530 |
+
|
| 1531 |
+
#ifdef CL_VERSION_1_1
|
| 1532 |
+
|
| 1533 |
+
extern CL_API_ENTRY cl_event CL_API_CALL
|
| 1534 |
+
clCreateUserEvent(cl_context context,
|
| 1535 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_1;
|
| 1536 |
+
|
| 1537 |
+
#endif
|
| 1538 |
+
|
| 1539 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1540 |
+
clRetainEvent(cl_event event) CL_API_SUFFIX__VERSION_1_0;
|
| 1541 |
+
|
| 1542 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1543 |
+
clReleaseEvent(cl_event event) CL_API_SUFFIX__VERSION_1_0;
|
| 1544 |
+
|
| 1545 |
+
#ifdef CL_VERSION_1_1
|
| 1546 |
+
|
| 1547 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1548 |
+
clSetUserEventStatus(cl_event event,
|
| 1549 |
+
cl_int execution_status) CL_API_SUFFIX__VERSION_1_1;
|
| 1550 |
+
|
| 1551 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1552 |
+
clSetEventCallback(cl_event event,
|
| 1553 |
+
cl_int command_exec_callback_type,
|
| 1554 |
+
void (CL_CALLBACK * pfn_notify)(cl_event event,
|
| 1555 |
+
cl_int event_command_status,
|
| 1556 |
+
void * user_data),
|
| 1557 |
+
void * user_data) CL_API_SUFFIX__VERSION_1_1;
|
| 1558 |
+
|
| 1559 |
+
#endif
|
| 1560 |
+
|
| 1561 |
+
/* Profiling APIs */
|
| 1562 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1563 |
+
clGetEventProfilingInfo(cl_event event,
|
| 1564 |
+
cl_profiling_info param_name,
|
| 1565 |
+
size_t param_value_size,
|
| 1566 |
+
void * param_value,
|
| 1567 |
+
size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1568 |
+
|
| 1569 |
+
/* Flush and Finish APIs */
|
| 1570 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1571 |
+
clFlush(cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0;
|
| 1572 |
+
|
| 1573 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1574 |
+
clFinish(cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_0;
|
| 1575 |
+
|
| 1576 |
+
/* Enqueued Commands APIs */
|
| 1577 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1578 |
+
clEnqueueReadBuffer(cl_command_queue command_queue,
|
| 1579 |
+
cl_mem buffer,
|
| 1580 |
+
cl_bool blocking_read,
|
| 1581 |
+
size_t offset,
|
| 1582 |
+
size_t size,
|
| 1583 |
+
void * ptr,
|
| 1584 |
+
cl_uint num_events_in_wait_list,
|
| 1585 |
+
const cl_event * event_wait_list,
|
| 1586 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 1587 |
+
|
| 1588 |
+
#ifdef CL_VERSION_1_1
|
| 1589 |
+
|
| 1590 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1591 |
+
clEnqueueReadBufferRect(cl_command_queue command_queue,
|
| 1592 |
+
cl_mem buffer,
|
| 1593 |
+
cl_bool blocking_read,
|
| 1594 |
+
const size_t * buffer_origin,
|
| 1595 |
+
const size_t * host_origin,
|
| 1596 |
+
const size_t * region,
|
| 1597 |
+
size_t buffer_row_pitch,
|
| 1598 |
+
size_t buffer_slice_pitch,
|
| 1599 |
+
size_t host_row_pitch,
|
| 1600 |
+
size_t host_slice_pitch,
|
| 1601 |
+
void * ptr,
|
| 1602 |
+
cl_uint num_events_in_wait_list,
|
| 1603 |
+
const cl_event * event_wait_list,
|
| 1604 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_1;
|
| 1605 |
+
|
| 1606 |
+
#endif
|
| 1607 |
+
|
| 1608 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1609 |
+
clEnqueueWriteBuffer(cl_command_queue command_queue,
|
| 1610 |
+
cl_mem buffer,
|
| 1611 |
+
cl_bool blocking_write,
|
| 1612 |
+
size_t offset,
|
| 1613 |
+
size_t size,
|
| 1614 |
+
const void * ptr,
|
| 1615 |
+
cl_uint num_events_in_wait_list,
|
| 1616 |
+
const cl_event * event_wait_list,
|
| 1617 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 1618 |
+
|
| 1619 |
+
#ifdef CL_VERSION_1_1
|
| 1620 |
+
|
| 1621 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1622 |
+
clEnqueueWriteBufferRect(cl_command_queue command_queue,
|
| 1623 |
+
cl_mem buffer,
|
| 1624 |
+
cl_bool blocking_write,
|
| 1625 |
+
const size_t * buffer_origin,
|
| 1626 |
+
const size_t * host_origin,
|
| 1627 |
+
const size_t * region,
|
| 1628 |
+
size_t buffer_row_pitch,
|
| 1629 |
+
size_t buffer_slice_pitch,
|
| 1630 |
+
size_t host_row_pitch,
|
| 1631 |
+
size_t host_slice_pitch,
|
| 1632 |
+
const void * ptr,
|
| 1633 |
+
cl_uint num_events_in_wait_list,
|
| 1634 |
+
const cl_event * event_wait_list,
|
| 1635 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_1;
|
| 1636 |
+
|
| 1637 |
+
#endif
|
| 1638 |
+
|
| 1639 |
+
#ifdef CL_VERSION_1_2
|
| 1640 |
+
|
| 1641 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1642 |
+
clEnqueueFillBuffer(cl_command_queue command_queue,
|
| 1643 |
+
cl_mem buffer,
|
| 1644 |
+
const void * pattern,
|
| 1645 |
+
size_t pattern_size,
|
| 1646 |
+
size_t offset,
|
| 1647 |
+
size_t size,
|
| 1648 |
+
cl_uint num_events_in_wait_list,
|
| 1649 |
+
const cl_event * event_wait_list,
|
| 1650 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_2;
|
| 1651 |
+
|
| 1652 |
+
#endif
|
| 1653 |
+
|
| 1654 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1655 |
+
clEnqueueCopyBuffer(cl_command_queue command_queue,
|
| 1656 |
+
cl_mem src_buffer,
|
| 1657 |
+
cl_mem dst_buffer,
|
| 1658 |
+
size_t src_offset,
|
| 1659 |
+
size_t dst_offset,
|
| 1660 |
+
size_t size,
|
| 1661 |
+
cl_uint num_events_in_wait_list,
|
| 1662 |
+
const cl_event * event_wait_list,
|
| 1663 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 1664 |
+
|
| 1665 |
+
#ifdef CL_VERSION_1_1
|
| 1666 |
+
|
| 1667 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1668 |
+
clEnqueueCopyBufferRect(cl_command_queue command_queue,
|
| 1669 |
+
cl_mem src_buffer,
|
| 1670 |
+
cl_mem dst_buffer,
|
| 1671 |
+
const size_t * src_origin,
|
| 1672 |
+
const size_t * dst_origin,
|
| 1673 |
+
const size_t * region,
|
| 1674 |
+
size_t src_row_pitch,
|
| 1675 |
+
size_t src_slice_pitch,
|
| 1676 |
+
size_t dst_row_pitch,
|
| 1677 |
+
size_t dst_slice_pitch,
|
| 1678 |
+
cl_uint num_events_in_wait_list,
|
| 1679 |
+
const cl_event * event_wait_list,
|
| 1680 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_1;
|
| 1681 |
+
|
| 1682 |
+
#endif
|
| 1683 |
+
|
| 1684 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1685 |
+
clEnqueueReadImage(cl_command_queue command_queue,
|
| 1686 |
+
cl_mem image,
|
| 1687 |
+
cl_bool blocking_read,
|
| 1688 |
+
const size_t * origin,
|
| 1689 |
+
const size_t * region,
|
| 1690 |
+
size_t row_pitch,
|
| 1691 |
+
size_t slice_pitch,
|
| 1692 |
+
void * ptr,
|
| 1693 |
+
cl_uint num_events_in_wait_list,
|
| 1694 |
+
const cl_event * event_wait_list,
|
| 1695 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 1696 |
+
|
| 1697 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1698 |
+
clEnqueueWriteImage(cl_command_queue command_queue,
|
| 1699 |
+
cl_mem image,
|
| 1700 |
+
cl_bool blocking_write,
|
| 1701 |
+
const size_t * origin,
|
| 1702 |
+
const size_t * region,
|
| 1703 |
+
size_t input_row_pitch,
|
| 1704 |
+
size_t input_slice_pitch,
|
| 1705 |
+
const void * ptr,
|
| 1706 |
+
cl_uint num_events_in_wait_list,
|
| 1707 |
+
const cl_event * event_wait_list,
|
| 1708 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 1709 |
+
|
| 1710 |
+
#ifdef CL_VERSION_1_2
|
| 1711 |
+
|
| 1712 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1713 |
+
clEnqueueFillImage(cl_command_queue command_queue,
|
| 1714 |
+
cl_mem image,
|
| 1715 |
+
const void * fill_color,
|
| 1716 |
+
const size_t * origin,
|
| 1717 |
+
const size_t * region,
|
| 1718 |
+
cl_uint num_events_in_wait_list,
|
| 1719 |
+
const cl_event * event_wait_list,
|
| 1720 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_2;
|
| 1721 |
+
|
| 1722 |
+
#endif
|
| 1723 |
+
|
| 1724 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1725 |
+
clEnqueueCopyImage(cl_command_queue command_queue,
|
| 1726 |
+
cl_mem src_image,
|
| 1727 |
+
cl_mem dst_image,
|
| 1728 |
+
const size_t * src_origin,
|
| 1729 |
+
const size_t * dst_origin,
|
| 1730 |
+
const size_t * region,
|
| 1731 |
+
cl_uint num_events_in_wait_list,
|
| 1732 |
+
const cl_event * event_wait_list,
|
| 1733 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 1734 |
+
|
| 1735 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1736 |
+
clEnqueueCopyImageToBuffer(cl_command_queue command_queue,
|
| 1737 |
+
cl_mem src_image,
|
| 1738 |
+
cl_mem dst_buffer,
|
| 1739 |
+
const size_t * src_origin,
|
| 1740 |
+
const size_t * region,
|
| 1741 |
+
size_t dst_offset,
|
| 1742 |
+
cl_uint num_events_in_wait_list,
|
| 1743 |
+
const cl_event * event_wait_list,
|
| 1744 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 1745 |
+
|
| 1746 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1747 |
+
clEnqueueCopyBufferToImage(cl_command_queue command_queue,
|
| 1748 |
+
cl_mem src_buffer,
|
| 1749 |
+
cl_mem dst_image,
|
| 1750 |
+
size_t src_offset,
|
| 1751 |
+
const size_t * dst_origin,
|
| 1752 |
+
const size_t * region,
|
| 1753 |
+
cl_uint num_events_in_wait_list,
|
| 1754 |
+
const cl_event * event_wait_list,
|
| 1755 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 1756 |
+
|
| 1757 |
+
extern CL_API_ENTRY void * CL_API_CALL
|
| 1758 |
+
clEnqueueMapBuffer(cl_command_queue command_queue,
|
| 1759 |
+
cl_mem buffer,
|
| 1760 |
+
cl_bool blocking_map,
|
| 1761 |
+
cl_map_flags map_flags,
|
| 1762 |
+
size_t offset,
|
| 1763 |
+
size_t size,
|
| 1764 |
+
cl_uint num_events_in_wait_list,
|
| 1765 |
+
const cl_event * event_wait_list,
|
| 1766 |
+
cl_event * event,
|
| 1767 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1768 |
+
|
| 1769 |
+
extern CL_API_ENTRY void * CL_API_CALL
|
| 1770 |
+
clEnqueueMapImage(cl_command_queue command_queue,
|
| 1771 |
+
cl_mem image,
|
| 1772 |
+
cl_bool blocking_map,
|
| 1773 |
+
cl_map_flags map_flags,
|
| 1774 |
+
const size_t * origin,
|
| 1775 |
+
const size_t * region,
|
| 1776 |
+
size_t * image_row_pitch,
|
| 1777 |
+
size_t * image_slice_pitch,
|
| 1778 |
+
cl_uint num_events_in_wait_list,
|
| 1779 |
+
const cl_event * event_wait_list,
|
| 1780 |
+
cl_event * event,
|
| 1781 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 1782 |
+
|
| 1783 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1784 |
+
clEnqueueUnmapMemObject(cl_command_queue command_queue,
|
| 1785 |
+
cl_mem memobj,
|
| 1786 |
+
void * mapped_ptr,
|
| 1787 |
+
cl_uint num_events_in_wait_list,
|
| 1788 |
+
const cl_event * event_wait_list,
|
| 1789 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 1790 |
+
|
| 1791 |
+
#ifdef CL_VERSION_1_2
|
| 1792 |
+
|
| 1793 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1794 |
+
clEnqueueMigrateMemObjects(cl_command_queue command_queue,
|
| 1795 |
+
cl_uint num_mem_objects,
|
| 1796 |
+
const cl_mem * mem_objects,
|
| 1797 |
+
cl_mem_migration_flags flags,
|
| 1798 |
+
cl_uint num_events_in_wait_list,
|
| 1799 |
+
const cl_event * event_wait_list,
|
| 1800 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_2;
|
| 1801 |
+
|
| 1802 |
+
#endif
|
| 1803 |
+
|
| 1804 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1805 |
+
clEnqueueNDRangeKernel(cl_command_queue command_queue,
|
| 1806 |
+
cl_kernel kernel,
|
| 1807 |
+
cl_uint work_dim,
|
| 1808 |
+
const size_t * global_work_offset,
|
| 1809 |
+
const size_t * global_work_size,
|
| 1810 |
+
const size_t * local_work_size,
|
| 1811 |
+
cl_uint num_events_in_wait_list,
|
| 1812 |
+
const cl_event * event_wait_list,
|
| 1813 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 1814 |
+
|
| 1815 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1816 |
+
clEnqueueNativeKernel(cl_command_queue command_queue,
|
| 1817 |
+
void (CL_CALLBACK * user_func)(void *),
|
| 1818 |
+
void * args,
|
| 1819 |
+
size_t cb_args,
|
| 1820 |
+
cl_uint num_mem_objects,
|
| 1821 |
+
const cl_mem * mem_list,
|
| 1822 |
+
const void ** args_mem_loc,
|
| 1823 |
+
cl_uint num_events_in_wait_list,
|
| 1824 |
+
const cl_event * event_wait_list,
|
| 1825 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 1826 |
+
|
| 1827 |
+
#ifdef CL_VERSION_1_2
|
| 1828 |
+
|
| 1829 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1830 |
+
clEnqueueMarkerWithWaitList(cl_command_queue command_queue,
|
| 1831 |
+
cl_uint num_events_in_wait_list,
|
| 1832 |
+
const cl_event * event_wait_list,
|
| 1833 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_2;
|
| 1834 |
+
|
| 1835 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1836 |
+
clEnqueueBarrierWithWaitList(cl_command_queue command_queue,
|
| 1837 |
+
cl_uint num_events_in_wait_list,
|
| 1838 |
+
const cl_event * event_wait_list,
|
| 1839 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_2;
|
| 1840 |
+
|
| 1841 |
+
#endif
|
| 1842 |
+
|
| 1843 |
+
#ifdef CL_VERSION_2_0
|
| 1844 |
+
|
| 1845 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1846 |
+
clEnqueueSVMFree(cl_command_queue command_queue,
|
| 1847 |
+
cl_uint num_svm_pointers,
|
| 1848 |
+
void * svm_pointers[],
|
| 1849 |
+
void (CL_CALLBACK * pfn_free_func)(cl_command_queue queue,
|
| 1850 |
+
cl_uint num_svm_pointers,
|
| 1851 |
+
void * svm_pointers[],
|
| 1852 |
+
void * user_data),
|
| 1853 |
+
void * user_data,
|
| 1854 |
+
cl_uint num_events_in_wait_list,
|
| 1855 |
+
const cl_event * event_wait_list,
|
| 1856 |
+
cl_event * event) CL_API_SUFFIX__VERSION_2_0;
|
| 1857 |
+
|
| 1858 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1859 |
+
clEnqueueSVMMemcpy(cl_command_queue command_queue,
|
| 1860 |
+
cl_bool blocking_copy,
|
| 1861 |
+
void * dst_ptr,
|
| 1862 |
+
const void * src_ptr,
|
| 1863 |
+
size_t size,
|
| 1864 |
+
cl_uint num_events_in_wait_list,
|
| 1865 |
+
const cl_event * event_wait_list,
|
| 1866 |
+
cl_event * event) CL_API_SUFFIX__VERSION_2_0;
|
| 1867 |
+
|
| 1868 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1869 |
+
clEnqueueSVMMemFill(cl_command_queue command_queue,
|
| 1870 |
+
void * svm_ptr,
|
| 1871 |
+
const void * pattern,
|
| 1872 |
+
size_t pattern_size,
|
| 1873 |
+
size_t size,
|
| 1874 |
+
cl_uint num_events_in_wait_list,
|
| 1875 |
+
const cl_event * event_wait_list,
|
| 1876 |
+
cl_event * event) CL_API_SUFFIX__VERSION_2_0;
|
| 1877 |
+
|
| 1878 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1879 |
+
clEnqueueSVMMap(cl_command_queue command_queue,
|
| 1880 |
+
cl_bool blocking_map,
|
| 1881 |
+
cl_map_flags flags,
|
| 1882 |
+
void * svm_ptr,
|
| 1883 |
+
size_t size,
|
| 1884 |
+
cl_uint num_events_in_wait_list,
|
| 1885 |
+
const cl_event * event_wait_list,
|
| 1886 |
+
cl_event * event) CL_API_SUFFIX__VERSION_2_0;
|
| 1887 |
+
|
| 1888 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1889 |
+
clEnqueueSVMUnmap(cl_command_queue command_queue,
|
| 1890 |
+
void * svm_ptr,
|
| 1891 |
+
cl_uint num_events_in_wait_list,
|
| 1892 |
+
const cl_event * event_wait_list,
|
| 1893 |
+
cl_event * event) CL_API_SUFFIX__VERSION_2_0;
|
| 1894 |
+
|
| 1895 |
+
#endif
|
| 1896 |
+
|
| 1897 |
+
#ifdef CL_VERSION_2_1
|
| 1898 |
+
|
| 1899 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1900 |
+
clEnqueueSVMMigrateMem(cl_command_queue command_queue,
|
| 1901 |
+
cl_uint num_svm_pointers,
|
| 1902 |
+
const void ** svm_pointers,
|
| 1903 |
+
const size_t * sizes,
|
| 1904 |
+
cl_mem_migration_flags flags,
|
| 1905 |
+
cl_uint num_events_in_wait_list,
|
| 1906 |
+
const cl_event * event_wait_list,
|
| 1907 |
+
cl_event * event) CL_API_SUFFIX__VERSION_2_1;
|
| 1908 |
+
|
| 1909 |
+
#endif
|
| 1910 |
+
|
| 1911 |
+
#ifdef CL_VERSION_1_2
|
| 1912 |
+
|
| 1913 |
+
/* Extension function access
|
| 1914 |
+
*
|
| 1915 |
+
* Returns the extension function address for the given function name,
|
| 1916 |
+
* or NULL if a valid function can not be found. The client must
|
| 1917 |
+
* check to make sure the address is not NULL, before using or
|
| 1918 |
+
* calling the returned function address.
|
| 1919 |
+
*/
|
| 1920 |
+
extern CL_API_ENTRY void * CL_API_CALL
|
| 1921 |
+
clGetExtensionFunctionAddressForPlatform(cl_platform_id platform,
|
| 1922 |
+
const char * func_name) CL_API_SUFFIX__VERSION_1_2;
|
| 1923 |
+
|
| 1924 |
+
#endif
|
| 1925 |
+
|
| 1926 |
+
#ifdef CL_USE_DEPRECATED_OPENCL_1_0_APIS
|
| 1927 |
+
/*
|
| 1928 |
+
* WARNING:
|
| 1929 |
+
* This API introduces mutable state into the OpenCL implementation. It has been REMOVED
|
| 1930 |
+
* to better facilitate thread safety. The 1.0 API is not thread safe. It is not tested by the
|
| 1931 |
+
* OpenCL 1.1 conformance test, and consequently may not work or may not work dependably.
|
| 1932 |
+
* It is likely to be non-performant. Use of this API is not advised. Use at your own risk.
|
| 1933 |
+
*
|
| 1934 |
+
* Software developers previously relying on this API are instructed to set the command queue
|
| 1935 |
+
* properties when creating the queue, instead.
|
| 1936 |
+
*/
|
| 1937 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 1938 |
+
clSetCommandQueueProperty(cl_command_queue command_queue,
|
| 1939 |
+
cl_command_queue_properties properties,
|
| 1940 |
+
cl_bool enable,
|
| 1941 |
+
cl_command_queue_properties * old_properties) CL_API_SUFFIX__VERSION_1_0_DEPRECATED;
|
| 1942 |
+
#endif /* CL_USE_DEPRECATED_OPENCL_1_0_APIS */
|
| 1943 |
+
|
| 1944 |
+
/* Deprecated OpenCL 1.1 APIs */
|
| 1945 |
+
extern CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL
|
| 1946 |
+
clCreateImage2D(cl_context context,
|
| 1947 |
+
cl_mem_flags flags,
|
| 1948 |
+
const cl_image_format * image_format,
|
| 1949 |
+
size_t image_width,
|
| 1950 |
+
size_t image_height,
|
| 1951 |
+
size_t image_row_pitch,
|
| 1952 |
+
void * host_ptr,
|
| 1953 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
| 1954 |
+
|
| 1955 |
+
extern CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL
|
| 1956 |
+
clCreateImage3D(cl_context context,
|
| 1957 |
+
cl_mem_flags flags,
|
| 1958 |
+
const cl_image_format * image_format,
|
| 1959 |
+
size_t image_width,
|
| 1960 |
+
size_t image_height,
|
| 1961 |
+
size_t image_depth,
|
| 1962 |
+
size_t image_row_pitch,
|
| 1963 |
+
size_t image_slice_pitch,
|
| 1964 |
+
void * host_ptr,
|
| 1965 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
| 1966 |
+
|
| 1967 |
+
extern CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL
|
| 1968 |
+
clEnqueueMarker(cl_command_queue command_queue,
|
| 1969 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
| 1970 |
+
|
| 1971 |
+
extern CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL
|
| 1972 |
+
clEnqueueWaitForEvents(cl_command_queue command_queue,
|
| 1973 |
+
cl_uint num_events,
|
| 1974 |
+
const cl_event * event_list) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
| 1975 |
+
|
| 1976 |
+
extern CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL
|
| 1977 |
+
clEnqueueBarrier(cl_command_queue command_queue) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
| 1978 |
+
|
| 1979 |
+
extern CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL
|
| 1980 |
+
clUnloadCompiler(void) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
| 1981 |
+
|
| 1982 |
+
extern CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED void * CL_API_CALL
|
| 1983 |
+
clGetExtensionFunctionAddress(const char * func_name) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
| 1984 |
+
|
| 1985 |
+
/* Deprecated OpenCL 2.0 APIs */
|
| 1986 |
+
extern CL_API_ENTRY CL_API_PREFIX__VERSION_1_2_DEPRECATED cl_command_queue CL_API_CALL
|
| 1987 |
+
clCreateCommandQueue(cl_context context,
|
| 1988 |
+
cl_device_id device,
|
| 1989 |
+
cl_command_queue_properties properties,
|
| 1990 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2_DEPRECATED;
|
| 1991 |
+
|
| 1992 |
+
extern CL_API_ENTRY CL_API_PREFIX__VERSION_1_2_DEPRECATED cl_sampler CL_API_CALL
|
| 1993 |
+
clCreateSampler(cl_context context,
|
| 1994 |
+
cl_bool normalized_coords,
|
| 1995 |
+
cl_addressing_mode addressing_mode,
|
| 1996 |
+
cl_filter_mode filter_mode,
|
| 1997 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2_DEPRECATED;
|
| 1998 |
+
|
| 1999 |
+
extern CL_API_ENTRY CL_API_PREFIX__VERSION_1_2_DEPRECATED cl_int CL_API_CALL
|
| 2000 |
+
clEnqueueTask(cl_command_queue command_queue,
|
| 2001 |
+
cl_kernel kernel,
|
| 2002 |
+
cl_uint num_events_in_wait_list,
|
| 2003 |
+
const cl_event * event_wait_list,
|
| 2004 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_2_DEPRECATED;
|
| 2005 |
+
|
| 2006 |
+
#endif /* !defined(CL_NO_CORE_PROTOTYPES) */
|
| 2007 |
+
|
| 2008 |
+
#ifdef __cplusplus
|
| 2009 |
+
}
|
| 2010 |
+
#endif
|
| 2011 |
+
|
| 2012 |
+
#endif /* __OPENCL_CL_H */
|
cuda_toolkit/include/CL/cl.hpp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cuda_toolkit/include/CL/cl_d3d10.h
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*******************************************************************************
|
| 2 |
+
* Copyright (c) 2008-2023 The Khronos Group Inc.
|
| 3 |
+
*
|
| 4 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
* you may not use this file except in compliance with the License.
|
| 6 |
+
* You may obtain a copy of the License at
|
| 7 |
+
*
|
| 8 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
*
|
| 10 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
* See the License for the specific language governing permissions and
|
| 14 |
+
* limitations under the License.
|
| 15 |
+
******************************************************************************/
|
| 16 |
+
|
| 17 |
+
#ifndef OPENCL_CL_D3D10_H_
|
| 18 |
+
#define OPENCL_CL_D3D10_H_
|
| 19 |
+
|
| 20 |
+
/*
|
| 21 |
+
** This header is generated from the Khronos OpenCL XML API Registry.
|
| 22 |
+
*/
|
| 23 |
+
|
| 24 |
+
#if defined(_MSC_VER)
|
| 25 |
+
#if _MSC_VER >=1500
|
| 26 |
+
#pragma warning( push )
|
| 27 |
+
#pragma warning( disable : 4201 )
|
| 28 |
+
#pragma warning( disable : 5105 )
|
| 29 |
+
#endif
|
| 30 |
+
#endif
|
| 31 |
+
#include <d3d10.h>
|
| 32 |
+
#if defined(_MSC_VER)
|
| 33 |
+
#if _MSC_VER >=1500
|
| 34 |
+
#pragma warning( pop )
|
| 35 |
+
#endif
|
| 36 |
+
#endif
|
| 37 |
+
|
| 38 |
+
#include <CL/cl.h>
|
| 39 |
+
|
| 40 |
+
/* CL_NO_PROTOTYPES implies CL_NO_EXTENSION_PROTOTYPES: */
|
| 41 |
+
#if defined(CL_NO_PROTOTYPES) && !defined(CL_NO_EXTENSION_PROTOTYPES)
|
| 42 |
+
#define CL_NO_EXTENSION_PROTOTYPES
|
| 43 |
+
#endif
|
| 44 |
+
|
| 45 |
+
/* CL_NO_EXTENSION_PROTOTYPES implies
|
| 46 |
+
CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES and
|
| 47 |
+
CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES: */
|
| 48 |
+
#if defined(CL_NO_EXTENSION_PROTOTYPES) && \
|
| 49 |
+
!defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 50 |
+
#define CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES
|
| 51 |
+
#endif
|
| 52 |
+
#if defined(CL_NO_EXTENSION_PROTOTYPES) && \
|
| 53 |
+
!defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 54 |
+
#define CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES
|
| 55 |
+
#endif
|
| 56 |
+
|
| 57 |
+
#ifdef __cplusplus
|
| 58 |
+
extern "C" {
|
| 59 |
+
#endif
|
| 60 |
+
|
| 61 |
+
/***************************************************************
|
| 62 |
+
* cl_khr_d3d10_sharing
|
| 63 |
+
***************************************************************/
|
| 64 |
+
#define cl_khr_d3d10_sharing 1
|
| 65 |
+
#define CL_KHR_D3D10_SHARING_EXTENSION_NAME \
|
| 66 |
+
"cl_khr_d3d10_sharing"
|
| 67 |
+
|
| 68 |
+
typedef cl_uint cl_d3d10_device_source_khr;
|
| 69 |
+
typedef cl_uint cl_d3d10_device_set_khr;
|
| 70 |
+
|
| 71 |
+
/* Error codes */
|
| 72 |
+
#define CL_INVALID_D3D10_DEVICE_KHR -1002
|
| 73 |
+
#define CL_INVALID_D3D10_RESOURCE_KHR -1003
|
| 74 |
+
#define CL_D3D10_RESOURCE_ALREADY_ACQUIRED_KHR -1004
|
| 75 |
+
#define CL_D3D10_RESOURCE_NOT_ACQUIRED_KHR -1005
|
| 76 |
+
|
| 77 |
+
/* cl_d3d10_device_source_khr */
|
| 78 |
+
#define CL_D3D10_DEVICE_KHR 0x4010
|
| 79 |
+
#define CL_D3D10_DXGI_ADAPTER_KHR 0x4011
|
| 80 |
+
|
| 81 |
+
/* cl_d3d10_device_set_khr */
|
| 82 |
+
#define CL_PREFERRED_DEVICES_FOR_D3D10_KHR 0x4012
|
| 83 |
+
#define CL_ALL_DEVICES_FOR_D3D10_KHR 0x4013
|
| 84 |
+
|
| 85 |
+
/* cl_context_info */
|
| 86 |
+
#define CL_CONTEXT_D3D10_DEVICE_KHR 0x4014
|
| 87 |
+
#define CL_CONTEXT_D3D10_PREFER_SHARED_RESOURCES_KHR 0x402C
|
| 88 |
+
|
| 89 |
+
/* cl_mem_info */
|
| 90 |
+
#define CL_MEM_D3D10_RESOURCE_KHR 0x4015
|
| 91 |
+
|
| 92 |
+
/* cl_image_info */
|
| 93 |
+
#define CL_IMAGE_D3D10_SUBRESOURCE_KHR 0x4016
|
| 94 |
+
|
| 95 |
+
/* cl_command_type */
|
| 96 |
+
#define CL_COMMAND_ACQUIRE_D3D10_OBJECTS_KHR 0x4017
|
| 97 |
+
#define CL_COMMAND_RELEASE_D3D10_OBJECTS_KHR 0x4018
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
typedef cl_int (CL_API_CALL *
|
| 101 |
+
clGetDeviceIDsFromD3D10KHR_fn)(
|
| 102 |
+
cl_platform_id platform,
|
| 103 |
+
cl_d3d10_device_source_khr d3d_device_source,
|
| 104 |
+
void* d3d_object,
|
| 105 |
+
cl_d3d10_device_set_khr d3d_device_set,
|
| 106 |
+
cl_uint num_entries,
|
| 107 |
+
cl_device_id* devices,
|
| 108 |
+
cl_uint* num_devices) CL_API_SUFFIX__VERSION_1_0;
|
| 109 |
+
|
| 110 |
+
typedef cl_mem (CL_API_CALL *
|
| 111 |
+
clCreateFromD3D10BufferKHR_fn)(
|
| 112 |
+
cl_context context,
|
| 113 |
+
cl_mem_flags flags,
|
| 114 |
+
ID3D10Buffer* resource,
|
| 115 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 116 |
+
|
| 117 |
+
typedef cl_mem (CL_API_CALL *
|
| 118 |
+
clCreateFromD3D10Texture2DKHR_fn)(
|
| 119 |
+
cl_context context,
|
| 120 |
+
cl_mem_flags flags,
|
| 121 |
+
ID3D10Texture2D* resource,
|
| 122 |
+
UINT subresource,
|
| 123 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 124 |
+
|
| 125 |
+
typedef cl_mem (CL_API_CALL *
|
| 126 |
+
clCreateFromD3D10Texture3DKHR_fn)(
|
| 127 |
+
cl_context context,
|
| 128 |
+
cl_mem_flags flags,
|
| 129 |
+
ID3D10Texture3D* resource,
|
| 130 |
+
UINT subresource,
|
| 131 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 132 |
+
|
| 133 |
+
typedef cl_int (CL_API_CALL *
|
| 134 |
+
clEnqueueAcquireD3D10ObjectsKHR_fn)(
|
| 135 |
+
cl_command_queue command_queue,
|
| 136 |
+
cl_uint num_objects,
|
| 137 |
+
const cl_mem* mem_objects,
|
| 138 |
+
cl_uint num_events_in_wait_list,
|
| 139 |
+
const cl_event* event_wait_list,
|
| 140 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_0;
|
| 141 |
+
|
| 142 |
+
typedef cl_int (CL_API_CALL *
|
| 143 |
+
clEnqueueReleaseD3D10ObjectsKHR_fn)(
|
| 144 |
+
cl_command_queue command_queue,
|
| 145 |
+
cl_uint num_objects,
|
| 146 |
+
const cl_mem* mem_objects,
|
| 147 |
+
cl_uint num_events_in_wait_list,
|
| 148 |
+
const cl_event* event_wait_list,
|
| 149 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_0;
|
| 150 |
+
|
| 151 |
+
#if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 152 |
+
|
| 153 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 154 |
+
clGetDeviceIDsFromD3D10KHR(
|
| 155 |
+
cl_platform_id platform,
|
| 156 |
+
cl_d3d10_device_source_khr d3d_device_source,
|
| 157 |
+
void* d3d_object,
|
| 158 |
+
cl_d3d10_device_set_khr d3d_device_set,
|
| 159 |
+
cl_uint num_entries,
|
| 160 |
+
cl_device_id* devices,
|
| 161 |
+
cl_uint* num_devices) CL_API_SUFFIX__VERSION_1_0;
|
| 162 |
+
|
| 163 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 164 |
+
clCreateFromD3D10BufferKHR(
|
| 165 |
+
cl_context context,
|
| 166 |
+
cl_mem_flags flags,
|
| 167 |
+
ID3D10Buffer* resource,
|
| 168 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 169 |
+
|
| 170 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 171 |
+
clCreateFromD3D10Texture2DKHR(
|
| 172 |
+
cl_context context,
|
| 173 |
+
cl_mem_flags flags,
|
| 174 |
+
ID3D10Texture2D* resource,
|
| 175 |
+
UINT subresource,
|
| 176 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 177 |
+
|
| 178 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 179 |
+
clCreateFromD3D10Texture3DKHR(
|
| 180 |
+
cl_context context,
|
| 181 |
+
cl_mem_flags flags,
|
| 182 |
+
ID3D10Texture3D* resource,
|
| 183 |
+
UINT subresource,
|
| 184 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 185 |
+
|
| 186 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 187 |
+
clEnqueueAcquireD3D10ObjectsKHR(
|
| 188 |
+
cl_command_queue command_queue,
|
| 189 |
+
cl_uint num_objects,
|
| 190 |
+
const cl_mem* mem_objects,
|
| 191 |
+
cl_uint num_events_in_wait_list,
|
| 192 |
+
const cl_event* event_wait_list,
|
| 193 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_0;
|
| 194 |
+
|
| 195 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 196 |
+
clEnqueueReleaseD3D10ObjectsKHR(
|
| 197 |
+
cl_command_queue command_queue,
|
| 198 |
+
cl_uint num_objects,
|
| 199 |
+
const cl_mem* mem_objects,
|
| 200 |
+
cl_uint num_events_in_wait_list,
|
| 201 |
+
const cl_event* event_wait_list,
|
| 202 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_0;
|
| 203 |
+
|
| 204 |
+
#endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
| 205 |
+
|
| 206 |
+
/***************************************************************
|
| 207 |
+
* cl_intel_sharing_format_query_d3d10
|
| 208 |
+
***************************************************************/
|
| 209 |
+
#define cl_intel_sharing_format_query_d3d10 1
|
| 210 |
+
#define CL_INTEL_SHARING_FORMAT_QUERY_D3D10_EXTENSION_NAME \
|
| 211 |
+
"cl_intel_sharing_format_query_d3d10"
|
| 212 |
+
|
| 213 |
+
/* when cl_khr_d3d10_sharing is supported */
|
| 214 |
+
|
| 215 |
+
typedef cl_int (CL_API_CALL *
|
| 216 |
+
clGetSupportedD3D10TextureFormatsINTEL_fn)(
|
| 217 |
+
cl_context context,
|
| 218 |
+
cl_mem_flags flags,
|
| 219 |
+
cl_mem_object_type image_type,
|
| 220 |
+
cl_uint num_entries,
|
| 221 |
+
DXGI_FORMAT* d3d10_formats,
|
| 222 |
+
cl_uint* num_texture_formats) ;
|
| 223 |
+
|
| 224 |
+
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 225 |
+
|
| 226 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 227 |
+
clGetSupportedD3D10TextureFormatsINTEL(
|
| 228 |
+
cl_context context,
|
| 229 |
+
cl_mem_flags flags,
|
| 230 |
+
cl_mem_object_type image_type,
|
| 231 |
+
cl_uint num_entries,
|
| 232 |
+
DXGI_FORMAT* d3d10_formats,
|
| 233 |
+
cl_uint* num_texture_formats) ;
|
| 234 |
+
|
| 235 |
+
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
| 236 |
+
|
| 237 |
+
#ifdef __cplusplus
|
| 238 |
+
}
|
| 239 |
+
#endif
|
| 240 |
+
|
| 241 |
+
#endif /* OPENCL_CL_D3D10_H_ */
|
cuda_toolkit/include/CL/cl_d3d10_ext.h
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**********************************************************************************
|
| 2 |
+
* Copyright (c) 2008-2009 The Khronos Group Inc.
|
| 3 |
+
*
|
| 4 |
+
* Permission is hereby granted, free of charge, to any person obtaining a
|
| 5 |
+
* copy of this software and/or associated documentation files (the
|
| 6 |
+
* "Materials"), to deal in the Materials without restriction, including
|
| 7 |
+
* without limitation the rights to use, copy, modify, merge, publish,
|
| 8 |
+
* distribute, sublicense, and/or sell copies of the Materials, and to
|
| 9 |
+
* permit persons to whom the Materials are furnished to do so, subject to
|
| 10 |
+
* the following conditions:
|
| 11 |
+
*
|
| 12 |
+
* The above copyright notice and this permission notice shall be included
|
| 13 |
+
* in all copies or substantial portions of the Materials.
|
| 14 |
+
*
|
| 15 |
+
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 16 |
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 17 |
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
| 18 |
+
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
| 19 |
+
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
| 20 |
+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
| 21 |
+
* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
| 22 |
+
**********************************************************************************/
|
| 23 |
+
|
| 24 |
+
#ifndef __OPENCL_CL_D3D10_EXT_H
|
| 25 |
+
#define __OPENCL_CL_D3D10_EXT_H
|
| 26 |
+
|
| 27 |
+
#include <d3d10.h>
|
| 28 |
+
#include <CL/cl.h>
|
| 29 |
+
#include <CL/cl_platform.h>
|
| 30 |
+
|
| 31 |
+
#ifdef __cplusplus
|
| 32 |
+
extern "C" {
|
| 33 |
+
#endif
|
| 34 |
+
|
| 35 |
+
/******************************************************************************
|
| 36 |
+
* cl_nv_d3d10_sharing */
|
| 37 |
+
|
| 38 |
+
typedef cl_uint cl_d3d10_device_source_nv;
|
| 39 |
+
typedef cl_uint cl_d3d10_device_set_nv;
|
| 40 |
+
|
| 41 |
+
/******************************************************************************/
|
| 42 |
+
|
| 43 |
+
// Error Codes
|
| 44 |
+
#define CL_INVALID_D3D10_DEVICE_NV -1002
|
| 45 |
+
#define CL_INVALID_D3D10_RESOURCE_NV -1003
|
| 46 |
+
#define CL_D3D10_RESOURCE_ALREADY_ACQUIRED_NV -1004
|
| 47 |
+
#define CL_D3D10_RESOURCE_NOT_ACQUIRED_NV -1005
|
| 48 |
+
|
| 49 |
+
// cl_d3d10_device_source_nv
|
| 50 |
+
#define CL_D3D10_DEVICE_NV 0x4010
|
| 51 |
+
#define CL_D3D10_DXGI_ADAPTER_NV 0x4011
|
| 52 |
+
|
| 53 |
+
// cl_d3d10_device_set_nv
|
| 54 |
+
#define CL_PREFERRED_DEVICES_FOR_D3D10_NV 0x4012
|
| 55 |
+
#define CL_ALL_DEVICES_FOR_D3D10_NV 0x4013
|
| 56 |
+
|
| 57 |
+
// cl_context_info
|
| 58 |
+
#define CL_CONTEXT_D3D10_DEVICE_NV 0x4014
|
| 59 |
+
|
| 60 |
+
// cl_mem_info
|
| 61 |
+
#define CL_MEM_D3D10_RESOURCE_NV 0x4015
|
| 62 |
+
|
| 63 |
+
// cl_image_info
|
| 64 |
+
#define CL_IMAGE_D3D10_SUBRESOURCE_NV 0x4016
|
| 65 |
+
|
| 66 |
+
// cl_command_type
|
| 67 |
+
#define CL_COMMAND_ACQUIRE_D3D10_OBJECTS_NV 0x4017
|
| 68 |
+
#define CL_COMMAND_RELEASE_D3D10_OBJECTS_NV 0x4018
|
| 69 |
+
|
| 70 |
+
/******************************************************************************/
|
| 71 |
+
|
| 72 |
+
typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromD3D10NV_fn)(
|
| 73 |
+
cl_platform_id platform,
|
| 74 |
+
cl_d3d10_device_source_nv d3d_device_source,
|
| 75 |
+
void * d3d_object,
|
| 76 |
+
cl_d3d10_device_set_nv d3d_device_set,
|
| 77 |
+
cl_uint num_entries,
|
| 78 |
+
cl_device_id * devices,
|
| 79 |
+
cl_uint * num_devices) CL_API_SUFFIX__VERSION_1_0;
|
| 80 |
+
|
| 81 |
+
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D10BufferNV_fn)(
|
| 82 |
+
cl_context context,
|
| 83 |
+
cl_mem_flags flags,
|
| 84 |
+
ID3D10Buffer * resource,
|
| 85 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 86 |
+
|
| 87 |
+
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D10Texture2DNV_fn)(
|
| 88 |
+
cl_context context,
|
| 89 |
+
cl_mem_flags flags,
|
| 90 |
+
ID3D10Texture2D * resource,
|
| 91 |
+
UINT subresource,
|
| 92 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 93 |
+
|
| 94 |
+
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D10Texture3DNV_fn)(
|
| 95 |
+
cl_context context,
|
| 96 |
+
cl_mem_flags flags,
|
| 97 |
+
ID3D10Texture3D * resource,
|
| 98 |
+
UINT subresource,
|
| 99 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 100 |
+
|
| 101 |
+
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireD3D10ObjectsNV_fn)(
|
| 102 |
+
cl_command_queue command_queue,
|
| 103 |
+
cl_uint num_objects,
|
| 104 |
+
const cl_mem * mem_objects,
|
| 105 |
+
cl_uint num_events_in_wait_list,
|
| 106 |
+
const cl_event * event_wait_list,
|
| 107 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 108 |
+
|
| 109 |
+
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueReleaseD3D10ObjectsNV_fn)(
|
| 110 |
+
cl_command_queue command_queue,
|
| 111 |
+
cl_uint num_objects,
|
| 112 |
+
cl_mem * mem_objects,
|
| 113 |
+
cl_uint num_events_in_wait_list,
|
| 114 |
+
const cl_event * event_wait_list,
|
| 115 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 116 |
+
|
| 117 |
+
#ifdef __cplusplus
|
| 118 |
+
}
|
| 119 |
+
#endif
|
| 120 |
+
|
| 121 |
+
#endif // __OPENCL_CL_D3D10_H
|
| 122 |
+
|
cuda_toolkit/include/CL/cl_d3d11.h
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*******************************************************************************
|
| 2 |
+
* Copyright (c) 2008-2023 The Khronos Group Inc.
|
| 3 |
+
*
|
| 4 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
* you may not use this file except in compliance with the License.
|
| 6 |
+
* You may obtain a copy of the License at
|
| 7 |
+
*
|
| 8 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
*
|
| 10 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
* See the License for the specific language governing permissions and
|
| 14 |
+
* limitations under the License.
|
| 15 |
+
******************************************************************************/
|
| 16 |
+
|
| 17 |
+
#ifndef OPENCL_CL_D3D11_H_
|
| 18 |
+
#define OPENCL_CL_D3D11_H_
|
| 19 |
+
|
| 20 |
+
/*
|
| 21 |
+
** This header is generated from the Khronos OpenCL XML API Registry.
|
| 22 |
+
*/
|
| 23 |
+
|
| 24 |
+
#if defined(_MSC_VER)
|
| 25 |
+
#if _MSC_VER >=1500
|
| 26 |
+
#pragma warning( push )
|
| 27 |
+
#pragma warning( disable : 4201 )
|
| 28 |
+
#pragma warning( disable : 5105 )
|
| 29 |
+
#endif
|
| 30 |
+
#endif
|
| 31 |
+
#include <d3d11.h>
|
| 32 |
+
#if defined(_MSC_VER)
|
| 33 |
+
#if _MSC_VER >=1500
|
| 34 |
+
#pragma warning( pop )
|
| 35 |
+
#endif
|
| 36 |
+
#endif
|
| 37 |
+
|
| 38 |
+
#include <CL/cl.h>
|
| 39 |
+
|
| 40 |
+
/* CL_NO_PROTOTYPES implies CL_NO_EXTENSION_PROTOTYPES: */
|
| 41 |
+
#if defined(CL_NO_PROTOTYPES) && !defined(CL_NO_EXTENSION_PROTOTYPES)
|
| 42 |
+
#define CL_NO_EXTENSION_PROTOTYPES
|
| 43 |
+
#endif
|
| 44 |
+
|
| 45 |
+
/* CL_NO_EXTENSION_PROTOTYPES implies
|
| 46 |
+
CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES and
|
| 47 |
+
CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES: */
|
| 48 |
+
#if defined(CL_NO_EXTENSION_PROTOTYPES) && \
|
| 49 |
+
!defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 50 |
+
#define CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES
|
| 51 |
+
#endif
|
| 52 |
+
#if defined(CL_NO_EXTENSION_PROTOTYPES) && \
|
| 53 |
+
!defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 54 |
+
#define CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES
|
| 55 |
+
#endif
|
| 56 |
+
|
| 57 |
+
#ifdef __cplusplus
|
| 58 |
+
extern "C" {
|
| 59 |
+
#endif
|
| 60 |
+
|
| 61 |
+
/***************************************************************
|
| 62 |
+
* cl_khr_d3d11_sharing
|
| 63 |
+
***************************************************************/
|
| 64 |
+
#define cl_khr_d3d11_sharing 1
|
| 65 |
+
#define CL_KHR_D3D11_SHARING_EXTENSION_NAME \
|
| 66 |
+
"cl_khr_d3d11_sharing"
|
| 67 |
+
|
| 68 |
+
typedef cl_uint cl_d3d11_device_source_khr;
|
| 69 |
+
typedef cl_uint cl_d3d11_device_set_khr;
|
| 70 |
+
|
| 71 |
+
/* Error codes */
|
| 72 |
+
#define CL_INVALID_D3D11_DEVICE_KHR -1006
|
| 73 |
+
#define CL_INVALID_D3D11_RESOURCE_KHR -1007
|
| 74 |
+
#define CL_D3D11_RESOURCE_ALREADY_ACQUIRED_KHR -1008
|
| 75 |
+
#define CL_D3D11_RESOURCE_NOT_ACQUIRED_KHR -1009
|
| 76 |
+
|
| 77 |
+
/* cl_d3d11_device_source_khr */
|
| 78 |
+
#define CL_D3D11_DEVICE_KHR 0x4019
|
| 79 |
+
#define CL_D3D11_DXGI_ADAPTER_KHR 0x401A
|
| 80 |
+
|
| 81 |
+
/* cl_d3d11_device_set_khr */
|
| 82 |
+
#define CL_PREFERRED_DEVICES_FOR_D3D11_KHR 0x401B
|
| 83 |
+
#define CL_ALL_DEVICES_FOR_D3D11_KHR 0x401C
|
| 84 |
+
|
| 85 |
+
/* cl_context_info */
|
| 86 |
+
#define CL_CONTEXT_D3D11_DEVICE_KHR 0x401D
|
| 87 |
+
#define CL_CONTEXT_D3D11_PREFER_SHARED_RESOURCES_KHR 0x402D
|
| 88 |
+
|
| 89 |
+
/* cl_mem_info */
|
| 90 |
+
#define CL_MEM_D3D11_RESOURCE_KHR 0x401E
|
| 91 |
+
|
| 92 |
+
/* cl_image_info */
|
| 93 |
+
#define CL_IMAGE_D3D11_SUBRESOURCE_KHR 0x401F
|
| 94 |
+
|
| 95 |
+
/* cl_command_type */
|
| 96 |
+
#define CL_COMMAND_ACQUIRE_D3D11_OBJECTS_KHR 0x4020
|
| 97 |
+
#define CL_COMMAND_RELEASE_D3D11_OBJECTS_KHR 0x4021
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
typedef cl_int (CL_API_CALL *
|
| 101 |
+
clGetDeviceIDsFromD3D11KHR_fn)(
|
| 102 |
+
cl_platform_id platform,
|
| 103 |
+
cl_d3d11_device_source_khr d3d_device_source,
|
| 104 |
+
void* d3d_object,
|
| 105 |
+
cl_d3d11_device_set_khr d3d_device_set,
|
| 106 |
+
cl_uint num_entries,
|
| 107 |
+
cl_device_id* devices,
|
| 108 |
+
cl_uint* num_devices) CL_API_SUFFIX__VERSION_1_2;
|
| 109 |
+
|
| 110 |
+
typedef cl_mem (CL_API_CALL *
|
| 111 |
+
clCreateFromD3D11BufferKHR_fn)(
|
| 112 |
+
cl_context context,
|
| 113 |
+
cl_mem_flags flags,
|
| 114 |
+
ID3D11Buffer* resource,
|
| 115 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 116 |
+
|
| 117 |
+
typedef cl_mem (CL_API_CALL *
|
| 118 |
+
clCreateFromD3D11Texture2DKHR_fn)(
|
| 119 |
+
cl_context context,
|
| 120 |
+
cl_mem_flags flags,
|
| 121 |
+
ID3D11Texture2D* resource,
|
| 122 |
+
UINT subresource,
|
| 123 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 124 |
+
|
| 125 |
+
typedef cl_mem (CL_API_CALL *
|
| 126 |
+
clCreateFromD3D11Texture3DKHR_fn)(
|
| 127 |
+
cl_context context,
|
| 128 |
+
cl_mem_flags flags,
|
| 129 |
+
ID3D11Texture3D* resource,
|
| 130 |
+
UINT subresource,
|
| 131 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 132 |
+
|
| 133 |
+
typedef cl_int (CL_API_CALL *
|
| 134 |
+
clEnqueueAcquireD3D11ObjectsKHR_fn)(
|
| 135 |
+
cl_command_queue command_queue,
|
| 136 |
+
cl_uint num_objects,
|
| 137 |
+
const cl_mem* mem_objects,
|
| 138 |
+
cl_uint num_events_in_wait_list,
|
| 139 |
+
const cl_event* event_wait_list,
|
| 140 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_2;
|
| 141 |
+
|
| 142 |
+
typedef cl_int (CL_API_CALL *
|
| 143 |
+
clEnqueueReleaseD3D11ObjectsKHR_fn)(
|
| 144 |
+
cl_command_queue command_queue,
|
| 145 |
+
cl_uint num_objects,
|
| 146 |
+
const cl_mem* mem_objects,
|
| 147 |
+
cl_uint num_events_in_wait_list,
|
| 148 |
+
const cl_event* event_wait_list,
|
| 149 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_2;
|
| 150 |
+
|
| 151 |
+
#if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 152 |
+
|
| 153 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 154 |
+
clGetDeviceIDsFromD3D11KHR(
|
| 155 |
+
cl_platform_id platform,
|
| 156 |
+
cl_d3d11_device_source_khr d3d_device_source,
|
| 157 |
+
void* d3d_object,
|
| 158 |
+
cl_d3d11_device_set_khr d3d_device_set,
|
| 159 |
+
cl_uint num_entries,
|
| 160 |
+
cl_device_id* devices,
|
| 161 |
+
cl_uint* num_devices) CL_API_SUFFIX__VERSION_1_2;
|
| 162 |
+
|
| 163 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 164 |
+
clCreateFromD3D11BufferKHR(
|
| 165 |
+
cl_context context,
|
| 166 |
+
cl_mem_flags flags,
|
| 167 |
+
ID3D11Buffer* resource,
|
| 168 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 169 |
+
|
| 170 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 171 |
+
clCreateFromD3D11Texture2DKHR(
|
| 172 |
+
cl_context context,
|
| 173 |
+
cl_mem_flags flags,
|
| 174 |
+
ID3D11Texture2D* resource,
|
| 175 |
+
UINT subresource,
|
| 176 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 177 |
+
|
| 178 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 179 |
+
clCreateFromD3D11Texture3DKHR(
|
| 180 |
+
cl_context context,
|
| 181 |
+
cl_mem_flags flags,
|
| 182 |
+
ID3D11Texture3D* resource,
|
| 183 |
+
UINT subresource,
|
| 184 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 185 |
+
|
| 186 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 187 |
+
clEnqueueAcquireD3D11ObjectsKHR(
|
| 188 |
+
cl_command_queue command_queue,
|
| 189 |
+
cl_uint num_objects,
|
| 190 |
+
const cl_mem* mem_objects,
|
| 191 |
+
cl_uint num_events_in_wait_list,
|
| 192 |
+
const cl_event* event_wait_list,
|
| 193 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_2;
|
| 194 |
+
|
| 195 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 196 |
+
clEnqueueReleaseD3D11ObjectsKHR(
|
| 197 |
+
cl_command_queue command_queue,
|
| 198 |
+
cl_uint num_objects,
|
| 199 |
+
const cl_mem* mem_objects,
|
| 200 |
+
cl_uint num_events_in_wait_list,
|
| 201 |
+
const cl_event* event_wait_list,
|
| 202 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_2;
|
| 203 |
+
|
| 204 |
+
#endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
| 205 |
+
|
| 206 |
+
/***************************************************************
|
| 207 |
+
* cl_intel_sharing_format_query_d3d11
|
| 208 |
+
***************************************************************/
|
| 209 |
+
#define cl_intel_sharing_format_query_d3d11 1
|
| 210 |
+
#define CL_INTEL_SHARING_FORMAT_QUERY_D3D11_EXTENSION_NAME \
|
| 211 |
+
"cl_intel_sharing_format_query_d3d11"
|
| 212 |
+
|
| 213 |
+
/* when cl_khr_d3d11_sharing is supported */
|
| 214 |
+
|
| 215 |
+
typedef cl_int (CL_API_CALL *
|
| 216 |
+
clGetSupportedD3D11TextureFormatsINTEL_fn)(
|
| 217 |
+
cl_context context,
|
| 218 |
+
cl_mem_flags flags,
|
| 219 |
+
cl_mem_object_type image_type,
|
| 220 |
+
cl_uint plane,
|
| 221 |
+
cl_uint num_entries,
|
| 222 |
+
DXGI_FORMAT* d3d11_formats,
|
| 223 |
+
cl_uint* num_texture_formats) ;
|
| 224 |
+
|
| 225 |
+
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 226 |
+
|
| 227 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 228 |
+
clGetSupportedD3D11TextureFormatsINTEL(
|
| 229 |
+
cl_context context,
|
| 230 |
+
cl_mem_flags flags,
|
| 231 |
+
cl_mem_object_type image_type,
|
| 232 |
+
cl_uint plane,
|
| 233 |
+
cl_uint num_entries,
|
| 234 |
+
DXGI_FORMAT* d3d11_formats,
|
| 235 |
+
cl_uint* num_texture_formats) ;
|
| 236 |
+
|
| 237 |
+
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
| 238 |
+
|
| 239 |
+
#ifdef __cplusplus
|
| 240 |
+
}
|
| 241 |
+
#endif
|
| 242 |
+
|
| 243 |
+
#endif /* OPENCL_CL_D3D11_H_ */
|
cuda_toolkit/include/CL/cl_d3d11_ext.h
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**********************************************************************************
|
| 2 |
+
* Copyright (c) 2008-2009 The Khronos Group Inc.
|
| 3 |
+
*
|
| 4 |
+
* Permission is hereby granted, free of charge, to any person obtaining a
|
| 5 |
+
* copy of this software and/or associated documentation files (the
|
| 6 |
+
* "Materials"), to deal in the Materials without restriction, including
|
| 7 |
+
* without limitation the rights to use, copy, modify, merge, publish,
|
| 8 |
+
* distribute, sublicense, and/or sell copies of the Materials, and to
|
| 9 |
+
* permit persons to whom the Materials are furnished to do so, subject to
|
| 10 |
+
* the following conditions:
|
| 11 |
+
*
|
| 12 |
+
* The above copyright notice and this permission notice shall be included
|
| 13 |
+
* in all copies or substantial portions of the Materials.
|
| 14 |
+
*
|
| 15 |
+
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 16 |
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 17 |
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
| 18 |
+
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
| 19 |
+
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
| 20 |
+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
| 21 |
+
* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
| 22 |
+
**********************************************************************************/
|
| 23 |
+
|
| 24 |
+
#ifndef __OPENCL_CL_D3D11_EXT_H
|
| 25 |
+
#define __OPENCL_CL_D3D11_EXT_H
|
| 26 |
+
|
| 27 |
+
#include <d3d11.h>
|
| 28 |
+
#include <CL/cl.h>
|
| 29 |
+
#include <CL/cl_platform.h>
|
| 30 |
+
|
| 31 |
+
#ifdef __cplusplus
|
| 32 |
+
extern "C" {
|
| 33 |
+
#endif
|
| 34 |
+
|
| 35 |
+
/******************************************************************************
|
| 36 |
+
* cl_nv_d3d11_sharing */
|
| 37 |
+
|
| 38 |
+
typedef cl_uint cl_d3d11_device_source_nv;
|
| 39 |
+
typedef cl_uint cl_d3d11_device_set_nv;
|
| 40 |
+
|
| 41 |
+
/******************************************************************************/
|
| 42 |
+
|
| 43 |
+
// Error Codes
|
| 44 |
+
#define CL_INVALID_D3D11_DEVICE_NV -1006
|
| 45 |
+
#define CL_INVALID_D3D11_RESOURCE_NV -1007
|
| 46 |
+
#define CL_D3D11_RESOURCE_ALREADY_ACQUIRED_NV -1008
|
| 47 |
+
#define CL_D3D11_RESOURCE_NOT_ACQUIRED_NV -1009
|
| 48 |
+
|
| 49 |
+
// cl_d3d11_device_source_nv
|
| 50 |
+
#define CL_D3D11_DEVICE_NV 0x4019
|
| 51 |
+
#define CL_D3D11_DXGI_ADAPTER_NV 0x401A
|
| 52 |
+
|
| 53 |
+
// cl_d3d11_device_set_nv
|
| 54 |
+
#define CL_PREFERRED_DEVICES_FOR_D3D11_NV 0x401B
|
| 55 |
+
#define CL_ALL_DEVICES_FOR_D3D11_NV 0x401C
|
| 56 |
+
|
| 57 |
+
// cl_context_info
|
| 58 |
+
#define CL_CONTEXT_D3D11_DEVICE_NV 0x401D
|
| 59 |
+
|
| 60 |
+
// cl_mem_info
|
| 61 |
+
#define CL_MEM_D3D11_RESOURCE_NV 0x401E
|
| 62 |
+
|
| 63 |
+
// cl_image_info
|
| 64 |
+
#define CL_IMAGE_D3D11_SUBRESOURCE_NV 0x401F
|
| 65 |
+
|
| 66 |
+
// cl_command_type
|
| 67 |
+
#define CL_COMMAND_ACQUIRE_D3D11_OBJECTS_NV 0x4020
|
| 68 |
+
#define CL_COMMAND_RELEASE_D3D11_OBJECTS_NV 0x4021
|
| 69 |
+
|
| 70 |
+
/******************************************************************************/
|
| 71 |
+
|
| 72 |
+
typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromD3D11NV_fn)(
|
| 73 |
+
cl_platform_id platform,
|
| 74 |
+
cl_d3d11_device_source_nv d3d_device_source,
|
| 75 |
+
void * d3d_object,
|
| 76 |
+
cl_d3d11_device_set_nv d3d_device_set,
|
| 77 |
+
cl_uint num_entries,
|
| 78 |
+
cl_device_id * devices,
|
| 79 |
+
cl_uint * num_devices) CL_API_SUFFIX__VERSION_1_0;
|
| 80 |
+
|
| 81 |
+
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D11BufferNV_fn)(
|
| 82 |
+
cl_context context,
|
| 83 |
+
cl_mem_flags flags,
|
| 84 |
+
ID3D11Buffer * resource,
|
| 85 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 86 |
+
|
| 87 |
+
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D11Texture2DNV_fn)(
|
| 88 |
+
cl_context context,
|
| 89 |
+
cl_mem_flags flags,
|
| 90 |
+
ID3D11Texture2D * resource,
|
| 91 |
+
UINT subresource,
|
| 92 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 93 |
+
|
| 94 |
+
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D11Texture3DNV_fn)(
|
| 95 |
+
cl_context context,
|
| 96 |
+
cl_mem_flags flags,
|
| 97 |
+
ID3D11Texture3D * resource,
|
| 98 |
+
UINT subresource,
|
| 99 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 100 |
+
|
| 101 |
+
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireD3D11ObjectsNV_fn)(
|
| 102 |
+
cl_command_queue command_queue,
|
| 103 |
+
cl_uint num_objects,
|
| 104 |
+
const cl_mem * mem_objects,
|
| 105 |
+
cl_uint num_events_in_wait_list,
|
| 106 |
+
const cl_event * event_wait_list,
|
| 107 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 108 |
+
|
| 109 |
+
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueReleaseD3D11ObjectsNV_fn)(
|
| 110 |
+
cl_command_queue command_queue,
|
| 111 |
+
cl_uint num_objects,
|
| 112 |
+
cl_mem * mem_objects,
|
| 113 |
+
cl_uint num_events_in_wait_list,
|
| 114 |
+
const cl_event * event_wait_list,
|
| 115 |
+
cl_event * event) CL_API_SUFFIX__VERSION_1_0;
|
| 116 |
+
|
| 117 |
+
#ifdef __cplusplus
|
| 118 |
+
}
|
| 119 |
+
#endif
|
| 120 |
+
|
| 121 |
+
#endif // __OPENCL_CL_D3D11_H
|
| 122 |
+
|
cuda_toolkit/include/CL/cl_d3d9_ext.h
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**********************************************************************************
|
| 2 |
+
* Copyright (c) 2008-2009 The Khronos Group Inc.
|
| 3 |
+
*
|
| 4 |
+
* Permission is hereby granted, free of charge, to any person obtaining a
|
| 5 |
+
* copy of this software and/or associated documentation files (the
|
| 6 |
+
* "Materials"), to deal in the Materials without restriction, including
|
| 7 |
+
* without limitation the rights to use, copy, modify, merge, publish,
|
| 8 |
+
* distribute, sublicense, and/or sell copies of the Materials, and to
|
| 9 |
+
* permit persons to whom the Materials are furnished to do so, subject to
|
| 10 |
+
* the following conditions:
|
| 11 |
+
*
|
| 12 |
+
* The above copyright notice and this permission notice shall be included
|
| 13 |
+
* in all copies or substantial portions of the Materials.
|
| 14 |
+
*
|
| 15 |
+
* THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 16 |
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 17 |
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
| 18 |
+
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
| 19 |
+
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
| 20 |
+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
| 21 |
+
* MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
| 22 |
+
**********************************************************************************/
|
| 23 |
+
|
| 24 |
+
#ifndef __OPENCL_CL_D3D9_EXT_H
|
| 25 |
+
#define __OPENCL_CL_D3D9_EXT_H
|
| 26 |
+
|
| 27 |
+
#include <d3d9.h>
|
| 28 |
+
#include <CL/cl.h>
|
| 29 |
+
#include <CL/cl_platform.h>
|
| 30 |
+
|
| 31 |
+
#ifdef __cplusplus
|
| 32 |
+
extern "C" {
|
| 33 |
+
#endif
|
| 34 |
+
|
| 35 |
+
/******************************************************************************
|
| 36 |
+
* cl_nv_d3d9_sharing */
|
| 37 |
+
|
| 38 |
+
typedef cl_uint cl_d3d9_device_source_nv;
|
| 39 |
+
typedef cl_uint cl_d3d9_device_set_nv;
|
| 40 |
+
|
| 41 |
+
/******************************************************************************/
|
| 42 |
+
|
| 43 |
+
// Error Codes
|
| 44 |
+
#define CL_INVALID_D3D9_DEVICE_NV -1010
|
| 45 |
+
#define CL_INVALID_D3D9_RESOURCE_NV -1011
|
| 46 |
+
#define CL_D3D9_RESOURCE_ALREADY_ACQUIRED_NV -1012
|
| 47 |
+
#define CL_D3D9_RESOURCE_NOT_ACQUIRED_NV -1013
|
| 48 |
+
|
| 49 |
+
// cl_d3d9_device_source_nv
|
| 50 |
+
#define CL_D3D9_DEVICE_NV 0x4022
|
| 51 |
+
#define CL_D3D9_ADAPTER_NAME_NV 0x4023
|
| 52 |
+
|
| 53 |
+
// cl_d3d9_device_set_nv
|
| 54 |
+
#define CL_PREFERRED_DEVICES_FOR_D3D9_NV 0x4024
|
| 55 |
+
#define CL_ALL_DEVICES_FOR_D3D9_NV 0x4025
|
| 56 |
+
|
| 57 |
+
// cl_context_info
|
| 58 |
+
#define CL_CONTEXT_D3D9_DEVICE_NV 0x4026
|
| 59 |
+
|
| 60 |
+
// cl_mem_info
|
| 61 |
+
#define CL_MEM_D3D9_RESOURCE_NV 0x4027
|
| 62 |
+
|
| 63 |
+
// cl_image_info
|
| 64 |
+
#define CL_IMAGE_D3D9_FACE_NV 0x4028
|
| 65 |
+
#define CL_IMAGE_D3D9_LEVEL_NV 0x4029
|
| 66 |
+
|
| 67 |
+
// cl_command_type
|
| 68 |
+
#define CL_COMMAND_ACQUIRE_D3D9_OBJECTS_NV 0x402A
|
| 69 |
+
#define CL_COMMAND_RELEASE_D3D9_OBJECTS_NV 0x402B
|
| 70 |
+
|
| 71 |
+
/******************************************************************************/
|
| 72 |
+
|
| 73 |
+
typedef CL_API_ENTRY cl_int (CL_API_CALL *clGetDeviceIDsFromD3D9NV_fn)(
|
| 74 |
+
cl_platform_id platform,
|
| 75 |
+
cl_d3d9_device_source_nv d3d_device_source,
|
| 76 |
+
void * d3d_object,
|
| 77 |
+
cl_d3d9_device_set_nv d3d_device_set,
|
| 78 |
+
cl_uint num_entries,
|
| 79 |
+
cl_device_id * devices,
|
| 80 |
+
cl_uint * num_devices) CL_API_SUFFIX__VERSION_1_0;
|
| 81 |
+
|
| 82 |
+
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D9VertexBufferNV_fn)(
|
| 83 |
+
cl_context context,
|
| 84 |
+
cl_mem_flags flags,
|
| 85 |
+
IDirect3DVertexBuffer9 * resource,
|
| 86 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 87 |
+
|
| 88 |
+
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D9IndexBufferNV_fn)(
|
| 89 |
+
cl_context context,
|
| 90 |
+
cl_mem_flags flags,
|
| 91 |
+
IDirect3DIndexBuffer9 * resource,
|
| 92 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 93 |
+
|
| 94 |
+
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D9SurfaceNV_fn)(
|
| 95 |
+
cl_context context,
|
| 96 |
+
cl_mem_flags flags,
|
| 97 |
+
IDirect3DSurface9 * resource,
|
| 98 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 99 |
+
|
| 100 |
+
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D9TextureNV_fn)(
|
| 101 |
+
cl_context context,
|
| 102 |
+
cl_mem_flags flags,
|
| 103 |
+
IDirect3DTexture9 *resource,
|
| 104 |
+
UINT miplevel,
|
| 105 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 106 |
+
|
| 107 |
+
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D9CubeTextureNV_fn)(
|
| 108 |
+
cl_context context,
|
| 109 |
+
cl_mem_flags flags,
|
| 110 |
+
IDirect3DCubeTexture9 * resource,
|
| 111 |
+
D3DCUBEMAP_FACES facetype,
|
| 112 |
+
UINT miplevel,
|
| 113 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 114 |
+
|
| 115 |
+
typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromD3D9VolumeTextureNV_fn)(
|
| 116 |
+
cl_context context,
|
| 117 |
+
cl_mem_flags flags,
|
| 118 |
+
IDirect3DVolumeTexture9 * resource,
|
| 119 |
+
UINT miplevel,
|
| 120 |
+
cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 121 |
+
|
| 122 |
+
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueAcquireD3D9ObjectsNV_fn)(
|
| 123 |
+
cl_command_queue command_queue,
|
| 124 |
+
cl_uint num_objects,
|
| 125 |
+
const cl_mem *mem_objects,
|
| 126 |
+
cl_uint num_events_in_wait_list,
|
| 127 |
+
const cl_event *event_wait_list,
|
| 128 |
+
cl_event *event) CL_API_SUFFIX__VERSION_1_0;
|
| 129 |
+
|
| 130 |
+
typedef CL_API_ENTRY cl_int (CL_API_CALL *clEnqueueReleaseD3D9ObjectsNV_fn)(
|
| 131 |
+
cl_command_queue command_queue,
|
| 132 |
+
cl_uint num_objects,
|
| 133 |
+
cl_mem *mem_objects,
|
| 134 |
+
cl_uint num_events_in_wait_list,
|
| 135 |
+
const cl_event *event_wait_list,
|
| 136 |
+
cl_event *event) CL_API_SUFFIX__VERSION_1_0;
|
| 137 |
+
|
| 138 |
+
#ifdef __cplusplus
|
| 139 |
+
}
|
| 140 |
+
#endif
|
| 141 |
+
|
| 142 |
+
#endif // __OPENCL_CL_D3D9_H
|
| 143 |
+
|
cuda_toolkit/include/CL/cl_dx9_media_sharing.h
ADDED
|
@@ -0,0 +1,350 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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ronos Group Inc.
|
| 3 |
+
*
|
| 4 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
* you may not use this file except in compliance with the License.
|
| 6 |
+
* You may obtain a copy of the License at
|
| 7 |
+
*
|
| 8 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
*
|
| 10 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
* See the License for the specific language governing permissions and
|
| 14 |
+
* limitations under the License.
|
| 15 |
+
******************************************************************************/
|
| 16 |
+
|
| 17 |
+
#ifndef OPENCL_CL_DX9_MEDIA_SHARING_H_
|
| 18 |
+
#define OPENCL_CL_DX9_MEDIA_SHARING_H_
|
| 19 |
+
|
| 20 |
+
/*
|
| 21 |
+
** This header is generated from the Khronos OpenCL XML API Registry.
|
| 22 |
+
*/
|
| 23 |
+
|
| 24 |
+
#if defined(_WIN32)
|
| 25 |
+
#if defined(_MSC_VER)
|
| 26 |
+
#if _MSC_VER >=1500
|
| 27 |
+
#pragma warning( push )
|
| 28 |
+
#pragma warning( disable : 4201 )
|
| 29 |
+
#pragma warning( disable : 5105 )
|
| 30 |
+
#endif
|
| 31 |
+
#endif
|
| 32 |
+
#include <d3d9.h>
|
| 33 |
+
#if defined(_MSC_VER)
|
| 34 |
+
#if _MSC_VER >=1500
|
| 35 |
+
#pragma warning( pop )
|
| 36 |
+
#endif
|
| 37 |
+
#endif
|
| 38 |
+
#endif
|
| 39 |
+
|
| 40 |
+
#include <CL/cl.h>
|
| 41 |
+
|
| 42 |
+
/* CL_NO_PROTOTYPES implies CL_NO_EXTENSION_PROTOTYPES: */
|
| 43 |
+
#if defined(CL_NO_PROTOTYPES) && !defined(CL_NO_EXTENSION_PROTOTYPES)
|
| 44 |
+
#define CL_NO_EXTENSION_PROTOTYPES
|
| 45 |
+
#endif
|
| 46 |
+
|
| 47 |
+
/* CL_NO_EXTENSION_PROTOTYPES implies
|
| 48 |
+
CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES and
|
| 49 |
+
CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES: */
|
| 50 |
+
#if defined(CL_NO_EXTENSION_PROTOTYPES) && \
|
| 51 |
+
!defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 52 |
+
#define CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES
|
| 53 |
+
#endif
|
| 54 |
+
#if defined(CL_NO_EXTENSION_PROTOTYPES) && \
|
| 55 |
+
!defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 56 |
+
#define CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES
|
| 57 |
+
#endif
|
| 58 |
+
|
| 59 |
+
#ifdef __cplusplus
|
| 60 |
+
extern "C" {
|
| 61 |
+
#endif
|
| 62 |
+
|
| 63 |
+
/***************************************************************
|
| 64 |
+
* cl_khr_dx9_media_sharing
|
| 65 |
+
***************************************************************/
|
| 66 |
+
#define cl_khr_dx9_media_sharing 1
|
| 67 |
+
#define CL_KHR_DX9_MEDIA_SHARING_EXTENSION_NAME \
|
| 68 |
+
"cl_khr_dx9_media_sharing"
|
| 69 |
+
|
| 70 |
+
typedef cl_uint cl_dx9_media_adapter_type_khr;
|
| 71 |
+
typedef cl_uint cl_dx9_media_adapter_set_khr;
|
| 72 |
+
|
| 73 |
+
#if defined(_WIN32)
|
| 74 |
+
typedef struct _cl_dx9_surface_info_khr {
|
| 75 |
+
IDirect3DSurface9* resource;
|
| 76 |
+
HANDLE shared_handle;
|
| 77 |
+
} cl_dx9_surface_info_khr;
|
| 78 |
+
|
| 79 |
+
#endif /* defined(_WIN32) */
|
| 80 |
+
|
| 81 |
+
/* Error codes */
|
| 82 |
+
#define CL_INVALID_DX9_MEDIA_ADAPTER_KHR -1010
|
| 83 |
+
#define CL_INVALID_DX9_MEDIA_SURFACE_KHR -1011
|
| 84 |
+
#define CL_DX9_MEDIA_SURFACE_ALREADY_ACQUIRED_KHR -1012
|
| 85 |
+
#define CL_DX9_MEDIA_SURFACE_NOT_ACQUIRED_KHR -1013
|
| 86 |
+
|
| 87 |
+
/* cl_media_adapter_type_khr */
|
| 88 |
+
#define CL_ADAPTER_D3D9_KHR 0x2020
|
| 89 |
+
#define CL_ADAPTER_D3D9EX_KHR 0x2021
|
| 90 |
+
#define CL_ADAPTER_DXVA_KHR 0x2022
|
| 91 |
+
|
| 92 |
+
/* cl_media_adapter_set_khr */
|
| 93 |
+
#define CL_PREFERRED_DEVICES_FOR_DX9_MEDIA_ADAPTER_KHR 0x2023
|
| 94 |
+
#define CL_ALL_DEVICES_FOR_DX9_MEDIA_ADAPTER_KHR 0x2024
|
| 95 |
+
|
| 96 |
+
/* cl_context_info */
|
| 97 |
+
#define CL_CONTEXT_ADAPTER_D3D9_KHR 0x2025
|
| 98 |
+
#define CL_CONTEXT_ADAPTER_D3D9EX_KHR 0x2026
|
| 99 |
+
#define CL_CONTEXT_ADAPTER_DXVA_KHR 0x2027
|
| 100 |
+
|
| 101 |
+
/* cl_mem_info */
|
| 102 |
+
#define CL_MEM_DX9_MEDIA_ADAPTER_TYPE_KHR 0x2028
|
| 103 |
+
#define CL_MEM_DX9_MEDIA_SURFACE_INFO_KHR 0x2029
|
| 104 |
+
|
| 105 |
+
/* cl_image_info */
|
| 106 |
+
#define CL_IMAGE_DX9_MEDIA_PLANE_KHR 0x202A
|
| 107 |
+
|
| 108 |
+
/* cl_command_type */
|
| 109 |
+
#define CL_COMMAND_ACQUIRE_DX9_MEDIA_SURFACES_KHR 0x202B
|
| 110 |
+
#define CL_COMMAND_RELEASE_DX9_MEDIA_SURFACES_KHR 0x202C
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
typedef cl_int (CL_API_CALL *
|
| 114 |
+
clGetDeviceIDsFromDX9MediaAdapterKHR_fn)(
|
| 115 |
+
cl_platform_id platform,
|
| 116 |
+
cl_uint num_media_adapters,
|
| 117 |
+
cl_dx9_media_adapter_type_khr* media_adapter_type,
|
| 118 |
+
void* media_adapters,
|
| 119 |
+
cl_dx9_media_adapter_set_khr media_adapter_set,
|
| 120 |
+
cl_uint num_entries,
|
| 121 |
+
cl_device_id* devices,
|
| 122 |
+
cl_uint* num_devices) CL_API_SUFFIX__VERSION_1_2;
|
| 123 |
+
|
| 124 |
+
typedef cl_mem (CL_API_CALL *
|
| 125 |
+
clCreateFromDX9MediaSurfaceKHR_fn)(
|
| 126 |
+
cl_context context,
|
| 127 |
+
cl_mem_flags flags,
|
| 128 |
+
cl_dx9_media_adapter_type_khr adapter_type,
|
| 129 |
+
void* surface_info,
|
| 130 |
+
cl_uint plane,
|
| 131 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 132 |
+
|
| 133 |
+
typedef cl_int (CL_API_CALL *
|
| 134 |
+
clEnqueueAcquireDX9MediaSurfacesKHR_fn)(
|
| 135 |
+
cl_command_queue command_queue,
|
| 136 |
+
cl_uint num_objects,
|
| 137 |
+
const cl_mem* mem_objects,
|
| 138 |
+
cl_uint num_events_in_wait_list,
|
| 139 |
+
const cl_event* event_wait_list,
|
| 140 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_2;
|
| 141 |
+
|
| 142 |
+
typedef cl_int (CL_API_CALL *
|
| 143 |
+
clEnqueueReleaseDX9MediaSurfacesKHR_fn)(
|
| 144 |
+
cl_command_queue command_queue,
|
| 145 |
+
cl_uint num_objects,
|
| 146 |
+
const cl_mem* mem_objects,
|
| 147 |
+
cl_uint num_events_in_wait_list,
|
| 148 |
+
const cl_event* event_wait_list,
|
| 149 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_2;
|
| 150 |
+
|
| 151 |
+
#if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 152 |
+
|
| 153 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 154 |
+
clGetDeviceIDsFromDX9MediaAdapterKHR(
|
| 155 |
+
cl_platform_id platform,
|
| 156 |
+
cl_uint num_media_adapters,
|
| 157 |
+
cl_dx9_media_adapter_type_khr* media_adapter_type,
|
| 158 |
+
void* media_adapters,
|
| 159 |
+
cl_dx9_media_adapter_set_khr media_adapter_set,
|
| 160 |
+
cl_uint num_entries,
|
| 161 |
+
cl_device_id* devices,
|
| 162 |
+
cl_uint* num_devices) CL_API_SUFFIX__VERSION_1_2;
|
| 163 |
+
|
| 164 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 165 |
+
clCreateFromDX9MediaSurfaceKHR(
|
| 166 |
+
cl_context context,
|
| 167 |
+
cl_mem_flags flags,
|
| 168 |
+
cl_dx9_media_adapter_type_khr adapter_type,
|
| 169 |
+
void* surface_info,
|
| 170 |
+
cl_uint plane,
|
| 171 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 172 |
+
|
| 173 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 174 |
+
clEnqueueAcquireDX9MediaSurfacesKHR(
|
| 175 |
+
cl_command_queue command_queue,
|
| 176 |
+
cl_uint num_objects,
|
| 177 |
+
const cl_mem* mem_objects,
|
| 178 |
+
cl_uint num_events_in_wait_list,
|
| 179 |
+
const cl_event* event_wait_list,
|
| 180 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_2;
|
| 181 |
+
|
| 182 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 183 |
+
clEnqueueReleaseDX9MediaSurfacesKHR(
|
| 184 |
+
cl_command_queue command_queue,
|
| 185 |
+
cl_uint num_objects,
|
| 186 |
+
const cl_mem* mem_objects,
|
| 187 |
+
cl_uint num_events_in_wait_list,
|
| 188 |
+
const cl_event* event_wait_list,
|
| 189 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_2;
|
| 190 |
+
|
| 191 |
+
#endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
| 192 |
+
|
| 193 |
+
/***************************************************************
|
| 194 |
+
* cl_intel_dx9_media_sharing
|
| 195 |
+
***************************************************************/
|
| 196 |
+
#define cl_intel_dx9_media_sharing 1
|
| 197 |
+
#define CL_INTEL_DX9_MEDIA_SHARING_EXTENSION_NAME \
|
| 198 |
+
"cl_intel_dx9_media_sharing"
|
| 199 |
+
|
| 200 |
+
typedef cl_uint cl_dx9_device_source_intel;
|
| 201 |
+
typedef cl_uint cl_dx9_device_set_intel;
|
| 202 |
+
|
| 203 |
+
/* Error codes */
|
| 204 |
+
#define CL_INVALID_DX9_DEVICE_INTEL -1010
|
| 205 |
+
#define CL_INVALID_DX9_RESOURCE_INTEL -1011
|
| 206 |
+
#define CL_DX9_RESOURCE_ALREADY_ACQUIRED_INTEL -1012
|
| 207 |
+
#define CL_DX9_RESOURCE_NOT_ACQUIRED_INTEL -1013
|
| 208 |
+
|
| 209 |
+
/* cl_dx9_device_source_intel */
|
| 210 |
+
#define CL_D3D9_DEVICE_INTEL 0x4022
|
| 211 |
+
#define CL_D3D9EX_DEVICE_INTEL 0x4070
|
| 212 |
+
#define CL_DXVA_DEVICE_INTEL 0x4071
|
| 213 |
+
|
| 214 |
+
/* cl_dx9_device_set_intel */
|
| 215 |
+
#define CL_PREFERRED_DEVICES_FOR_DX9_INTEL 0x4024
|
| 216 |
+
#define CL_ALL_DEVICES_FOR_DX9_INTEL 0x4025
|
| 217 |
+
|
| 218 |
+
/* cl_context_info */
|
| 219 |
+
#define CL_CONTEXT_D3D9_DEVICE_INTEL 0x4026
|
| 220 |
+
#define CL_CONTEXT_D3D9EX_DEVICE_INTEL 0x4072
|
| 221 |
+
#define CL_CONTEXT_DXVA_DEVICE_INTEL 0x4073
|
| 222 |
+
|
| 223 |
+
/* cl_mem_info */
|
| 224 |
+
#define CL_MEM_DX9_RESOURCE_INTEL 0x4027
|
| 225 |
+
#define CL_MEM_DX9_SHARED_HANDLE_INTEL 0x4074
|
| 226 |
+
|
| 227 |
+
/* cl_image_info */
|
| 228 |
+
#define CL_IMAGE_DX9_PLANE_INTEL 0x4075
|
| 229 |
+
|
| 230 |
+
/* cl_command_type */
|
| 231 |
+
#define CL_COMMAND_ACQUIRE_DX9_OBJECTS_INTEL 0x402A
|
| 232 |
+
#define CL_COMMAND_RELEASE_DX9_OBJECTS_INTEL 0x402B
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
typedef cl_int (CL_API_CALL *
|
| 236 |
+
clGetDeviceIDsFromDX9INTEL_fn)(
|
| 237 |
+
cl_platform_id platform,
|
| 238 |
+
cl_dx9_device_source_intel dx9_device_source,
|
| 239 |
+
void* dx9_object,
|
| 240 |
+
cl_dx9_device_set_intel dx9_device_set,
|
| 241 |
+
cl_uint num_entries,
|
| 242 |
+
cl_device_id* devices,
|
| 243 |
+
cl_uint* num_devices) CL_API_SUFFIX__VERSION_1_1;
|
| 244 |
+
|
| 245 |
+
typedef cl_mem (CL_API_CALL *
|
| 246 |
+
clCreateFromDX9MediaSurfaceINTEL_fn)(
|
| 247 |
+
cl_context context,
|
| 248 |
+
cl_mem_flags flags,
|
| 249 |
+
IDirect3DSurface9* resource,
|
| 250 |
+
HANDLE sharedHandle,
|
| 251 |
+
UINT plane,
|
| 252 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_1;
|
| 253 |
+
|
| 254 |
+
typedef cl_int (CL_API_CALL *
|
| 255 |
+
clEnqueueAcquireDX9ObjectsINTEL_fn)(
|
| 256 |
+
cl_command_queue command_queue,
|
| 257 |
+
cl_uint num_objects,
|
| 258 |
+
const cl_mem* mem_objects,
|
| 259 |
+
cl_uint num_events_in_wait_list,
|
| 260 |
+
const cl_event* event_wait_list,
|
| 261 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_1;
|
| 262 |
+
|
| 263 |
+
typedef cl_int (CL_API_CALL *
|
| 264 |
+
clEnqueueReleaseDX9ObjectsINTEL_fn)(
|
| 265 |
+
cl_command_queue command_queue,
|
| 266 |
+
cl_uint num_objects,
|
| 267 |
+
cl_mem* mem_objects,
|
| 268 |
+
cl_uint num_events_in_wait_list,
|
| 269 |
+
const cl_event* event_wait_list,
|
| 270 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_1;
|
| 271 |
+
|
| 272 |
+
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 273 |
+
|
| 274 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 275 |
+
clGetDeviceIDsFromDX9INTEL(
|
| 276 |
+
cl_platform_id platform,
|
| 277 |
+
cl_dx9_device_source_intel dx9_device_source,
|
| 278 |
+
void* dx9_object,
|
| 279 |
+
cl_dx9_device_set_intel dx9_device_set,
|
| 280 |
+
cl_uint num_entries,
|
| 281 |
+
cl_device_id* devices,
|
| 282 |
+
cl_uint* num_devices) CL_API_SUFFIX__VERSION_1_1;
|
| 283 |
+
|
| 284 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 285 |
+
clCreateFromDX9MediaSurfaceINTEL(
|
| 286 |
+
cl_context context,
|
| 287 |
+
cl_mem_flags flags,
|
| 288 |
+
IDirect3DSurface9* resource,
|
| 289 |
+
HANDLE sharedHandle,
|
| 290 |
+
UINT plane,
|
| 291 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_1;
|
| 292 |
+
|
| 293 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 294 |
+
clEnqueueAcquireDX9ObjectsINTEL(
|
| 295 |
+
cl_command_queue command_queue,
|
| 296 |
+
cl_uint num_objects,
|
| 297 |
+
const cl_mem* mem_objects,
|
| 298 |
+
cl_uint num_events_in_wait_list,
|
| 299 |
+
const cl_event* event_wait_list,
|
| 300 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_1;
|
| 301 |
+
|
| 302 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 303 |
+
clEnqueueReleaseDX9ObjectsINTEL(
|
| 304 |
+
cl_command_queue command_queue,
|
| 305 |
+
cl_uint num_objects,
|
| 306 |
+
cl_mem* mem_objects,
|
| 307 |
+
cl_uint num_events_in_wait_list,
|
| 308 |
+
const cl_event* event_wait_list,
|
| 309 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_1;
|
| 310 |
+
|
| 311 |
+
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
| 312 |
+
|
| 313 |
+
/***************************************************************
|
| 314 |
+
* cl_intel_sharing_format_query_dx9
|
| 315 |
+
***************************************************************/
|
| 316 |
+
#define cl_intel_sharing_format_query_dx9 1
|
| 317 |
+
#define CL_INTEL_SHARING_FORMAT_QUERY_DX9_EXTENSION_NAME \
|
| 318 |
+
"cl_intel_sharing_format_query_dx9"
|
| 319 |
+
|
| 320 |
+
/* when cl_khr_dx9_media_sharing or cl_intel_dx9_media_sharing is supported */
|
| 321 |
+
|
| 322 |
+
typedef cl_int (CL_API_CALL *
|
| 323 |
+
clGetSupportedDX9MediaSurfaceFormatsINTEL_fn)(
|
| 324 |
+
cl_context context,
|
| 325 |
+
cl_mem_flags flags,
|
| 326 |
+
cl_mem_object_type image_type,
|
| 327 |
+
cl_uint plane,
|
| 328 |
+
cl_uint num_entries,
|
| 329 |
+
D3DFORMAT* dx9_formats,
|
| 330 |
+
cl_uint* num_surface_formats) ;
|
| 331 |
+
|
| 332 |
+
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 333 |
+
|
| 334 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 335 |
+
clGetSupportedDX9MediaSurfaceFormatsINTEL(
|
| 336 |
+
cl_context context,
|
| 337 |
+
cl_mem_flags flags,
|
| 338 |
+
cl_mem_object_type image_type,
|
| 339 |
+
cl_uint plane,
|
| 340 |
+
cl_uint num_entries,
|
| 341 |
+
D3DFORMAT* dx9_formats,
|
| 342 |
+
cl_uint* num_surface_formats) ;
|
| 343 |
+
|
| 344 |
+
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EX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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*******************************************************************************
|
| 2 |
+
* Copyright (c) 2008-2023 The Khronos Group Inc.
|
| 3 |
+
*
|
| 4 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
* you may not use this file except in compliance with the License.
|
| 6 |
+
* You may obtain a copy of the License at
|
| 7 |
+
*
|
| 8 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
*
|
| 10 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
* See the License for the specific language governing permissions and
|
| 14 |
+
* limitations under the License.
|
| 15 |
+
******************************************************************************/
|
| 16 |
+
|
| 17 |
+
#ifndef OPENCL_CL_EGL_H_
|
| 18 |
+
#define OPENCL_CL_EGL_H_
|
| 19 |
+
|
| 20 |
+
/*
|
| 21 |
+
** This header is generated from the Khronos OpenCL XML API Registry.
|
| 22 |
+
*/
|
| 23 |
+
|
| 24 |
+
#include <CL/cl.h>
|
| 25 |
+
|
| 26 |
+
/* CL_NO_PROTOTYPES implies CL_NO_EXTENSION_PROTOTYPES: */
|
| 27 |
+
#if defined(CL_NO_PROTOTYPES) && !defined(CL_NO_EXTENSION_PROTOTYPES)
|
| 28 |
+
#define CL_NO_EXTENSION_PROTOTYPES
|
| 29 |
+
#endif
|
| 30 |
+
|
| 31 |
+
/* CL_NO_EXTENSION_PROTOTYPES implies
|
| 32 |
+
CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES and
|
| 33 |
+
CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES: */
|
| 34 |
+
#if defined(CL_NO_EXTENSION_PROTOTYPES) && \
|
| 35 |
+
!defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 36 |
+
#define CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES
|
| 37 |
+
#endif
|
| 38 |
+
#if defined(CL_NO_EXTENSION_PROTOTYPES) && \
|
| 39 |
+
!defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 40 |
+
#define CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES
|
| 41 |
+
#endif
|
| 42 |
+
|
| 43 |
+
#ifdef __cplusplus
|
| 44 |
+
extern "C" {
|
| 45 |
+
#endif
|
| 46 |
+
|
| 47 |
+
/***************************************************************
|
| 48 |
+
* cl_khr_egl_image
|
| 49 |
+
***************************************************************/
|
| 50 |
+
#define cl_khr_egl_image 1
|
| 51 |
+
#define CL_KHR_EGL_IMAGE_EXTENSION_NAME \
|
| 52 |
+
"cl_khr_egl_image"
|
| 53 |
+
|
| 54 |
+
/* Command type for events created with clEnqueueAcquireEGLObjectsKHR */
|
| 55 |
+
#define CL_COMMAND_EGL_FENCE_SYNC_OBJECT_KHR 0x202F
|
| 56 |
+
#define CL_COMMAND_ACQUIRE_EGL_OBJECTS_KHR 0x202D
|
| 57 |
+
#define CL_COMMAND_RELEASE_EGL_OBJECTS_KHR 0x202E
|
| 58 |
+
|
| 59 |
+
/* Error type for clCreateFromEGLImageKHR */
|
| 60 |
+
#define CL_INVALID_EGL_OBJECT_KHR -1093
|
| 61 |
+
#define CL_EGL_RESOURCE_NOT_ACQUIRED_KHR -1092
|
| 62 |
+
|
| 63 |
+
/* CLeglImageKHR is an opaque handle to an EGLImage */
|
| 64 |
+
typedef void* CLeglImageKHR;
|
| 65 |
+
|
| 66 |
+
/* CLeglDisplayKHR is an opaque handle to an EGLDisplay */
|
| 67 |
+
typedef void* CLeglDisplayKHR;
|
| 68 |
+
|
| 69 |
+
/* properties passed to clCreateFromEGLImageKHR */
|
| 70 |
+
typedef intptr_t cl_egl_image_properties_khr;
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
typedef cl_mem (CL_API_CALL *
|
| 74 |
+
clCreateFromEGLImageKHR_fn)(
|
| 75 |
+
cl_context context,
|
| 76 |
+
CLeglDisplayKHR egldisplay,
|
| 77 |
+
CLeglImageKHR eglimage,
|
| 78 |
+
cl_mem_flags flags,
|
| 79 |
+
const cl_egl_image_properties_khr* properties,
|
| 80 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 81 |
+
|
| 82 |
+
typedef cl_int (CL_API_CALL *
|
| 83 |
+
clEnqueueAcquireEGLObjectsKHR_fn)(
|
| 84 |
+
cl_command_queue command_queue,
|
| 85 |
+
cl_uint num_objects,
|
| 86 |
+
const cl_mem* mem_objects,
|
| 87 |
+
cl_uint num_events_in_wait_list,
|
| 88 |
+
const cl_event* event_wait_list,
|
| 89 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_0;
|
| 90 |
+
|
| 91 |
+
typedef cl_int (CL_API_CALL *
|
| 92 |
+
clEnqueueReleaseEGLObjectsKHR_fn)(
|
| 93 |
+
cl_command_queue command_queue,
|
| 94 |
+
cl_uint num_objects,
|
| 95 |
+
const cl_mem* mem_objects,
|
| 96 |
+
cl_uint num_events_in_wait_list,
|
| 97 |
+
const cl_event* event_wait_list,
|
| 98 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_0;
|
| 99 |
+
|
| 100 |
+
#if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 101 |
+
|
| 102 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 103 |
+
clCreateFromEGLImageKHR(
|
| 104 |
+
cl_context context,
|
| 105 |
+
CLeglDisplayKHR egldisplay,
|
| 106 |
+
CLeglImageKHR eglimage,
|
| 107 |
+
cl_mem_flags flags,
|
| 108 |
+
const cl_egl_image_properties_khr* properties,
|
| 109 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 110 |
+
|
| 111 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 112 |
+
clEnqueueAcquireEGLObjectsKHR(
|
| 113 |
+
cl_command_queue command_queue,
|
| 114 |
+
cl_uint num_objects,
|
| 115 |
+
const cl_mem* mem_objects,
|
| 116 |
+
cl_uint num_events_in_wait_list,
|
| 117 |
+
const cl_event* event_wait_list,
|
| 118 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_0;
|
| 119 |
+
|
| 120 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 121 |
+
clEnqueueReleaseEGLObjectsKHR(
|
| 122 |
+
cl_command_queue command_queue,
|
| 123 |
+
cl_uint num_objects,
|
| 124 |
+
const cl_mem* mem_objects,
|
| 125 |
+
cl_uint num_events_in_wait_list,
|
| 126 |
+
const cl_event* event_wait_list,
|
| 127 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_0;
|
| 128 |
+
|
| 129 |
+
#endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
| 130 |
+
|
| 131 |
+
/***************************************************************
|
| 132 |
+
* cl_khr_egl_event
|
| 133 |
+
***************************************************************/
|
| 134 |
+
#define cl_khr_egl_event 1
|
| 135 |
+
#define CL_KHR_EGL_EVENT_EXTENSION_NAME \
|
| 136 |
+
"cl_khr_egl_event"
|
| 137 |
+
|
| 138 |
+
/* CLeglDisplayKHR is an opaque handle to an EGLDisplay */
|
| 139 |
+
/* type CLeglDisplayKHR */
|
| 140 |
+
|
| 141 |
+
/* CLeglSyncKHR is an opaque handle to an EGLSync object */
|
| 142 |
+
typedef void* CLeglSyncKHR;
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
typedef cl_event (CL_API_CALL *
|
| 146 |
+
clCreateEventFromEGLSyncKHR_fn)(
|
| 147 |
+
cl_context context,
|
| 148 |
+
CLeglSyncKHR sync,
|
| 149 |
+
CLeglDisplayKHR display,
|
| 150 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 151 |
+
|
| 152 |
+
#if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 153 |
+
|
| 154 |
+
extern CL_API_ENTRY cl_event CL_API_CALL
|
| 155 |
+
clCreateEventFromEGLSyncKHR(
|
| 156 |
+
cl_context context,
|
| 157 |
+
CLeglSyncKHR sync,
|
| 158 |
+
CLeglDisplayKHR display,
|
| 159 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 160 |
+
|
| 161 |
+
#endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
| 162 |
+
|
| 163 |
+
#ifdef __cplusplus
|
| 164 |
+
}
|
| 165 |
+
#endif
|
| 166 |
+
|
| 167 |
+
#endif /* OPENCL_CL_EGL_H_ */
|
cuda_toolkit/include/CL/cl_ext.h
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cuda_toolkit/include/CL/cl_gl.h
ADDED
|
@@ -0,0 +1,372 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*******************************************************************************
|
| 2 |
+
* Copyright (c) 2008-2023 The Khronos Group Inc.
|
| 3 |
+
*
|
| 4 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
* you may not use this file except in compliance with the License.
|
| 6 |
+
* You may obtain a copy of the License at
|
| 7 |
+
*
|
| 8 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
*
|
| 10 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
* See the License for the specific language governing permissions and
|
| 14 |
+
* limitations under the License.
|
| 15 |
+
******************************************************************************/
|
| 16 |
+
|
| 17 |
+
#ifndef OPENCL_CL_GL_H_
|
| 18 |
+
#define OPENCL_CL_GL_H_
|
| 19 |
+
|
| 20 |
+
/*
|
| 21 |
+
** This header is generated from the Khronos OpenCL XML API Registry.
|
| 22 |
+
*/
|
| 23 |
+
|
| 24 |
+
#include <CL/cl.h>
|
| 25 |
+
|
| 26 |
+
/* CL_NO_PROTOTYPES implies CL_NO_EXTENSION_PROTOTYPES: */
|
| 27 |
+
#if defined(CL_NO_PROTOTYPES) && !defined(CL_NO_EXTENSION_PROTOTYPES)
|
| 28 |
+
#define CL_NO_EXTENSION_PROTOTYPES
|
| 29 |
+
#endif
|
| 30 |
+
|
| 31 |
+
/* CL_NO_EXTENSION_PROTOTYPES implies
|
| 32 |
+
CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES and
|
| 33 |
+
CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES: */
|
| 34 |
+
#if defined(CL_NO_EXTENSION_PROTOTYPES) && \
|
| 35 |
+
!defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 36 |
+
#define CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES
|
| 37 |
+
#endif
|
| 38 |
+
#if defined(CL_NO_EXTENSION_PROTOTYPES) && \
|
| 39 |
+
!defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 40 |
+
#define CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES
|
| 41 |
+
#endif
|
| 42 |
+
|
| 43 |
+
#ifdef __cplusplus
|
| 44 |
+
extern "C" {
|
| 45 |
+
#endif
|
| 46 |
+
|
| 47 |
+
/***************************************************************
|
| 48 |
+
* cl_khr_gl_sharing
|
| 49 |
+
***************************************************************/
|
| 50 |
+
#define cl_khr_gl_sharing 1
|
| 51 |
+
#define CL_KHR_GL_SHARING_EXTENSION_NAME \
|
| 52 |
+
"cl_khr_gl_sharing"
|
| 53 |
+
|
| 54 |
+
typedef cl_uint cl_gl_context_info;
|
| 55 |
+
|
| 56 |
+
/* Error codes */
|
| 57 |
+
#define CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR -1000
|
| 58 |
+
|
| 59 |
+
/* cl_gl_context_info */
|
| 60 |
+
#define CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR 0x2006
|
| 61 |
+
#define CL_DEVICES_FOR_GL_CONTEXT_KHR 0x2007
|
| 62 |
+
|
| 63 |
+
/* Additional cl_context_properties */
|
| 64 |
+
#define CL_GL_CONTEXT_KHR 0x2008
|
| 65 |
+
#define CL_EGL_DISPLAY_KHR 0x2009
|
| 66 |
+
#define CL_GLX_DISPLAY_KHR 0x200A
|
| 67 |
+
#define CL_WGL_HDC_KHR 0x200B
|
| 68 |
+
#define CL_CGL_SHAREGROUP_KHR 0x200C
|
| 69 |
+
|
| 70 |
+
typedef cl_uint cl_gl_object_type;
|
| 71 |
+
typedef cl_uint cl_gl_texture_info;
|
| 72 |
+
typedef cl_uint cl_gl_platform_info;
|
| 73 |
+
|
| 74 |
+
/* cl_gl_object_type */
|
| 75 |
+
#define CL_GL_OBJECT_BUFFER 0x2000
|
| 76 |
+
#define CL_GL_OBJECT_TEXTURE2D 0x2001
|
| 77 |
+
#define CL_GL_OBJECT_TEXTURE3D 0x2002
|
| 78 |
+
#define CL_GL_OBJECT_RENDERBUFFER 0x2003
|
| 79 |
+
|
| 80 |
+
#if defined(CL_VERSION_1_2)
|
| 81 |
+
/* cl_gl_object_type */
|
| 82 |
+
#define CL_GL_OBJECT_TEXTURE2D_ARRAY 0x200E
|
| 83 |
+
#define CL_GL_OBJECT_TEXTURE1D 0x200F
|
| 84 |
+
#define CL_GL_OBJECT_TEXTURE1D_ARRAY 0x2010
|
| 85 |
+
#define CL_GL_OBJECT_TEXTURE_BUFFER 0x2011
|
| 86 |
+
|
| 87 |
+
#endif /* defined(CL_VERSION_1_2) */
|
| 88 |
+
|
| 89 |
+
/* cl_gl_texture_info */
|
| 90 |
+
#define CL_GL_TEXTURE_TARGET 0x2004
|
| 91 |
+
#define CL_GL_MIPMAP_LEVEL 0x2005
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
typedef cl_int (CL_API_CALL *
|
| 95 |
+
clGetGLContextInfoKHR_fn)(
|
| 96 |
+
const cl_context_properties* properties,
|
| 97 |
+
cl_gl_context_info param_name,
|
| 98 |
+
size_t param_value_size,
|
| 99 |
+
void* param_value,
|
| 100 |
+
size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 101 |
+
|
| 102 |
+
typedef cl_mem (CL_API_CALL *
|
| 103 |
+
clCreateFromGLBuffer_fn)(
|
| 104 |
+
cl_context context,
|
| 105 |
+
cl_mem_flags flags,
|
| 106 |
+
cl_GLuint bufobj,
|
| 107 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 108 |
+
|
| 109 |
+
#if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 110 |
+
|
| 111 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 112 |
+
clGetGLContextInfoKHR(
|
| 113 |
+
const cl_context_properties* properties,
|
| 114 |
+
cl_gl_context_info param_name,
|
| 115 |
+
size_t param_value_size,
|
| 116 |
+
void* param_value,
|
| 117 |
+
size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 118 |
+
|
| 119 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 120 |
+
clCreateFromGLBuffer(
|
| 121 |
+
cl_context context,
|
| 122 |
+
cl_mem_flags flags,
|
| 123 |
+
cl_GLuint bufobj,
|
| 124 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 125 |
+
|
| 126 |
+
#endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
| 127 |
+
|
| 128 |
+
#if defined(CL_VERSION_1_2)
|
| 129 |
+
|
| 130 |
+
typedef cl_mem (CL_API_CALL *
|
| 131 |
+
clCreateFromGLTexture_fn)(
|
| 132 |
+
cl_context context,
|
| 133 |
+
cl_mem_flags flags,
|
| 134 |
+
cl_GLenum target,
|
| 135 |
+
cl_GLint miplevel,
|
| 136 |
+
cl_GLuint texture,
|
| 137 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 138 |
+
|
| 139 |
+
#if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 140 |
+
|
| 141 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 142 |
+
clCreateFromGLTexture(
|
| 143 |
+
cl_context context,
|
| 144 |
+
cl_mem_flags flags,
|
| 145 |
+
cl_GLenum target,
|
| 146 |
+
cl_GLint miplevel,
|
| 147 |
+
cl_GLuint texture,
|
| 148 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2;
|
| 149 |
+
|
| 150 |
+
#endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
| 151 |
+
|
| 152 |
+
#endif /* defined(CL_VERSION_1_2) */
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
typedef cl_mem (CL_API_CALL *
|
| 156 |
+
clCreateFromGLRenderbuffer_fn)(
|
| 157 |
+
cl_context context,
|
| 158 |
+
cl_mem_flags flags,
|
| 159 |
+
cl_GLuint renderbuffer,
|
| 160 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 161 |
+
|
| 162 |
+
typedef cl_int (CL_API_CALL *
|
| 163 |
+
clGetGLObjectInfo_fn)(
|
| 164 |
+
cl_mem memobj,
|
| 165 |
+
cl_gl_object_type* gl_object_type,
|
| 166 |
+
cl_GLuint* gl_object_name) CL_API_SUFFIX__VERSION_1_0;
|
| 167 |
+
|
| 168 |
+
typedef cl_int (CL_API_CALL *
|
| 169 |
+
clGetGLTextureInfo_fn)(
|
| 170 |
+
cl_mem memobj,
|
| 171 |
+
cl_gl_texture_info param_name,
|
| 172 |
+
size_t param_value_size,
|
| 173 |
+
void* param_value,
|
| 174 |
+
size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 175 |
+
|
| 176 |
+
typedef cl_int (CL_API_CALL *
|
| 177 |
+
clEnqueueAcquireGLObjects_fn)(
|
| 178 |
+
cl_command_queue command_queue,
|
| 179 |
+
cl_uint num_objects,
|
| 180 |
+
const cl_mem* mem_objects,
|
| 181 |
+
cl_uint num_events_in_wait_list,
|
| 182 |
+
const cl_event* event_wait_list,
|
| 183 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_0;
|
| 184 |
+
|
| 185 |
+
typedef cl_int (CL_API_CALL *
|
| 186 |
+
clEnqueueReleaseGLObjects_fn)(
|
| 187 |
+
cl_command_queue command_queue,
|
| 188 |
+
cl_uint num_objects,
|
| 189 |
+
const cl_mem* mem_objects,
|
| 190 |
+
cl_uint num_events_in_wait_list,
|
| 191 |
+
const cl_event* event_wait_list,
|
| 192 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_0;
|
| 193 |
+
|
| 194 |
+
#if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 195 |
+
|
| 196 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 197 |
+
clCreateFromGLRenderbuffer(
|
| 198 |
+
cl_context context,
|
| 199 |
+
cl_mem_flags flags,
|
| 200 |
+
cl_GLuint renderbuffer,
|
| 201 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 202 |
+
|
| 203 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 204 |
+
clGetGLObjectInfo(
|
| 205 |
+
cl_mem memobj,
|
| 206 |
+
cl_gl_object_type* gl_object_type,
|
| 207 |
+
cl_GLuint* gl_object_name) CL_API_SUFFIX__VERSION_1_0;
|
| 208 |
+
|
| 209 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 210 |
+
clGetGLTextureInfo(
|
| 211 |
+
cl_mem memobj,
|
| 212 |
+
cl_gl_texture_info param_name,
|
| 213 |
+
size_t param_value_size,
|
| 214 |
+
void* param_value,
|
| 215 |
+
size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_1_0;
|
| 216 |
+
|
| 217 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 218 |
+
clEnqueueAcquireGLObjects(
|
| 219 |
+
cl_command_queue command_queue,
|
| 220 |
+
cl_uint num_objects,
|
| 221 |
+
const cl_mem* mem_objects,
|
| 222 |
+
cl_uint num_events_in_wait_list,
|
| 223 |
+
const cl_event* event_wait_list,
|
| 224 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_0;
|
| 225 |
+
|
| 226 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 227 |
+
clEnqueueReleaseGLObjects(
|
| 228 |
+
cl_command_queue command_queue,
|
| 229 |
+
cl_uint num_objects,
|
| 230 |
+
const cl_mem* mem_objects,
|
| 231 |
+
cl_uint num_events_in_wait_list,
|
| 232 |
+
const cl_event* event_wait_list,
|
| 233 |
+
cl_event* event) CL_API_SUFFIX__VERSION_1_0;
|
| 234 |
+
|
| 235 |
+
#endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
| 236 |
+
|
| 237 |
+
/* OpenCL 1.0 APIs that were deprecated in OpenCL 1.2 */
|
| 238 |
+
|
| 239 |
+
typedef cl_mem (CL_API_CALL *
|
| 240 |
+
clCreateFromGLTexture2D_fn)(
|
| 241 |
+
cl_context context,
|
| 242 |
+
cl_mem_flags flags,
|
| 243 |
+
cl_GLenum target,
|
| 244 |
+
cl_GLint miplevel,
|
| 245 |
+
cl_GLuint texture,
|
| 246 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
| 247 |
+
|
| 248 |
+
typedef cl_mem (CL_API_CALL *
|
| 249 |
+
clCreateFromGLTexture3D_fn)(
|
| 250 |
+
cl_context context,
|
| 251 |
+
cl_mem_flags flags,
|
| 252 |
+
cl_GLenum target,
|
| 253 |
+
cl_GLint miplevel,
|
| 254 |
+
cl_GLuint texture,
|
| 255 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
| 256 |
+
|
| 257 |
+
#if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 258 |
+
|
| 259 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 260 |
+
clCreateFromGLTexture2D(
|
| 261 |
+
cl_context context,
|
| 262 |
+
cl_mem_flags flags,
|
| 263 |
+
cl_GLenum target,
|
| 264 |
+
cl_GLint miplevel,
|
| 265 |
+
cl_GLuint texture,
|
| 266 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
| 267 |
+
|
| 268 |
+
extern CL_API_ENTRY cl_mem CL_API_CALL
|
| 269 |
+
clCreateFromGLTexture3D(
|
| 270 |
+
cl_context context,
|
| 271 |
+
cl_mem_flags flags,
|
| 272 |
+
cl_GLenum target,
|
| 273 |
+
cl_GLint miplevel,
|
| 274 |
+
cl_GLuint texture,
|
| 275 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
|
| 276 |
+
|
| 277 |
+
#endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
| 278 |
+
|
| 279 |
+
/***************************************************************
|
| 280 |
+
* cl_khr_gl_event
|
| 281 |
+
***************************************************************/
|
| 282 |
+
#define cl_khr_gl_event 1
|
| 283 |
+
#define CL_KHR_GL_EVENT_EXTENSION_NAME \
|
| 284 |
+
"cl_khr_gl_event"
|
| 285 |
+
|
| 286 |
+
typedef struct __GLsync * cl_GLsync;
|
| 287 |
+
|
| 288 |
+
/* cl_command_type */
|
| 289 |
+
#define CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR 0x200D
|
| 290 |
+
|
| 291 |
+
|
| 292 |
+
typedef cl_event (CL_API_CALL *
|
| 293 |
+
clCreateEventFromGLsyncKHR_fn)(
|
| 294 |
+
cl_context context,
|
| 295 |
+
cl_GLsync sync,
|
| 296 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_1;
|
| 297 |
+
|
| 298 |
+
#if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 299 |
+
|
| 300 |
+
extern CL_API_ENTRY cl_event CL_API_CALL
|
| 301 |
+
clCreateEventFromGLsyncKHR(
|
| 302 |
+
cl_context context,
|
| 303 |
+
cl_GLsync sync,
|
| 304 |
+
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_1;
|
| 305 |
+
|
| 306 |
+
#endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
| 307 |
+
|
| 308 |
+
/***************************************************************
|
| 309 |
+
* cl_khr_gl_depth_images
|
| 310 |
+
***************************************************************/
|
| 311 |
+
#define cl_khr_gl_depth_images 1
|
| 312 |
+
#define CL_KHR_GL_DEPTH_IMAGES_EXTENSION_NAME \
|
| 313 |
+
"cl_khr_gl_depth_images"
|
| 314 |
+
|
| 315 |
+
#if !defined(CL_VERSION_1_2)
|
| 316 |
+
/* cl_channel_order - defined in CL.h for OpenCL 1.2 and newer */
|
| 317 |
+
#define CL_DEPTH_STENCIL 0x10BE
|
| 318 |
+
|
| 319 |
+
#endif /* !defined(CL_VERSION_1_2) */
|
| 320 |
+
|
| 321 |
+
#if !defined(CL_VERSION_1_2)
|
| 322 |
+
/* cl_channel_type - defined in CL.h for OpenCL 1.2 and newer */
|
| 323 |
+
#define CL_UNORM_INT24 0x10DF
|
| 324 |
+
|
| 325 |
+
#endif /* !defined(CL_VERSION_1_2) */
|
| 326 |
+
|
| 327 |
+
/***************************************************************
|
| 328 |
+
* cl_khr_gl_msaa_sharing
|
| 329 |
+
***************************************************************/
|
| 330 |
+
#define cl_khr_gl_msaa_sharing 1
|
| 331 |
+
#define CL_KHR_GL_MSAA_SHARING_EXTENSION_NAME \
|
| 332 |
+
"cl_khr_gl_msaa_sharing"
|
| 333 |
+
|
| 334 |
+
/* cl_gl_texture_info */
|
| 335 |
+
#define CL_GL_NUM_SAMPLES 0x2012
|
| 336 |
+
|
| 337 |
+
/***************************************************************
|
| 338 |
+
* cl_intel_sharing_format_query_gl
|
| 339 |
+
***************************************************************/
|
| 340 |
+
#define cl_intel_sharing_format_query_gl 1
|
| 341 |
+
#define CL_INTEL_SHARING_FORMAT_QUERY_GL_EXTENSION_NAME \
|
| 342 |
+
"cl_intel_sharing_format_query_gl"
|
| 343 |
+
|
| 344 |
+
/* when cl_khr_gl_sharing is supported */
|
| 345 |
+
|
| 346 |
+
typedef cl_int (CL_API_CALL *
|
| 347 |
+
clGetSupportedGLTextureFormatsINTEL_fn)(
|
| 348 |
+
cl_context context,
|
| 349 |
+
cl_mem_flags flags,
|
| 350 |
+
cl_mem_object_type image_type,
|
| 351 |
+
cl_uint num_entries,
|
| 352 |
+
cl_GLenum* gl_formats,
|
| 353 |
+
cl_uint* num_texture_formats) ;
|
| 354 |
+
|
| 355 |
+
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES)
|
| 356 |
+
|
| 357 |
+
extern CL_API_ENTRY cl_int CL_API_CALL
|
| 358 |
+
clGetSupportedGLTextureFormatsINTEL(
|
| 359 |
+
cl_context context,
|
| 360 |
+
cl_mem_flags flags,
|
| 361 |
+
cl_mem_object_type image_type,
|
| 362 |
+
cl_uint num_entries,
|
| 363 |
+
cl_GLenum* gl_formats,
|
| 364 |
+
cl_uint* num_texture_formats) ;
|
| 365 |
+
|
| 366 |
+
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */
|
| 367 |
+
|
| 368 |
+
#ifdef __cplusplus
|
| 369 |
+
}
|
| 370 |
+
#endif
|
| 371 |
+
|
| 372 |
+
#endif /* OPENCL_CL_GL_H_ */
|
cuda_toolkit/include/CL/cl_gl_ext.h
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*******************************************************************************
|
| 2 |
+
* Copyright (c) 2008-2021 The Khronos Group Inc.
|
| 3 |
+
*
|
| 4 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
* you may not use this file except in compliance with the License.
|
| 6 |
+
* You may obtain a copy of the License at
|
| 7 |
+
*
|
| 8 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
*
|
| 10 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
* See the License for the specific language governing permissions and
|
| 14 |
+
* limitations under the License.
|
| 15 |
+
******************************************************************************/
|
| 16 |
+
|
| 17 |
+
#include <CL/cl_gl.h>
|
| 18 |
+
#pragma message("The extensions in cl_gl_ext.h have been moved into cl_gl.h. Please include cl_gl.h directly.")
|
cuda_toolkit/include/CL/cl_platform.h
ADDED
|
@@ -0,0 +1,1478 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*******************************************************************************
|
| 2 |
+
* Copyright (c) 2008-2020 The Khronos Group Inc.
|
| 3 |
+
*
|
| 4 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
* you may not use this file except in compliance with the License.
|
| 6 |
+
* You may obtain a copy of the License at
|
| 7 |
+
*
|
| 8 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
*
|
| 10 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
* See the License for the specific language governing permissions and
|
| 14 |
+
* limitations under the License.
|
| 15 |
+
******************************************************************************/
|
| 16 |
+
|
| 17 |
+
#ifndef __CL_PLATFORM_H
|
| 18 |
+
#define __CL_PLATFORM_H
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
#ifndef __CL_VERSION_H
|
| 22 |
+
#define __CL_VERSION_H
|
| 23 |
+
|
| 24 |
+
/* Detect which version to target */
|
| 25 |
+
#if !defined(CL_TARGET_OPENCL_VERSION)
|
| 26 |
+
#pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
|
| 27 |
+
#define CL_TARGET_OPENCL_VERSION 300
|
| 28 |
+
#endif
|
| 29 |
+
#if CL_TARGET_OPENCL_VERSION != 100 && \
|
| 30 |
+
CL_TARGET_OPENCL_VERSION != 110 && \
|
| 31 |
+
CL_TARGET_OPENCL_VERSION != 120 && \
|
| 32 |
+
CL_TARGET_OPENCL_VERSION != 200 && \
|
| 33 |
+
CL_TARGET_OPENCL_VERSION != 210 && \
|
| 34 |
+
CL_TARGET_OPENCL_VERSION != 220 && \
|
| 35 |
+
CL_TARGET_OPENCL_VERSION != 300
|
| 36 |
+
#pragma message("cl_version: CL_TARGET_OPENCL_VERSION is not a valid value (100, 110, 120, 200, 210, 220, 300). Defaulting to 300 (OpenCL 3.0)")
|
| 37 |
+
#undef CL_TARGET_OPENCL_VERSION
|
| 38 |
+
#define CL_TARGET_OPENCL_VERSION 300
|
| 39 |
+
#endif
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
/* OpenCL Version */
|
| 43 |
+
#if CL_TARGET_OPENCL_VERSION >= 300 && !defined(CL_VERSION_3_0)
|
| 44 |
+
#define CL_VERSION_3_0 1
|
| 45 |
+
#endif
|
| 46 |
+
#if CL_TARGET_OPENCL_VERSION >= 220 && !defined(CL_VERSION_2_2)
|
| 47 |
+
#define CL_VERSION_2_2 1
|
| 48 |
+
#endif
|
| 49 |
+
#if CL_TARGET_OPENCL_VERSION >= 210 && !defined(CL_VERSION_2_1)
|
| 50 |
+
#define CL_VERSION_2_1 1
|
| 51 |
+
#endif
|
| 52 |
+
#if CL_TARGET_OPENCL_VERSION >= 200 && !defined(CL_VERSION_2_0)
|
| 53 |
+
#define CL_VERSION_2_0 1
|
| 54 |
+
#endif
|
| 55 |
+
#if CL_TARGET_OPENCL_VERSION >= 120 && !defined(CL_VERSION_1_2)
|
| 56 |
+
#define CL_VERSION_1_2 1
|
| 57 |
+
#endif
|
| 58 |
+
#if CL_TARGET_OPENCL_VERSION >= 110 && !defined(CL_VERSION_1_1)
|
| 59 |
+
#define CL_VERSION_1_1 1
|
| 60 |
+
#endif
|
| 61 |
+
#if CL_TARGET_OPENCL_VERSION >= 100 && !defined(CL_VERSION_1_0)
|
| 62 |
+
#define CL_VERSION_1_0 1
|
| 63 |
+
#endif
|
| 64 |
+
|
| 65 |
+
/* Allow deprecated APIs for older OpenCL versions. */
|
| 66 |
+
#if CL_TARGET_OPENCL_VERSION <= 220 && !defined(CL_USE_DEPRECATED_OPENCL_2_2_APIS)
|
| 67 |
+
#define CL_USE_DEPRECATED_OPENCL_2_2_APIS
|
| 68 |
+
#endif
|
| 69 |
+
#if CL_TARGET_OPENCL_VERSION <= 210 && !defined(CL_USE_DEPRECATED_OPENCL_2_1_APIS)
|
| 70 |
+
#define CL_USE_DEPRECATED_OPENCL_2_1_APIS
|
| 71 |
+
#endif
|
| 72 |
+
#if CL_TARGET_OPENCL_VERSION <= 200 && !defined(CL_USE_DEPRECATED_OPENCL_2_0_APIS)
|
| 73 |
+
#define CL_USE_DEPRECATED_OPENCL_2_0_APIS
|
| 74 |
+
#endif
|
| 75 |
+
#if CL_TARGET_OPENCL_VERSION <= 120 && !defined(CL_USE_DEPRECATED_OPENCL_1_2_APIS)
|
| 76 |
+
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
|
| 77 |
+
#endif
|
| 78 |
+
#if CL_TARGET_OPENCL_VERSION <= 110 && !defined(CL_USE_DEPRECATED_OPENCL_1_1_APIS)
|
| 79 |
+
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
|
| 80 |
+
#endif
|
| 81 |
+
#if CL_TARGET_OPENCL_VERSION <= 100 && !defined(CL_USE_DEPRECATED_OPENCL_1_0_APIS)
|
| 82 |
+
#define CL_USE_DEPRECATED_OPENCL_1_0_APIS
|
| 83 |
+
#endif
|
| 84 |
+
|
| 85 |
+
#endif /* __CL_VERSION_H */
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
#ifdef __cplusplus
|
| 89 |
+
extern "C" {
|
| 90 |
+
#endif
|
| 91 |
+
|
| 92 |
+
#if defined(_WIN32)
|
| 93 |
+
#if !defined(CL_API_ENTRY)
|
| 94 |
+
#define CL_API_ENTRY
|
| 95 |
+
#endif
|
| 96 |
+
#if !defined(CL_API_CALL)
|
| 97 |
+
#define CL_API_CALL __stdcall
|
| 98 |
+
#endif
|
| 99 |
+
#if !defined(CL_CALLBACK)
|
| 100 |
+
#define CL_CALLBACK __stdcall
|
| 101 |
+
#endif
|
| 102 |
+
#else
|
| 103 |
+
#if !defined(CL_API_ENTRY)
|
| 104 |
+
#define CL_API_ENTRY
|
| 105 |
+
#endif
|
| 106 |
+
#if !defined(CL_API_CALL)
|
| 107 |
+
#define CL_API_CALL
|
| 108 |
+
#endif
|
| 109 |
+
#if !defined(CL_CALLBACK)
|
| 110 |
+
#define CL_CALLBACK
|
| 111 |
+
#endif
|
| 112 |
+
#endif
|
| 113 |
+
|
| 114 |
+
/*
|
| 115 |
+
* Deprecation flags refer to the last version of the header in which the
|
| 116 |
+
* feature was not deprecated.
|
| 117 |
+
*
|
| 118 |
+
* E.g. VERSION_1_1_DEPRECATED means the feature is present in 1.1 without
|
| 119 |
+
* deprecation but is deprecated in versions later than 1.1.
|
| 120 |
+
*/
|
| 121 |
+
|
| 122 |
+
#ifndef CL_API_SUFFIX_USER
|
| 123 |
+
#define CL_API_SUFFIX_USER
|
| 124 |
+
#endif
|
| 125 |
+
|
| 126 |
+
#ifndef CL_API_PREFIX_USER
|
| 127 |
+
#define CL_API_PREFIX_USER
|
| 128 |
+
#endif
|
| 129 |
+
|
| 130 |
+
#define CL_API_SUFFIX_COMMON CL_API_SUFFIX_USER
|
| 131 |
+
#define CL_API_PREFIX_COMMON CL_API_PREFIX_USER
|
| 132 |
+
|
| 133 |
+
#define CL_API_SUFFIX__VERSION_1_0 CL_API_SUFFIX_COMMON
|
| 134 |
+
#define CL_API_SUFFIX__VERSION_1_1 CL_API_SUFFIX_COMMON
|
| 135 |
+
#define CL_API_SUFFIX__VERSION_1_2 CL_API_SUFFIX_COMMON
|
| 136 |
+
#define CL_API_SUFFIX__VERSION_2_0 CL_API_SUFFIX_COMMON
|
| 137 |
+
#define CL_API_SUFFIX__VERSION_2_1 CL_API_SUFFIX_COMMON
|
| 138 |
+
#define CL_API_SUFFIX__VERSION_2_2 CL_API_SUFFIX_COMMON
|
| 139 |
+
#define CL_API_SUFFIX__VERSION_3_0 CL_API_SUFFIX_COMMON
|
| 140 |
+
#define CL_API_SUFFIX__EXPERIMENTAL CL_API_SUFFIX_COMMON
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
#ifdef __GNUC__
|
| 144 |
+
#define CL_API_SUFFIX_DEPRECATED __attribute__((deprecated))
|
| 145 |
+
#define CL_API_PREFIX_DEPRECATED
|
| 146 |
+
#elif defined(_WIN32)
|
| 147 |
+
#define CL_API_SUFFIX_DEPRECATED
|
| 148 |
+
#define CL_API_PREFIX_DEPRECATED __declspec(deprecated)
|
| 149 |
+
#else
|
| 150 |
+
#define CL_API_SUFFIX_DEPRECATED
|
| 151 |
+
#define CL_API_PREFIX_DEPRECATED
|
| 152 |
+
#endif
|
| 153 |
+
|
| 154 |
+
#ifdef CL_USE_DEPRECATED_OPENCL_1_0_APIS
|
| 155 |
+
#define CL_API_SUFFIX__VERSION_1_0_DEPRECATED CL_API_SUFFIX_COMMON
|
| 156 |
+
#define CL_API_PREFIX__VERSION_1_0_DEPRECATED CL_API_PREFIX_COMMON
|
| 157 |
+
#else
|
| 158 |
+
#define CL_API_SUFFIX__VERSION_1_0_DEPRECATED CL_API_SUFFIX_COMMON CL_API_SUFFIX_DEPRECATED
|
| 159 |
+
#define CL_API_PREFIX__VERSION_1_0_DEPRECATED CL_API_PREFIX_COMMON CL_API_PREFIX_DEPRECATED
|
| 160 |
+
#endif
|
| 161 |
+
|
| 162 |
+
#ifdef CL_USE_DEPRECATED_OPENCL_1_1_APIS
|
| 163 |
+
#define CL_API_SUFFIX__VERSION_1_1_DEPRECATED CL_API_SUFFIX_COMMON
|
| 164 |
+
#define CL_API_PREFIX__VERSION_1_1_DEPRECATED CL_API_PREFIX_COMMON
|
| 165 |
+
#else
|
| 166 |
+
#define CL_API_SUFFIX__VERSION_1_1_DEPRECATED CL_API_SUFFIX_COMMON CL_API_SUFFIX_DEPRECATED
|
| 167 |
+
#define CL_API_PREFIX__VERSION_1_1_DEPRECATED CL_API_PREFIX_COMMON CL_API_PREFIX_DEPRECATED
|
| 168 |
+
#endif
|
| 169 |
+
|
| 170 |
+
#ifdef CL_USE_DEPRECATED_OPENCL_1_2_APIS
|
| 171 |
+
#define CL_API_SUFFIX__VERSION_1_2_DEPRECATED CL_API_SUFFIX_COMMON
|
| 172 |
+
#define CL_API_PREFIX__VERSION_1_2_DEPRECATED CL_API_PREFIX_COMMON
|
| 173 |
+
#else
|
| 174 |
+
#define CL_API_SUFFIX__VERSION_1_2_DEPRECATED CL_API_SUFFIX_COMMON CL_API_SUFFIX_DEPRECATED
|
| 175 |
+
#define CL_API_PREFIX__VERSION_1_2_DEPRECATED CL_API_PREFIX_COMMON CL_API_PREFIX_DEPRECATED
|
| 176 |
+
#endif
|
| 177 |
+
|
| 178 |
+
#ifdef CL_USE_DEPRECATED_OPENCL_2_0_APIS
|
| 179 |
+
#define CL_API_SUFFIX__VERSION_2_0_DEPRECATED CL_API_SUFFIX_COMMON
|
| 180 |
+
#define CL_API_PREFIX__VERSION_2_0_DEPRECATED CL_API_PREFIX_COMMON
|
| 181 |
+
#else
|
| 182 |
+
#define CL_API_SUFFIX__VERSION_2_0_DEPRECATED CL_API_SUFFIX_COMMON CL_API_SUFFIX_DEPRECATED
|
| 183 |
+
#define CL_API_PREFIX__VERSION_2_0_DEPRECATED CL_API_PREFIX_COMMON CL_API_PREFIX_DEPRECATED
|
| 184 |
+
#endif
|
| 185 |
+
|
| 186 |
+
#ifdef CL_USE_DEPRECATED_OPENCL_2_1_APIS
|
| 187 |
+
#define CL_API_SUFFIX__VERSION_2_1_DEPRECATED CL_API_SUFFIX_COMMON
|
| 188 |
+
#define CL_API_PREFIX__VERSION_2_1_DEPRECATED CL_API_PREFIX_COMMON
|
| 189 |
+
#else
|
| 190 |
+
#define CL_API_SUFFIX__VERSION_2_1_DEPRECATED CL_API_SUFFIX_COMMON CL_API_SUFFIX_DEPRECATED
|
| 191 |
+
#define CL_API_PREFIX__VERSION_2_1_DEPRECATED CL_API_PREFIX_COMMON CL_API_PREFIX_DEPRECATED
|
| 192 |
+
#endif
|
| 193 |
+
|
| 194 |
+
#ifdef CL_USE_DEPRECATED_OPENCL_2_2_APIS
|
| 195 |
+
#define CL_API_SUFFIX__VERSION_2_2_DEPRECATED CL_API_SUFFIX_COMMON
|
| 196 |
+
#define CL_API_PREFIX__VERSION_2_2_DEPRECATED CL_API_PREFIX_COMMON
|
| 197 |
+
#else
|
| 198 |
+
#define CL_API_SUFFIX__VERSION_2_2_DEPRECATED CL_API_SUFFIX_COMMON CL_API_SUFFIX_DEPRECATED
|
| 199 |
+
#define CL_API_PREFIX__VERSION_2_2_DEPRECATED CL_API_PREFIX_COMMON CL_API_PREFIX_DEPRECATED
|
| 200 |
+
#endif
|
| 201 |
+
|
| 202 |
+
#if (defined (_WIN32) && defined(_MSC_VER))
|
| 203 |
+
|
| 204 |
+
#if defined(__clang__)
|
| 205 |
+
#pragma clang diagnostic push
|
| 206 |
+
#pragma clang diagnostic ignored "-Wlanguage-extension-token"
|
| 207 |
+
#endif
|
| 208 |
+
|
| 209 |
+
/* intptr_t is used in cl.h and provided by stddef.h in Visual C++, but not in clang */
|
| 210 |
+
/* stdint.h was missing before Visual Studio 2010, include it for later versions and for clang */
|
| 211 |
+
#if defined(__clang__) || _MSC_VER >= 1600
|
| 212 |
+
#include <stdint.h>
|
| 213 |
+
#endif
|
| 214 |
+
|
| 215 |
+
/* scalar types */
|
| 216 |
+
typedef signed __int8 cl_char;
|
| 217 |
+
typedef unsigned __int8 cl_uchar;
|
| 218 |
+
typedef signed __int16 cl_short;
|
| 219 |
+
typedef unsigned __int16 cl_ushort;
|
| 220 |
+
typedef signed __int32 cl_int;
|
| 221 |
+
typedef unsigned __int32 cl_uint;
|
| 222 |
+
typedef signed __int64 cl_long;
|
| 223 |
+
typedef unsigned __int64 cl_ulong;
|
| 224 |
+
|
| 225 |
+
typedef unsigned __int16 cl_half;
|
| 226 |
+
typedef float cl_float;
|
| 227 |
+
typedef double cl_double;
|
| 228 |
+
|
| 229 |
+
#if defined(__clang__)
|
| 230 |
+
#pragma clang diagnostic pop
|
| 231 |
+
#endif
|
| 232 |
+
|
| 233 |
+
/* Macro names and corresponding values defined by OpenCL */
|
| 234 |
+
#define CL_CHAR_BIT 8
|
| 235 |
+
#define CL_SCHAR_MAX 127
|
| 236 |
+
#define CL_SCHAR_MIN (-127-1)
|
| 237 |
+
#define CL_CHAR_MAX CL_SCHAR_MAX
|
| 238 |
+
#define CL_CHAR_MIN CL_SCHAR_MIN
|
| 239 |
+
#define CL_UCHAR_MAX 255
|
| 240 |
+
#define CL_SHRT_MAX 32767
|
| 241 |
+
#define CL_SHRT_MIN (-32767-1)
|
| 242 |
+
#define CL_USHRT_MAX 65535
|
| 243 |
+
#define CL_INT_MAX 2147483647
|
| 244 |
+
#define CL_INT_MIN (-2147483647-1)
|
| 245 |
+
#define CL_UINT_MAX 0xffffffffU
|
| 246 |
+
#define CL_LONG_MAX ((cl_long) 0x7FFFFFFFFFFFFFFFLL)
|
| 247 |
+
#define CL_LONG_MIN ((cl_long) -0x7FFFFFFFFFFFFFFFLL - 1LL)
|
| 248 |
+
#define CL_ULONG_MAX ((cl_ulong) 0xFFFFFFFFFFFFFFFFULL)
|
| 249 |
+
|
| 250 |
+
#define CL_FLT_DIG 6
|
| 251 |
+
#define CL_FLT_MANT_DIG 24
|
| 252 |
+
#define CL_FLT_MAX_10_EXP +38
|
| 253 |
+
#define CL_FLT_MAX_EXP +128
|
| 254 |
+
#define CL_FLT_MIN_10_EXP -37
|
| 255 |
+
#define CL_FLT_MIN_EXP -125
|
| 256 |
+
#define CL_FLT_RADIX 2
|
| 257 |
+
#define CL_FLT_MAX 340282346638528859811704183484516925440.0f
|
| 258 |
+
#define CL_FLT_MIN 1.175494350822287507969e-38f
|
| 259 |
+
#define CL_FLT_EPSILON 1.1920928955078125e-7f
|
| 260 |
+
|
| 261 |
+
#define CL_HALF_DIG 3
|
| 262 |
+
#define CL_HALF_MANT_DIG 11
|
| 263 |
+
#define CL_HALF_MAX_10_EXP +4
|
| 264 |
+
#define CL_HALF_MAX_EXP +16
|
| 265 |
+
#define CL_HALF_MIN_10_EXP -4
|
| 266 |
+
#define CL_HALF_MIN_EXP -13
|
| 267 |
+
#define CL_HALF_RADIX 2
|
| 268 |
+
#define CL_HALF_MAX 65504.0f
|
| 269 |
+
#define CL_HALF_MIN 6.103515625e-05f
|
| 270 |
+
#define CL_HALF_EPSILON 9.765625e-04f
|
| 271 |
+
|
| 272 |
+
#define CL_DBL_DIG 15
|
| 273 |
+
#define CL_DBL_MANT_DIG 53
|
| 274 |
+
#define CL_DBL_MAX_10_EXP +308
|
| 275 |
+
#define CL_DBL_MAX_EXP +1024
|
| 276 |
+
#define CL_DBL_MIN_10_EXP -307
|
| 277 |
+
#define CL_DBL_MIN_EXP -1021
|
| 278 |
+
#define CL_DBL_RADIX 2
|
| 279 |
+
#define CL_DBL_MAX 1.7976931348623158e+308
|
| 280 |
+
#define CL_DBL_MIN 2.225073858507201383090e-308
|
| 281 |
+
#define CL_DBL_EPSILON 2.220446049250313080847e-16
|
| 282 |
+
|
| 283 |
+
#define CL_M_E 2.7182818284590452354
|
| 284 |
+
#define CL_M_LOG2E 1.4426950408889634074
|
| 285 |
+
#define CL_M_LOG10E 0.43429448190325182765
|
| 286 |
+
#define CL_M_LN2 0.69314718055994530942
|
| 287 |
+
#define CL_M_LN10 2.30258509299404568402
|
| 288 |
+
#define CL_M_PI 3.14159265358979323846
|
| 289 |
+
#define CL_M_PI_2 1.57079632679489661923
|
| 290 |
+
#define CL_M_PI_4 0.78539816339744830962
|
| 291 |
+
#define CL_M_1_PI 0.31830988618379067154
|
| 292 |
+
#define CL_M_2_PI 0.63661977236758134308
|
| 293 |
+
#define CL_M_2_SQRTPI 1.12837916709551257390
|
| 294 |
+
#define CL_M_SQRT2 1.41421356237309504880
|
| 295 |
+
#define CL_M_SQRT1_2 0.70710678118654752440
|
| 296 |
+
|
| 297 |
+
#define CL_M_E_F 2.718281828f
|
| 298 |
+
#define CL_M_LOG2E_F 1.442695041f
|
| 299 |
+
#define CL_M_LOG10E_F 0.434294482f
|
| 300 |
+
#define CL_M_LN2_F 0.693147181f
|
| 301 |
+
#define CL_M_LN10_F 2.302585093f
|
| 302 |
+
#define CL_M_PI_F 3.141592654f
|
| 303 |
+
#define CL_M_PI_2_F 1.570796327f
|
| 304 |
+
#define CL_M_PI_4_F 0.785398163f
|
| 305 |
+
#define CL_M_1_PI_F 0.318309886f
|
| 306 |
+
#define CL_M_2_PI_F 0.636619772f
|
| 307 |
+
#define CL_M_2_SQRTPI_F 1.128379167f
|
| 308 |
+
#define CL_M_SQRT2_F 1.414213562f
|
| 309 |
+
#define CL_M_SQRT1_2_F 0.707106781f
|
| 310 |
+
|
| 311 |
+
#define CL_NAN (CL_INFINITY - CL_INFINITY)
|
| 312 |
+
#define CL_HUGE_VALF ((cl_float) 1e50)
|
| 313 |
+
#define CL_HUGE_VAL ((cl_double) 1e500)
|
| 314 |
+
#define CL_MAXFLOAT CL_FLT_MAX
|
| 315 |
+
#define CL_INFINITY CL_HUGE_VALF
|
| 316 |
+
|
| 317 |
+
#else
|
| 318 |
+
|
| 319 |
+
#include <stdint.h>
|
| 320 |
+
|
| 321 |
+
/* scalar types */
|
| 322 |
+
typedef int8_t cl_char;
|
| 323 |
+
typedef uint8_t cl_uchar;
|
| 324 |
+
typedef int16_t cl_short;
|
| 325 |
+
typedef uint16_t cl_ushort;
|
| 326 |
+
typedef int32_t cl_int;
|
| 327 |
+
typedef uint32_t cl_uint;
|
| 328 |
+
typedef int64_t cl_long;
|
| 329 |
+
typedef uint64_t cl_ulong;
|
| 330 |
+
|
| 331 |
+
typedef uint16_t cl_half;
|
| 332 |
+
typedef float cl_float;
|
| 333 |
+
typedef double cl_double;
|
| 334 |
+
|
| 335 |
+
/* Macro names and corresponding values defined by OpenCL */
|
| 336 |
+
#define CL_CHAR_BIT 8
|
| 337 |
+
#define CL_SCHAR_MAX 127
|
| 338 |
+
#define CL_SCHAR_MIN (-127-1)
|
| 339 |
+
#define CL_CHAR_MAX CL_SCHAR_MAX
|
| 340 |
+
#define CL_CHAR_MIN CL_SCHAR_MIN
|
| 341 |
+
#define CL_UCHAR_MAX 255
|
| 342 |
+
#define CL_SHRT_MAX 32767
|
| 343 |
+
#define CL_SHRT_MIN (-32767-1)
|
| 344 |
+
#define CL_USHRT_MAX 65535
|
| 345 |
+
#define CL_INT_MAX 2147483647
|
| 346 |
+
#define CL_INT_MIN (-2147483647-1)
|
| 347 |
+
#define CL_UINT_MAX 0xffffffffU
|
| 348 |
+
#define CL_LONG_MAX ((cl_long) 0x7FFFFFFFFFFFFFFFLL)
|
| 349 |
+
#define CL_LONG_MIN ((cl_long) -0x7FFFFFFFFFFFFFFFLL - 1LL)
|
| 350 |
+
#define CL_ULONG_MAX ((cl_ulong) 0xFFFFFFFFFFFFFFFFULL)
|
| 351 |
+
|
| 352 |
+
#define CL_FLT_DIG 6
|
| 353 |
+
#define CL_FLT_MANT_DIG 24
|
| 354 |
+
#define CL_FLT_MAX_10_EXP +38
|
| 355 |
+
#define CL_FLT_MAX_EXP +128
|
| 356 |
+
#define CL_FLT_MIN_10_EXP -37
|
| 357 |
+
#define CL_FLT_MIN_EXP -125
|
| 358 |
+
#define CL_FLT_RADIX 2
|
| 359 |
+
#define CL_FLT_MAX 340282346638528859811704183484516925440.0f
|
| 360 |
+
#define CL_FLT_MIN 1.175494350822287507969e-38f
|
| 361 |
+
#define CL_FLT_EPSILON 1.1920928955078125e-7f
|
| 362 |
+
|
| 363 |
+
#define CL_HALF_DIG 3
|
| 364 |
+
#define CL_HALF_MANT_DIG 11
|
| 365 |
+
#define CL_HALF_MAX_10_EXP +4
|
| 366 |
+
#define CL_HALF_MAX_EXP +16
|
| 367 |
+
#define CL_HALF_MIN_10_EXP -4
|
| 368 |
+
#define CL_HALF_MIN_EXP -13
|
| 369 |
+
#define CL_HALF_RADIX 2
|
| 370 |
+
#define CL_HALF_MAX 65504.0f
|
| 371 |
+
#define CL_HALF_MIN 6.103515625e-05f
|
| 372 |
+
#define CL_HALF_EPSILON 9.765625e-04f
|
| 373 |
+
|
| 374 |
+
#define CL_DBL_DIG 15
|
| 375 |
+
#define CL_DBL_MANT_DIG 53
|
| 376 |
+
#define CL_DBL_MAX_10_EXP +308
|
| 377 |
+
#define CL_DBL_MAX_EXP +1024
|
| 378 |
+
#define CL_DBL_MIN_10_EXP -307
|
| 379 |
+
#define CL_DBL_MIN_EXP -1021
|
| 380 |
+
#define CL_DBL_RADIX 2
|
| 381 |
+
#define CL_DBL_MAX 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0
|
| 382 |
+
#define CL_DBL_MIN 2.225073858507201383090e-308
|
| 383 |
+
#define CL_DBL_EPSILON 2.220446049250313080847e-16
|
| 384 |
+
|
| 385 |
+
#define CL_M_E 2.7182818284590452354
|
| 386 |
+
#define CL_M_LOG2E 1.4426950408889634074
|
| 387 |
+
#define CL_M_LOG10E 0.43429448190325182765
|
| 388 |
+
#define CL_M_LN2 0.69314718055994530942
|
| 389 |
+
#define CL_M_LN10 2.30258509299404568402
|
| 390 |
+
#define CL_M_PI 3.14159265358979323846
|
| 391 |
+
#define CL_M_PI_2 1.57079632679489661923
|
| 392 |
+
#define CL_M_PI_4 0.78539816339744830962
|
| 393 |
+
#define CL_M_1_PI 0.31830988618379067154
|
| 394 |
+
#define CL_M_2_PI 0.63661977236758134308
|
| 395 |
+
#define CL_M_2_SQRTPI 1.12837916709551257390
|
| 396 |
+
#define CL_M_SQRT2 1.41421356237309504880
|
| 397 |
+
#define CL_M_SQRT1_2 0.70710678118654752440
|
| 398 |
+
|
| 399 |
+
#define CL_M_E_F 2.718281828f
|
| 400 |
+
#define CL_M_LOG2E_F 1.442695041f
|
| 401 |
+
#define CL_M_LOG10E_F 0.434294482f
|
| 402 |
+
#define CL_M_LN2_F 0.693147181f
|
| 403 |
+
#define CL_M_LN10_F 2.302585093f
|
| 404 |
+
#define CL_M_PI_F 3.141592654f
|
| 405 |
+
#define CL_M_PI_2_F 1.570796327f
|
| 406 |
+
#define CL_M_PI_4_F 0.785398163f
|
| 407 |
+
#define CL_M_1_PI_F 0.318309886f
|
| 408 |
+
#define CL_M_2_PI_F 0.636619772f
|
| 409 |
+
#define CL_M_2_SQRTPI_F 1.128379167f
|
| 410 |
+
#define CL_M_SQRT2_F 1.414213562f
|
| 411 |
+
#define CL_M_SQRT1_2_F 0.707106781f
|
| 412 |
+
|
| 413 |
+
#if defined( __GNUC__ )
|
| 414 |
+
#define CL_HUGE_VALF __builtin_huge_valf()
|
| 415 |
+
#define CL_HUGE_VAL __builtin_huge_val()
|
| 416 |
+
#define CL_NAN __builtin_nanf( "" )
|
| 417 |
+
#else
|
| 418 |
+
#define CL_HUGE_VALF ((cl_float) 1e50)
|
| 419 |
+
#define CL_HUGE_VAL ((cl_double) 1e500)
|
| 420 |
+
float nanf( const char * );
|
| 421 |
+
#define CL_NAN nanf( "" )
|
| 422 |
+
#endif
|
| 423 |
+
#define CL_MAXFLOAT CL_FLT_MAX
|
| 424 |
+
#define CL_INFINITY CL_HUGE_VALF
|
| 425 |
+
|
| 426 |
+
#endif
|
| 427 |
+
|
| 428 |
+
#include <stddef.h>
|
| 429 |
+
|
| 430 |
+
/* Mirror types to GL types. Mirror types allow us to avoid deciding which 87s to load based on whether we are using GL or GLES here. */
|
| 431 |
+
typedef unsigned int cl_GLuint;
|
| 432 |
+
typedef int cl_GLint;
|
| 433 |
+
typedef unsigned int cl_GLenum;
|
| 434 |
+
|
| 435 |
+
/*
|
| 436 |
+
* Vector types
|
| 437 |
+
*
|
| 438 |
+
* Note: OpenCL requires that all types be naturally aligned.
|
| 439 |
+
* This means that vector types must be naturally aligned.
|
| 440 |
+
* For example, a vector of four floats must be aligned to
|
| 441 |
+
* a 16 byte boundary (calculated as 4 * the natural 4-byte
|
| 442 |
+
* alignment of the float). The alignment qualifiers here
|
| 443 |
+
* will only function properly if your compiler supports them
|
| 444 |
+
* and if you don't actively work to defeat them. For example,
|
| 445 |
+
* in order for a cl_float4 to be 16 byte aligned in a struct,
|
| 446 |
+
* the start of the struct must itself be 16-byte aligned.
|
| 447 |
+
*
|
| 448 |
+
* Maintaining proper alignment is the user's responsibility.
|
| 449 |
+
*/
|
| 450 |
+
|
| 451 |
+
/* Define basic vector types */
|
| 452 |
+
#if defined( __VEC__ )
|
| 453 |
+
#if !defined(__clang__)
|
| 454 |
+
#include <altivec.h> /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */
|
| 455 |
+
#endif
|
| 456 |
+
typedef __vector unsigned char __cl_uchar16;
|
| 457 |
+
typedef __vector signed char __cl_char16;
|
| 458 |
+
typedef __vector unsigned short __cl_ushort8;
|
| 459 |
+
typedef __vector signed short __cl_short8;
|
| 460 |
+
typedef __vector unsigned int __cl_uint4;
|
| 461 |
+
typedef __vector signed int __cl_int4;
|
| 462 |
+
typedef __vector float __cl_float4;
|
| 463 |
+
#define __CL_UCHAR16__ 1
|
| 464 |
+
#define __CL_CHAR16__ 1
|
| 465 |
+
#define __CL_USHORT8__ 1
|
| 466 |
+
#define __CL_SHORT8__ 1
|
| 467 |
+
#define __CL_UINT4__ 1
|
| 468 |
+
#define __CL_INT4__ 1
|
| 469 |
+
#define __CL_FLOAT4__ 1
|
| 470 |
+
#endif
|
| 471 |
+
|
| 472 |
+
#if defined( __SSE__ )
|
| 473 |
+
#if defined( __MINGW64__ )
|
| 474 |
+
#include <intrin.h>
|
| 475 |
+
#else
|
| 476 |
+
#include <xmmintrin.h>
|
| 477 |
+
#endif
|
| 478 |
+
#if defined( __GNUC__ )
|
| 479 |
+
typedef float __cl_float4 __attribute__((vector_size(16)));
|
| 480 |
+
#else
|
| 481 |
+
typedef __m128 __cl_float4;
|
| 482 |
+
#endif
|
| 483 |
+
#define __CL_FLOAT4__ 1
|
| 484 |
+
#endif
|
| 485 |
+
|
| 486 |
+
#if defined( __SSE2__ )
|
| 487 |
+
#if defined( __MINGW64__ )
|
| 488 |
+
#include <intrin.h>
|
| 489 |
+
#else
|
| 490 |
+
#include <emmintrin.h>
|
| 491 |
+
#endif
|
| 492 |
+
#if defined( __GNUC__ )
|
| 493 |
+
typedef cl_uchar __cl_uchar16 __attribute__((vector_size(16)));
|
| 494 |
+
typedef cl_char __cl_char16 __attribute__((vector_size(16)));
|
| 495 |
+
typedef cl_ushort __cl_ushort8 __attribute__((vector_size(16)));
|
| 496 |
+
typedef cl_short __cl_short8 __attribute__((vector_size(16)));
|
| 497 |
+
typedef cl_uint __cl_uint4 __attribute__((vector_size(16)));
|
| 498 |
+
typedef cl_int __cl_int4 __attribute__((vector_size(16)));
|
| 499 |
+
typedef cl_ulong __cl_ulong2 __attribute__((vector_size(16)));
|
| 500 |
+
typedef cl_long __cl_long2 __attribute__((vector_size(16)));
|
| 501 |
+
typedef cl_double __cl_double2 __attribute__((vector_size(16)));
|
| 502 |
+
#else
|
| 503 |
+
typedef __m128i __cl_uchar16;
|
| 504 |
+
typedef __m128i __cl_char16;
|
| 505 |
+
typedef __m128i __cl_ushort8;
|
| 506 |
+
typedef __m128i __cl_short8;
|
| 507 |
+
typedef __m128i __cl_uint4;
|
| 508 |
+
typedef __m128i __cl_int4;
|
| 509 |
+
typedef __m128i __cl_ulong2;
|
| 510 |
+
typedef __m128i __cl_long2;
|
| 511 |
+
typedef __m128d __cl_double2;
|
| 512 |
+
#endif
|
| 513 |
+
#define __CL_UCHAR16__ 1
|
| 514 |
+
#define __CL_CHAR16__ 1
|
| 515 |
+
#define __CL_USHORT8__ 1
|
| 516 |
+
#define __CL_SHORT8__ 1
|
| 517 |
+
#define __CL_INT4__ 1
|
| 518 |
+
#define __CL_UINT4__ 1
|
| 519 |
+
#define __CL_ULONG2__ 1
|
| 520 |
+
#define __CL_LONG2__ 1
|
| 521 |
+
#define __CL_DOUBLE2__ 1
|
| 522 |
+
#endif
|
| 523 |
+
|
| 524 |
+
#if defined( __MMX__ )
|
| 525 |
+
#include <mmintrin.h>
|
| 526 |
+
#if defined( __GNUC__ )
|
| 527 |
+
typedef cl_uchar __cl_uchar8 __attribute__((vector_size(8)));
|
| 528 |
+
typedef cl_char __cl_char8 __attribute__((vector_size(8)));
|
| 529 |
+
typedef cl_ushort __cl_ushort4 __attribute__((vector_size(8)));
|
| 530 |
+
typedef cl_short __cl_short4 __attribute__((vector_size(8)));
|
| 531 |
+
typedef cl_uint __cl_uint2 __attribute__((vector_size(8)));
|
| 532 |
+
typedef cl_int __cl_int2 __attribute__((vector_size(8)));
|
| 533 |
+
typedef cl_ulong __cl_ulong1 __attribute__((vector_size(8)));
|
| 534 |
+
typedef cl_long __cl_long1 __attribute__((vector_size(8)));
|
| 535 |
+
typedef cl_float __cl_float2 __attribute__((vector_size(8)));
|
| 536 |
+
#else
|
| 537 |
+
typedef __m64 __cl_uchar8;
|
| 538 |
+
typedef __m64 __cl_char8;
|
| 539 |
+
typedef __m64 __cl_ushort4;
|
| 540 |
+
typedef __m64 __cl_short4;
|
| 541 |
+
typedef __m64 __cl_uint2;
|
| 542 |
+
typedef __m64 __cl_int2;
|
| 543 |
+
typedef __m64 __cl_ulong1;
|
| 544 |
+
typedef __m64 __cl_long1;
|
| 545 |
+
typedef __m64 __cl_float2;
|
| 546 |
+
#endif
|
| 547 |
+
#define __CL_UCHAR8__ 1
|
| 548 |
+
#define __CL_CHAR8__ 1
|
| 549 |
+
#define __CL_USHORT4__ 1
|
| 550 |
+
#define __CL_SHORT4__ 1
|
| 551 |
+
#define __CL_INT2__ 1
|
| 552 |
+
#define __CL_UINT2__ 1
|
| 553 |
+
#define __CL_ULONG1__ 1
|
| 554 |
+
#define __CL_LONG1__ 1
|
| 555 |
+
#define __CL_FLOAT2__ 1
|
| 556 |
+
#endif
|
| 557 |
+
|
| 558 |
+
#if defined( __AVX__ )
|
| 559 |
+
#if defined( __MINGW64__ )
|
| 560 |
+
#include <intrin.h>
|
| 561 |
+
#else
|
| 562 |
+
#include <immintrin.h>
|
| 563 |
+
#endif
|
| 564 |
+
#if defined( __GNUC__ )
|
| 565 |
+
typedef cl_float __cl_float8 __attribute__((vector_size(32)));
|
| 566 |
+
typedef cl_double __cl_double4 __attribute__((vector_size(32)));
|
| 567 |
+
#else
|
| 568 |
+
typedef __m256 __cl_float8;
|
| 569 |
+
typedef __m256d __cl_double4;
|
| 570 |
+
#endif
|
| 571 |
+
#define __CL_FLOAT8__ 1
|
| 572 |
+
#define __CL_DOUBLE4__ 1
|
| 573 |
+
#endif
|
| 574 |
+
|
| 575 |
+
/* Define capabilities for anonymous struct members. */
|
| 576 |
+
#if !defined(__cplusplus) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
| 577 |
+
#define __CL_HAS_ANON_STRUCT__ 1
|
| 578 |
+
#define __CL_ANON_STRUCT__
|
| 579 |
+
#elif defined(_WIN32) && defined(_MSC_VER) && !defined(__STDC__)
|
| 580 |
+
#define __CL_HAS_ANON_STRUCT__ 1
|
| 581 |
+
#define __CL_ANON_STRUCT__
|
| 582 |
+
#elif defined(__GNUC__) && ! defined(__STRICT_ANSI__)
|
| 583 |
+
#define __CL_HAS_ANON_STRUCT__ 1
|
| 584 |
+
#define __CL_ANON_STRUCT__ __extension__
|
| 585 |
+
#elif defined(__clang__)
|
| 586 |
+
#define __CL_HAS_ANON_STRUCT__ 1
|
| 587 |
+
#define __CL_ANON_STRUCT__ __extension__
|
| 588 |
+
#else
|
| 589 |
+
#define __CL_HAS_ANON_STRUCT__ 0
|
| 590 |
+
#define __CL_ANON_STRUCT__
|
| 591 |
+
#endif
|
| 592 |
+
|
| 593 |
+
#if defined(_WIN32) && defined(_MSC_VER) && __CL_HAS_ANON_STRUCT__
|
| 594 |
+
/* Disable warning C4201: nonstandard extension used : nameless struct/union */
|
| 595 |
+
#pragma warning( push )
|
| 596 |
+
#pragma warning( disable : 4201 )
|
| 597 |
+
#endif
|
| 598 |
+
|
| 599 |
+
/* Define alignment keys */
|
| 600 |
+
#if defined( __GNUC__ ) || defined(__INTEGRITY)
|
| 601 |
+
#define CL_ALIGNED(_x) __attribute__ ((aligned(_x)))
|
| 602 |
+
#elif defined( _WIN32) && (_MSC_VER)
|
| 603 |
+
/* Alignment keys neutered on windows because MSVC can't swallow function arguments with alignment requirements */
|
| 604 |
+
/* http://msdn.microsoft.com/en-us/library/373ak2y1%28VS.71%29.aspx */
|
| 605 |
+
/* #include <crtdefs.h> */
|
| 606 |
+
/* #define CL_ALIGNED(_x) _CRT_ALIGN(_x) */
|
| 607 |
+
#define CL_ALIGNED(_x)
|
| 608 |
+
#else
|
| 609 |
+
#warning Need to implement some method to align data here
|
| 610 |
+
#define CL_ALIGNED(_x)
|
| 611 |
+
#endif
|
| 612 |
+
|
| 613 |
+
/* Indicate whether .xyzw, .s0123 and .hi.lo are supported */
|
| 614 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 615 |
+
/* .xyzw and .s0123...{f|F} are supported */
|
| 616 |
+
#define CL_HAS_NAMED_VECTOR_FIELDS 1
|
| 617 |
+
/* .hi and .lo are supported */
|
| 618 |
+
#define CL_HAS_HI_LO_VECTOR_FIELDS 1
|
| 619 |
+
#endif
|
| 620 |
+
|
| 621 |
+
/* Define cl_vector types */
|
| 622 |
+
|
| 623 |
+
/* ---- cl_charn ---- */
|
| 624 |
+
typedef union
|
| 625 |
+
{
|
| 626 |
+
cl_char CL_ALIGNED(2) s[2];
|
| 627 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 628 |
+
__CL_ANON_STRUCT__ struct{ cl_char x, y; };
|
| 629 |
+
__CL_ANON_STRUCT__ struct{ cl_char s0, s1; };
|
| 630 |
+
__CL_ANON_STRUCT__ struct{ cl_char lo, hi; };
|
| 631 |
+
#endif
|
| 632 |
+
#if defined( __CL_CHAR2__)
|
| 633 |
+
__cl_char2 v2;
|
| 634 |
+
#endif
|
| 635 |
+
}cl_char2;
|
| 636 |
+
|
| 637 |
+
typedef union
|
| 638 |
+
{
|
| 639 |
+
cl_char CL_ALIGNED(4) s[4];
|
| 640 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 641 |
+
__CL_ANON_STRUCT__ struct{ cl_char x, y, z, w; };
|
| 642 |
+
__CL_ANON_STRUCT__ struct{ cl_char s0, s1, s2, s3; };
|
| 643 |
+
__CL_ANON_STRUCT__ struct{ cl_char2 lo, hi; };
|
| 644 |
+
#endif
|
| 645 |
+
#if defined( __CL_CHAR2__)
|
| 646 |
+
__cl_char2 v2[2];
|
| 647 |
+
#endif
|
| 648 |
+
#if defined( __CL_CHAR4__)
|
| 649 |
+
__cl_char4 v4;
|
| 650 |
+
#endif
|
| 651 |
+
}cl_char4;
|
| 652 |
+
|
| 653 |
+
/* cl_char3 is identical in size, alignment and behavior to cl_char4. See section 6.1.5. */
|
| 654 |
+
typedef cl_char4 cl_char3;
|
| 655 |
+
|
| 656 |
+
typedef union
|
| 657 |
+
{
|
| 658 |
+
cl_char CL_ALIGNED(8) s[8];
|
| 659 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 660 |
+
__CL_ANON_STRUCT__ struct{ cl_char x, y, z, w; };
|
| 661 |
+
__CL_ANON_STRUCT__ struct{ cl_char s0, s1, s2, s3, s4, s5, s6, s7; };
|
| 662 |
+
__CL_ANON_STRUCT__ struct{ cl_char4 lo, hi; };
|
| 663 |
+
#endif
|
| 664 |
+
#if defined( __CL_CHAR2__)
|
| 665 |
+
__cl_char2 v2[4];
|
| 666 |
+
#endif
|
| 667 |
+
#if defined( __CL_CHAR4__)
|
| 668 |
+
__cl_char4 v4[2];
|
| 669 |
+
#endif
|
| 670 |
+
#if defined( __CL_CHAR8__ )
|
| 671 |
+
__cl_char8 v8;
|
| 672 |
+
#endif
|
| 673 |
+
}cl_char8;
|
| 674 |
+
|
| 675 |
+
typedef union
|
| 676 |
+
{
|
| 677 |
+
cl_char CL_ALIGNED(16) s[16];
|
| 678 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 679 |
+
__CL_ANON_STRUCT__ struct{ cl_char x, y, z, w, __spacer4, __spacer5, __spacer6, __spacer7, __spacer8, __spacer9, sa, sb, sc, sd, se, sf; };
|
| 680 |
+
__CL_ANON_STRUCT__ struct{ cl_char s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; };
|
| 681 |
+
__CL_ANON_STRUCT__ struct{ cl_char8 lo, hi; };
|
| 682 |
+
#endif
|
| 683 |
+
#if defined( __CL_CHAR2__)
|
| 684 |
+
__cl_char2 v2[8];
|
| 685 |
+
#endif
|
| 686 |
+
#if defined( __CL_CHAR4__)
|
| 687 |
+
__cl_char4 v4[4];
|
| 688 |
+
#endif
|
| 689 |
+
#if defined( __CL_CHAR8__ )
|
| 690 |
+
__cl_char8 v8[2];
|
| 691 |
+
#endif
|
| 692 |
+
#if defined( __CL_CHAR16__ )
|
| 693 |
+
__cl_char16 v16;
|
| 694 |
+
#endif
|
| 695 |
+
}cl_char16;
|
| 696 |
+
|
| 697 |
+
|
| 698 |
+
/* ---- cl_ucharn ---- */
|
| 699 |
+
typedef union
|
| 700 |
+
{
|
| 701 |
+
cl_uchar CL_ALIGNED(2) s[2];
|
| 702 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 703 |
+
__CL_ANON_STRUCT__ struct{ cl_uchar x, y; };
|
| 704 |
+
__CL_ANON_STRUCT__ struct{ cl_uchar s0, s1; };
|
| 705 |
+
__CL_ANON_STRUCT__ struct{ cl_uchar lo, hi; };
|
| 706 |
+
#endif
|
| 707 |
+
#if defined( __cl_uchar2__)
|
| 708 |
+
__cl_uchar2 v2;
|
| 709 |
+
#endif
|
| 710 |
+
}cl_uchar2;
|
| 711 |
+
|
| 712 |
+
typedef union
|
| 713 |
+
{
|
| 714 |
+
cl_uchar CL_ALIGNED(4) s[4];
|
| 715 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 716 |
+
__CL_ANON_STRUCT__ struct{ cl_uchar x, y, z, w; };
|
| 717 |
+
__CL_ANON_STRUCT__ struct{ cl_uchar s0, s1, s2, s3; };
|
| 718 |
+
__CL_ANON_STRUCT__ struct{ cl_uchar2 lo, hi; };
|
| 719 |
+
#endif
|
| 720 |
+
#if defined( __CL_UCHAR2__)
|
| 721 |
+
__cl_uchar2 v2[2];
|
| 722 |
+
#endif
|
| 723 |
+
#if defined( __CL_UCHAR4__)
|
| 724 |
+
__cl_uchar4 v4;
|
| 725 |
+
#endif
|
| 726 |
+
}cl_uchar4;
|
| 727 |
+
|
| 728 |
+
/* cl_uchar3 is identical in size, alignment and behavior to cl_uchar4. See section 6.1.5. */
|
| 729 |
+
typedef cl_uchar4 cl_uchar3;
|
| 730 |
+
|
| 731 |
+
typedef union
|
| 732 |
+
{
|
| 733 |
+
cl_uchar CL_ALIGNED(8) s[8];
|
| 734 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 735 |
+
__CL_ANON_STRUCT__ struct{ cl_uchar x, y, z, w; };
|
| 736 |
+
__CL_ANON_STRUCT__ struct{ cl_uchar s0, s1, s2, s3, s4, s5, s6, s7; };
|
| 737 |
+
__CL_ANON_STRUCT__ struct{ cl_uchar4 lo, hi; };
|
| 738 |
+
#endif
|
| 739 |
+
#if defined( __CL_UCHAR2__)
|
| 740 |
+
__cl_uchar2 v2[4];
|
| 741 |
+
#endif
|
| 742 |
+
#if defined( __CL_UCHAR4__)
|
| 743 |
+
__cl_uchar4 v4[2];
|
| 744 |
+
#endif
|
| 745 |
+
#if defined( __CL_UCHAR8__ )
|
| 746 |
+
__cl_uchar8 v8;
|
| 747 |
+
#endif
|
| 748 |
+
}cl_uchar8;
|
| 749 |
+
|
| 750 |
+
typedef union
|
| 751 |
+
{
|
| 752 |
+
cl_uchar CL_ALIGNED(16) s[16];
|
| 753 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 754 |
+
__CL_ANON_STRUCT__ struct{ cl_uchar x, y, z, w, __spacer4, __spacer5, __spacer6, __spacer7, __spacer8, __spacer9, sa, sb, sc, sd, se, sf; };
|
| 755 |
+
__CL_ANON_STRUCT__ struct{ cl_uchar s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; };
|
| 756 |
+
__CL_ANON_STRUCT__ struct{ cl_uchar8 lo, hi; };
|
| 757 |
+
#endif
|
| 758 |
+
#if defined( __CL_UCHAR2__)
|
| 759 |
+
__cl_uchar2 v2[8];
|
| 760 |
+
#endif
|
| 761 |
+
#if defined( __CL_UCHAR4__)
|
| 762 |
+
__cl_uchar4 v4[4];
|
| 763 |
+
#endif
|
| 764 |
+
#if defined( __CL_UCHAR8__ )
|
| 765 |
+
__cl_uchar8 v8[2];
|
| 766 |
+
#endif
|
| 767 |
+
#if defined( __CL_UCHAR16__ )
|
| 768 |
+
__cl_uchar16 v16;
|
| 769 |
+
#endif
|
| 770 |
+
}cl_uchar16;
|
| 771 |
+
|
| 772 |
+
|
| 773 |
+
/* ---- cl_shortn ---- */
|
| 774 |
+
typedef union
|
| 775 |
+
{
|
| 776 |
+
cl_short CL_ALIGNED(4) s[2];
|
| 777 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 778 |
+
__CL_ANON_STRUCT__ struct{ cl_short x, y; };
|
| 779 |
+
__CL_ANON_STRUCT__ struct{ cl_short s0, s1; };
|
| 780 |
+
__CL_ANON_STRUCT__ struct{ cl_short lo, hi; };
|
| 781 |
+
#endif
|
| 782 |
+
#if defined( __CL_SHORT2__)
|
| 783 |
+
__cl_short2 v2;
|
| 784 |
+
#endif
|
| 785 |
+
}cl_short2;
|
| 786 |
+
|
| 787 |
+
typedef union
|
| 788 |
+
{
|
| 789 |
+
cl_short CL_ALIGNED(8) s[4];
|
| 790 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 791 |
+
__CL_ANON_STRUCT__ struct{ cl_short x, y, z, w; };
|
| 792 |
+
__CL_ANON_STRUCT__ struct{ cl_short s0, s1, s2, s3; };
|
| 793 |
+
__CL_ANON_STRUCT__ struct{ cl_short2 lo, hi; };
|
| 794 |
+
#endif
|
| 795 |
+
#if defined( __CL_SHORT2__)
|
| 796 |
+
__cl_short2 v2[2];
|
| 797 |
+
#endif
|
| 798 |
+
#if defined( __CL_SHORT4__)
|
| 799 |
+
__cl_short4 v4;
|
| 800 |
+
#endif
|
| 801 |
+
}cl_short4;
|
| 802 |
+
|
| 803 |
+
/* cl_short3 is identical in size, alignment and behavior to cl_short4. See section 6.1.5. */
|
| 804 |
+
typedef cl_short4 cl_short3;
|
| 805 |
+
|
| 806 |
+
typedef union
|
| 807 |
+
{
|
| 808 |
+
cl_short CL_ALIGNED(16) s[8];
|
| 809 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 810 |
+
__CL_ANON_STRUCT__ struct{ cl_short x, y, z, w; };
|
| 811 |
+
__CL_ANON_STRUCT__ struct{ cl_short s0, s1, s2, s3, s4, s5, s6, s7; };
|
| 812 |
+
__CL_ANON_STRUCT__ struct{ cl_short4 lo, hi; };
|
| 813 |
+
#endif
|
| 814 |
+
#if defined( __CL_SHORT2__)
|
| 815 |
+
__cl_short2 v2[4];
|
| 816 |
+
#endif
|
| 817 |
+
#if defined( __CL_SHORT4__)
|
| 818 |
+
__cl_short4 v4[2];
|
| 819 |
+
#endif
|
| 820 |
+
#if defined( __CL_SHORT8__ )
|
| 821 |
+
__cl_short8 v8;
|
| 822 |
+
#endif
|
| 823 |
+
}cl_short8;
|
| 824 |
+
|
| 825 |
+
typedef union
|
| 826 |
+
{
|
| 827 |
+
cl_short CL_ALIGNED(32) s[16];
|
| 828 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 829 |
+
__CL_ANON_STRUCT__ struct{ cl_short x, y, z, w, __spacer4, __spacer5, __spacer6, __spacer7, __spacer8, __spacer9, sa, sb, sc, sd, se, sf; };
|
| 830 |
+
__CL_ANON_STRUCT__ struct{ cl_short s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; };
|
| 831 |
+
__CL_ANON_STRUCT__ struct{ cl_short8 lo, hi; };
|
| 832 |
+
#endif
|
| 833 |
+
#if defined( __CL_SHORT2__)
|
| 834 |
+
__cl_short2 v2[8];
|
| 835 |
+
#endif
|
| 836 |
+
#if defined( __CL_SHORT4__)
|
| 837 |
+
__cl_short4 v4[4];
|
| 838 |
+
#endif
|
| 839 |
+
#if defined( __CL_SHORT8__ )
|
| 840 |
+
__cl_short8 v8[2];
|
| 841 |
+
#endif
|
| 842 |
+
#if defined( __CL_SHORT16__ )
|
| 843 |
+
__cl_short16 v16;
|
| 844 |
+
#endif
|
| 845 |
+
}cl_short16;
|
| 846 |
+
|
| 847 |
+
|
| 848 |
+
/* ---- cl_ushortn ---- */
|
| 849 |
+
typedef union
|
| 850 |
+
{
|
| 851 |
+
cl_ushort CL_ALIGNED(4) s[2];
|
| 852 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 853 |
+
__CL_ANON_STRUCT__ struct{ cl_ushort x, y; };
|
| 854 |
+
__CL_ANON_STRUCT__ struct{ cl_ushort s0, s1; };
|
| 855 |
+
__CL_ANON_STRUCT__ struct{ cl_ushort lo, hi; };
|
| 856 |
+
#endif
|
| 857 |
+
#if defined( __CL_USHORT2__)
|
| 858 |
+
__cl_ushort2 v2;
|
| 859 |
+
#endif
|
| 860 |
+
}cl_ushort2;
|
| 861 |
+
|
| 862 |
+
typedef union
|
| 863 |
+
{
|
| 864 |
+
cl_ushort CL_ALIGNED(8) s[4];
|
| 865 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 866 |
+
__CL_ANON_STRUCT__ struct{ cl_ushort x, y, z, w; };
|
| 867 |
+
__CL_ANON_STRUCT__ struct{ cl_ushort s0, s1, s2, s3; };
|
| 868 |
+
__CL_ANON_STRUCT__ struct{ cl_ushort2 lo, hi; };
|
| 869 |
+
#endif
|
| 870 |
+
#if defined( __CL_USHORT2__)
|
| 871 |
+
__cl_ushort2 v2[2];
|
| 872 |
+
#endif
|
| 873 |
+
#if defined( __CL_USHORT4__)
|
| 874 |
+
__cl_ushort4 v4;
|
| 875 |
+
#endif
|
| 876 |
+
}cl_ushort4;
|
| 877 |
+
|
| 878 |
+
/* cl_ushort3 is identical in size, alignment and behavior to cl_ushort4. See section 6.1.5. */
|
| 879 |
+
typedef cl_ushort4 cl_ushort3;
|
| 880 |
+
|
| 881 |
+
typedef union
|
| 882 |
+
{
|
| 883 |
+
cl_ushort CL_ALIGNED(16) s[8];
|
| 884 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 885 |
+
__CL_ANON_STRUCT__ struct{ cl_ushort x, y, z, w; };
|
| 886 |
+
__CL_ANON_STRUCT__ struct{ cl_ushort s0, s1, s2, s3, s4, s5, s6, s7; };
|
| 887 |
+
__CL_ANON_STRUCT__ struct{ cl_ushort4 lo, hi; };
|
| 888 |
+
#endif
|
| 889 |
+
#if defined( __CL_USHORT2__)
|
| 890 |
+
__cl_ushort2 v2[4];
|
| 891 |
+
#endif
|
| 892 |
+
#if defined( __CL_USHORT4__)
|
| 893 |
+
__cl_ushort4 v4[2];
|
| 894 |
+
#endif
|
| 895 |
+
#if defined( __CL_USHORT8__ )
|
| 896 |
+
__cl_ushort8 v8;
|
| 897 |
+
#endif
|
| 898 |
+
}cl_ushort8;
|
| 899 |
+
|
| 900 |
+
typedef union
|
| 901 |
+
{
|
| 902 |
+
cl_ushort CL_ALIGNED(32) s[16];
|
| 903 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 904 |
+
__CL_ANON_STRUCT__ struct{ cl_ushort x, y, z, w, __spacer4, __spacer5, __spacer6, __spacer7, __spacer8, __spacer9, sa, sb, sc, sd, se, sf; };
|
| 905 |
+
__CL_ANON_STRUCT__ struct{ cl_ushort s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; };
|
| 906 |
+
__CL_ANON_STRUCT__ struct{ cl_ushort8 lo, hi; };
|
| 907 |
+
#endif
|
| 908 |
+
#if defined( __CL_USHORT2__)
|
| 909 |
+
__cl_ushort2 v2[8];
|
| 910 |
+
#endif
|
| 911 |
+
#if defined( __CL_USHORT4__)
|
| 912 |
+
__cl_ushort4 v4[4];
|
| 913 |
+
#endif
|
| 914 |
+
#if defined( __CL_USHORT8__ )
|
| 915 |
+
__cl_ushort8 v8[2];
|
| 916 |
+
#endif
|
| 917 |
+
#if defined( __CL_USHORT16__ )
|
| 918 |
+
__cl_ushort16 v16;
|
| 919 |
+
#endif
|
| 920 |
+
}cl_ushort16;
|
| 921 |
+
|
| 922 |
+
|
| 923 |
+
/* ---- cl_halfn ---- */
|
| 924 |
+
typedef union
|
| 925 |
+
{
|
| 926 |
+
cl_half CL_ALIGNED(4) s[2];
|
| 927 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 928 |
+
__CL_ANON_STRUCT__ struct{ cl_half x, y; };
|
| 929 |
+
__CL_ANON_STRUCT__ struct{ cl_half s0, s1; };
|
| 930 |
+
__CL_ANON_STRUCT__ struct{ cl_half lo, hi; };
|
| 931 |
+
#endif
|
| 932 |
+
#if defined( __CL_HALF2__)
|
| 933 |
+
__cl_half2 v2;
|
| 934 |
+
#endif
|
| 935 |
+
}cl_half2;
|
| 936 |
+
|
| 937 |
+
typedef union
|
| 938 |
+
{
|
| 939 |
+
cl_half CL_ALIGNED(8) s[4];
|
| 940 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 941 |
+
__CL_ANON_STRUCT__ struct{ cl_half x, y, z, w; };
|
| 942 |
+
__CL_ANON_STRUCT__ struct{ cl_half s0, s1, s2, s3; };
|
| 943 |
+
__CL_ANON_STRUCT__ struct{ cl_half2 lo, hi; };
|
| 944 |
+
#endif
|
| 945 |
+
#if defined( __CL_HALF2__)
|
| 946 |
+
__cl_half2 v2[2];
|
| 947 |
+
#endif
|
| 948 |
+
#if defined( __CL_HALF4__)
|
| 949 |
+
__cl_half4 v4;
|
| 950 |
+
#endif
|
| 951 |
+
}cl_half4;
|
| 952 |
+
|
| 953 |
+
/* cl_half3 is identical in size, alignment and behavior to cl_half4. See section 6.1.5. */
|
| 954 |
+
typedef cl_half4 cl_half3;
|
| 955 |
+
|
| 956 |
+
typedef union
|
| 957 |
+
{
|
| 958 |
+
cl_half CL_ALIGNED(16) s[8];
|
| 959 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 960 |
+
__CL_ANON_STRUCT__ struct{ cl_half x, y, z, w; };
|
| 961 |
+
__CL_ANON_STRUCT__ struct{ cl_half s0, s1, s2, s3, s4, s5, s6, s7; };
|
| 962 |
+
__CL_ANON_STRUCT__ struct{ cl_half4 lo, hi; };
|
| 963 |
+
#endif
|
| 964 |
+
#if defined( __CL_HALF2__)
|
| 965 |
+
__cl_half2 v2[4];
|
| 966 |
+
#endif
|
| 967 |
+
#if defined( __CL_HALF4__)
|
| 968 |
+
__cl_half4 v4[2];
|
| 969 |
+
#endif
|
| 970 |
+
#if defined( __CL_HALF8__ )
|
| 971 |
+
__cl_half8 v8;
|
| 972 |
+
#endif
|
| 973 |
+
}cl_half8;
|
| 974 |
+
|
| 975 |
+
typedef union
|
| 976 |
+
{
|
| 977 |
+
cl_half CL_ALIGNED(32) s[16];
|
| 978 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 979 |
+
__CL_ANON_STRUCT__ struct{ cl_half x, y, z, w, __spacer4, __spacer5, __spacer6, __spacer7, __spacer8, __spacer9, sa, sb, sc, sd, se, sf; };
|
| 980 |
+
__CL_ANON_STRUCT__ struct{ cl_half s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; };
|
| 981 |
+
__CL_ANON_STRUCT__ struct{ cl_half8 lo, hi; };
|
| 982 |
+
#endif
|
| 983 |
+
#if defined( __CL_HALF2__)
|
| 984 |
+
__cl_half2 v2[8];
|
| 985 |
+
#endif
|
| 986 |
+
#if defined( __CL_HALF4__)
|
| 987 |
+
__cl_half4 v4[4];
|
| 988 |
+
#endif
|
| 989 |
+
#if defined( __CL_HALF8__ )
|
| 990 |
+
__cl_half8 v8[2];
|
| 991 |
+
#endif
|
| 992 |
+
#if defined( __CL_HALF16__ )
|
| 993 |
+
__cl_half16 v16;
|
| 994 |
+
#endif
|
| 995 |
+
}cl_half16;
|
| 996 |
+
|
| 997 |
+
/* ---- cl_intn ---- */
|
| 998 |
+
typedef union
|
| 999 |
+
{
|
| 1000 |
+
cl_int CL_ALIGNED(8) s[2];
|
| 1001 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1002 |
+
__CL_ANON_STRUCT__ struct{ cl_int x, y; };
|
| 1003 |
+
__CL_ANON_STRUCT__ struct{ cl_int s0, s1; };
|
| 1004 |
+
__CL_ANON_STRUCT__ struct{ cl_int lo, hi; };
|
| 1005 |
+
#endif
|
| 1006 |
+
#if defined( __CL_INT2__)
|
| 1007 |
+
__cl_int2 v2;
|
| 1008 |
+
#endif
|
| 1009 |
+
}cl_int2;
|
| 1010 |
+
|
| 1011 |
+
typedef union
|
| 1012 |
+
{
|
| 1013 |
+
cl_int CL_ALIGNED(16) s[4];
|
| 1014 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1015 |
+
__CL_ANON_STRUCT__ struct{ cl_int x, y, z, w; };
|
| 1016 |
+
__CL_ANON_STRUCT__ struct{ cl_int s0, s1, s2, s3; };
|
| 1017 |
+
__CL_ANON_STRUCT__ struct{ cl_int2 lo, hi; };
|
| 1018 |
+
#endif
|
| 1019 |
+
#if defined( __CL_INT2__)
|
| 1020 |
+
__cl_int2 v2[2];
|
| 1021 |
+
#endif
|
| 1022 |
+
#if defined( __CL_INT4__)
|
| 1023 |
+
__cl_int4 v4;
|
| 1024 |
+
#endif
|
| 1025 |
+
}cl_int4;
|
| 1026 |
+
|
| 1027 |
+
/* cl_int3 is identical in size, alignment and behavior to cl_int4. See section 6.1.5. */
|
| 1028 |
+
typedef cl_int4 cl_int3;
|
| 1029 |
+
|
| 1030 |
+
typedef union
|
| 1031 |
+
{
|
| 1032 |
+
cl_int CL_ALIGNED(32) s[8];
|
| 1033 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1034 |
+
__CL_ANON_STRUCT__ struct{ cl_int x, y, z, w; };
|
| 1035 |
+
__CL_ANON_STRUCT__ struct{ cl_int s0, s1, s2, s3, s4, s5, s6, s7; };
|
| 1036 |
+
__CL_ANON_STRUCT__ struct{ cl_int4 lo, hi; };
|
| 1037 |
+
#endif
|
| 1038 |
+
#if defined( __CL_INT2__)
|
| 1039 |
+
__cl_int2 v2[4];
|
| 1040 |
+
#endif
|
| 1041 |
+
#if defined( __CL_INT4__)
|
| 1042 |
+
__cl_int4 v4[2];
|
| 1043 |
+
#endif
|
| 1044 |
+
#if defined( __CL_INT8__ )
|
| 1045 |
+
__cl_int8 v8;
|
| 1046 |
+
#endif
|
| 1047 |
+
}cl_int8;
|
| 1048 |
+
|
| 1049 |
+
typedef union
|
| 1050 |
+
{
|
| 1051 |
+
cl_int CL_ALIGNED(64) s[16];
|
| 1052 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1053 |
+
__CL_ANON_STRUCT__ struct{ cl_int x, y, z, w, __spacer4, __spacer5, __spacer6, __spacer7, __spacer8, __spacer9, sa, sb, sc, sd, se, sf; };
|
| 1054 |
+
__CL_ANON_STRUCT__ struct{ cl_int s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; };
|
| 1055 |
+
__CL_ANON_STRUCT__ struct{ cl_int8 lo, hi; };
|
| 1056 |
+
#endif
|
| 1057 |
+
#if defined( __CL_INT2__)
|
| 1058 |
+
__cl_int2 v2[8];
|
| 1059 |
+
#endif
|
| 1060 |
+
#if defined( __CL_INT4__)
|
| 1061 |
+
__cl_int4 v4[4];
|
| 1062 |
+
#endif
|
| 1063 |
+
#if defined( __CL_INT8__ )
|
| 1064 |
+
__cl_int8 v8[2];
|
| 1065 |
+
#endif
|
| 1066 |
+
#if defined( __CL_INT16__ )
|
| 1067 |
+
__cl_int16 v16;
|
| 1068 |
+
#endif
|
| 1069 |
+
}cl_int16;
|
| 1070 |
+
|
| 1071 |
+
|
| 1072 |
+
/* ---- cl_uintn ---- */
|
| 1073 |
+
typedef union
|
| 1074 |
+
{
|
| 1075 |
+
cl_uint CL_ALIGNED(8) s[2];
|
| 1076 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1077 |
+
__CL_ANON_STRUCT__ struct{ cl_uint x, y; };
|
| 1078 |
+
__CL_ANON_STRUCT__ struct{ cl_uint s0, s1; };
|
| 1079 |
+
__CL_ANON_STRUCT__ struct{ cl_uint lo, hi; };
|
| 1080 |
+
#endif
|
| 1081 |
+
#if defined( __CL_UINT2__)
|
| 1082 |
+
__cl_uint2 v2;
|
| 1083 |
+
#endif
|
| 1084 |
+
}cl_uint2;
|
| 1085 |
+
|
| 1086 |
+
typedef union
|
| 1087 |
+
{
|
| 1088 |
+
cl_uint CL_ALIGNED(16) s[4];
|
| 1089 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1090 |
+
__CL_ANON_STRUCT__ struct{ cl_uint x, y, z, w; };
|
| 1091 |
+
__CL_ANON_STRUCT__ struct{ cl_uint s0, s1, s2, s3; };
|
| 1092 |
+
__CL_ANON_STRUCT__ struct{ cl_uint2 lo, hi; };
|
| 1093 |
+
#endif
|
| 1094 |
+
#if defined( __CL_UINT2__)
|
| 1095 |
+
__cl_uint2 v2[2];
|
| 1096 |
+
#endif
|
| 1097 |
+
#if defined( __CL_UINT4__)
|
| 1098 |
+
__cl_uint4 v4;
|
| 1099 |
+
#endif
|
| 1100 |
+
}cl_uint4;
|
| 1101 |
+
|
| 1102 |
+
/* cl_uint3 is identical in size, alignment and behavior to cl_uint4. See section 6.1.5. */
|
| 1103 |
+
typedef cl_uint4 cl_uint3;
|
| 1104 |
+
|
| 1105 |
+
typedef union
|
| 1106 |
+
{
|
| 1107 |
+
cl_uint CL_ALIGNED(32) s[8];
|
| 1108 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1109 |
+
__CL_ANON_STRUCT__ struct{ cl_uint x, y, z, w; };
|
| 1110 |
+
__CL_ANON_STRUCT__ struct{ cl_uint s0, s1, s2, s3, s4, s5, s6, s7; };
|
| 1111 |
+
__CL_ANON_STRUCT__ struct{ cl_uint4 lo, hi; };
|
| 1112 |
+
#endif
|
| 1113 |
+
#if defined( __CL_UINT2__)
|
| 1114 |
+
__cl_uint2 v2[4];
|
| 1115 |
+
#endif
|
| 1116 |
+
#if defined( __CL_UINT4__)
|
| 1117 |
+
__cl_uint4 v4[2];
|
| 1118 |
+
#endif
|
| 1119 |
+
#if defined( __CL_UINT8__ )
|
| 1120 |
+
__cl_uint8 v8;
|
| 1121 |
+
#endif
|
| 1122 |
+
}cl_uint8;
|
| 1123 |
+
|
| 1124 |
+
typedef union
|
| 1125 |
+
{
|
| 1126 |
+
cl_uint CL_ALIGNED(64) s[16];
|
| 1127 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1128 |
+
__CL_ANON_STRUCT__ struct{ cl_uint x, y, z, w, __spacer4, __spacer5, __spacer6, __spacer7, __spacer8, __spacer9, sa, sb, sc, sd, se, sf; };
|
| 1129 |
+
__CL_ANON_STRUCT__ struct{ cl_uint s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; };
|
| 1130 |
+
__CL_ANON_STRUCT__ struct{ cl_uint8 lo, hi; };
|
| 1131 |
+
#endif
|
| 1132 |
+
#if defined( __CL_UINT2__)
|
| 1133 |
+
__cl_uint2 v2[8];
|
| 1134 |
+
#endif
|
| 1135 |
+
#if defined( __CL_UINT4__)
|
| 1136 |
+
__cl_uint4 v4[4];
|
| 1137 |
+
#endif
|
| 1138 |
+
#if defined( __CL_UINT8__ )
|
| 1139 |
+
__cl_uint8 v8[2];
|
| 1140 |
+
#endif
|
| 1141 |
+
#if defined( __CL_UINT16__ )
|
| 1142 |
+
__cl_uint16 v16;
|
| 1143 |
+
#endif
|
| 1144 |
+
}cl_uint16;
|
| 1145 |
+
|
| 1146 |
+
/* ---- cl_longn ---- */
|
| 1147 |
+
typedef union
|
| 1148 |
+
{
|
| 1149 |
+
cl_long CL_ALIGNED(16) s[2];
|
| 1150 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1151 |
+
__CL_ANON_STRUCT__ struct{ cl_long x, y; };
|
| 1152 |
+
__CL_ANON_STRUCT__ struct{ cl_long s0, s1; };
|
| 1153 |
+
__CL_ANON_STRUCT__ struct{ cl_long lo, hi; };
|
| 1154 |
+
#endif
|
| 1155 |
+
#if defined( __CL_LONG2__)
|
| 1156 |
+
__cl_long2 v2;
|
| 1157 |
+
#endif
|
| 1158 |
+
}cl_long2;
|
| 1159 |
+
|
| 1160 |
+
typedef union
|
| 1161 |
+
{
|
| 1162 |
+
cl_long CL_ALIGNED(32) s[4];
|
| 1163 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1164 |
+
__CL_ANON_STRUCT__ struct{ cl_long x, y, z, w; };
|
| 1165 |
+
__CL_ANON_STRUCT__ struct{ cl_long s0, s1, s2, s3; };
|
| 1166 |
+
__CL_ANON_STRUCT__ struct{ cl_long2 lo, hi; };
|
| 1167 |
+
#endif
|
| 1168 |
+
#if defined( __CL_LONG2__)
|
| 1169 |
+
__cl_long2 v2[2];
|
| 1170 |
+
#endif
|
| 1171 |
+
#if defined( __CL_LONG4__)
|
| 1172 |
+
__cl_long4 v4;
|
| 1173 |
+
#endif
|
| 1174 |
+
}cl_long4;
|
| 1175 |
+
|
| 1176 |
+
/* cl_long3 is identical in size, alignment and behavior to cl_long4. See section 6.1.5. */
|
| 1177 |
+
typedef cl_long4 cl_long3;
|
| 1178 |
+
|
| 1179 |
+
typedef union
|
| 1180 |
+
{
|
| 1181 |
+
cl_long CL_ALIGNED(64) s[8];
|
| 1182 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1183 |
+
__CL_ANON_STRUCT__ struct{ cl_long x, y, z, w; };
|
| 1184 |
+
__CL_ANON_STRUCT__ struct{ cl_long s0, s1, s2, s3, s4, s5, s6, s7; };
|
| 1185 |
+
__CL_ANON_STRUCT__ struct{ cl_long4 lo, hi; };
|
| 1186 |
+
#endif
|
| 1187 |
+
#if defined( __CL_LONG2__)
|
| 1188 |
+
__cl_long2 v2[4];
|
| 1189 |
+
#endif
|
| 1190 |
+
#if defined( __CL_LONG4__)
|
| 1191 |
+
__cl_long4 v4[2];
|
| 1192 |
+
#endif
|
| 1193 |
+
#if defined( __CL_LONG8__ )
|
| 1194 |
+
__cl_long8 v8;
|
| 1195 |
+
#endif
|
| 1196 |
+
}cl_long8;
|
| 1197 |
+
|
| 1198 |
+
typedef union
|
| 1199 |
+
{
|
| 1200 |
+
cl_long CL_ALIGNED(128) s[16];
|
| 1201 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1202 |
+
__CL_ANON_STRUCT__ struct{ cl_long x, y, z, w, __spacer4, __spacer5, __spacer6, __spacer7, __spacer8, __spacer9, sa, sb, sc, sd, se, sf; };
|
| 1203 |
+
__CL_ANON_STRUCT__ struct{ cl_long s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; };
|
| 1204 |
+
__CL_ANON_STRUCT__ struct{ cl_long8 lo, hi; };
|
| 1205 |
+
#endif
|
| 1206 |
+
#if defined( __CL_LONG2__)
|
| 1207 |
+
__cl_long2 v2[8];
|
| 1208 |
+
#endif
|
| 1209 |
+
#if defined( __CL_LONG4__)
|
| 1210 |
+
__cl_long4 v4[4];
|
| 1211 |
+
#endif
|
| 1212 |
+
#if defined( __CL_LONG8__ )
|
| 1213 |
+
__cl_long8 v8[2];
|
| 1214 |
+
#endif
|
| 1215 |
+
#if defined( __CL_LONG16__ )
|
| 1216 |
+
__cl_long16 v16;
|
| 1217 |
+
#endif
|
| 1218 |
+
}cl_long16;
|
| 1219 |
+
|
| 1220 |
+
|
| 1221 |
+
/* ---- cl_ulongn ---- */
|
| 1222 |
+
typedef union
|
| 1223 |
+
{
|
| 1224 |
+
cl_ulong CL_ALIGNED(16) s[2];
|
| 1225 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1226 |
+
__CL_ANON_STRUCT__ struct{ cl_ulong x, y; };
|
| 1227 |
+
__CL_ANON_STRUCT__ struct{ cl_ulong s0, s1; };
|
| 1228 |
+
__CL_ANON_STRUCT__ struct{ cl_ulong lo, hi; };
|
| 1229 |
+
#endif
|
| 1230 |
+
#if defined( __CL_ULONG2__)
|
| 1231 |
+
__cl_ulong2 v2;
|
| 1232 |
+
#endif
|
| 1233 |
+
}cl_ulong2;
|
| 1234 |
+
|
| 1235 |
+
typedef union
|
| 1236 |
+
{
|
| 1237 |
+
cl_ulong CL_ALIGNED(32) s[4];
|
| 1238 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1239 |
+
__CL_ANON_STRUCT__ struct{ cl_ulong x, y, z, w; };
|
| 1240 |
+
__CL_ANON_STRUCT__ struct{ cl_ulong s0, s1, s2, s3; };
|
| 1241 |
+
__CL_ANON_STRUCT__ struct{ cl_ulong2 lo, hi; };
|
| 1242 |
+
#endif
|
| 1243 |
+
#if defined( __CL_ULONG2__)
|
| 1244 |
+
__cl_ulong2 v2[2];
|
| 1245 |
+
#endif
|
| 1246 |
+
#if defined( __CL_ULONG4__)
|
| 1247 |
+
__cl_ulong4 v4;
|
| 1248 |
+
#endif
|
| 1249 |
+
}cl_ulong4;
|
| 1250 |
+
|
| 1251 |
+
/* cl_ulong3 is identical in size, alignment and behavior to cl_ulong4. See section 6.1.5. */
|
| 1252 |
+
typedef cl_ulong4 cl_ulong3;
|
| 1253 |
+
|
| 1254 |
+
typedef union
|
| 1255 |
+
{
|
| 1256 |
+
cl_ulong CL_ALIGNED(64) s[8];
|
| 1257 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1258 |
+
__CL_ANON_STRUCT__ struct{ cl_ulong x, y, z, w; };
|
| 1259 |
+
__CL_ANON_STRUCT__ struct{ cl_ulong s0, s1, s2, s3, s4, s5, s6, s7; };
|
| 1260 |
+
__CL_ANON_STRUCT__ struct{ cl_ulong4 lo, hi; };
|
| 1261 |
+
#endif
|
| 1262 |
+
#if defined( __CL_ULONG2__)
|
| 1263 |
+
__cl_ulong2 v2[4];
|
| 1264 |
+
#endif
|
| 1265 |
+
#if defined( __CL_ULONG4__)
|
| 1266 |
+
__cl_ulong4 v4[2];
|
| 1267 |
+
#endif
|
| 1268 |
+
#if defined( __CL_ULONG8__ )
|
| 1269 |
+
__cl_ulong8 v8;
|
| 1270 |
+
#endif
|
| 1271 |
+
}cl_ulong8;
|
| 1272 |
+
|
| 1273 |
+
typedef union
|
| 1274 |
+
{
|
| 1275 |
+
cl_ulong CL_ALIGNED(128) s[16];
|
| 1276 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1277 |
+
__CL_ANON_STRUCT__ struct{ cl_ulong x, y, z, w, __spacer4, __spacer5, __spacer6, __spacer7, __spacer8, __spacer9, sa, sb, sc, sd, se, sf; };
|
| 1278 |
+
__CL_ANON_STRUCT__ struct{ cl_ulong s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; };
|
| 1279 |
+
__CL_ANON_STRUCT__ struct{ cl_ulong8 lo, hi; };
|
| 1280 |
+
#endif
|
| 1281 |
+
#if defined( __CL_ULONG2__)
|
| 1282 |
+
__cl_ulong2 v2[8];
|
| 1283 |
+
#endif
|
| 1284 |
+
#if defined( __CL_ULONG4__)
|
| 1285 |
+
__cl_ulong4 v4[4];
|
| 1286 |
+
#endif
|
| 1287 |
+
#if defined( __CL_ULONG8__ )
|
| 1288 |
+
__cl_ulong8 v8[2];
|
| 1289 |
+
#endif
|
| 1290 |
+
#if defined( __CL_ULONG16__ )
|
| 1291 |
+
__cl_ulong16 v16;
|
| 1292 |
+
#endif
|
| 1293 |
+
}cl_ulong16;
|
| 1294 |
+
|
| 1295 |
+
|
| 1296 |
+
/* --- cl_floatn ---- */
|
| 1297 |
+
|
| 1298 |
+
typedef union
|
| 1299 |
+
{
|
| 1300 |
+
cl_float CL_ALIGNED(8) s[2];
|
| 1301 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1302 |
+
__CL_ANON_STRUCT__ struct{ cl_float x, y; };
|
| 1303 |
+
__CL_ANON_STRUCT__ struct{ cl_float s0, s1; };
|
| 1304 |
+
__CL_ANON_STRUCT__ struct{ cl_float lo, hi; };
|
| 1305 |
+
#endif
|
| 1306 |
+
#if defined( __CL_FLOAT2__)
|
| 1307 |
+
__cl_float2 v2;
|
| 1308 |
+
#endif
|
| 1309 |
+
}cl_float2;
|
| 1310 |
+
|
| 1311 |
+
typedef union
|
| 1312 |
+
{
|
| 1313 |
+
cl_float CL_ALIGNED(16) s[4];
|
| 1314 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1315 |
+
__CL_ANON_STRUCT__ struct{ cl_float x, y, z, w; };
|
| 1316 |
+
__CL_ANON_STRUCT__ struct{ cl_float s0, s1, s2, s3; };
|
| 1317 |
+
__CL_ANON_STRUCT__ struct{ cl_float2 lo, hi; };
|
| 1318 |
+
#endif
|
| 1319 |
+
#if defined( __CL_FLOAT2__)
|
| 1320 |
+
__cl_float2 v2[2];
|
| 1321 |
+
#endif
|
| 1322 |
+
#if defined( __CL_FLOAT4__)
|
| 1323 |
+
__cl_float4 v4;
|
| 1324 |
+
#endif
|
| 1325 |
+
}cl_float4;
|
| 1326 |
+
|
| 1327 |
+
/* cl_float3 is identical in size, alignment and behavior to cl_float4. See section 6.1.5. */
|
| 1328 |
+
typedef cl_float4 cl_float3;
|
| 1329 |
+
|
| 1330 |
+
typedef union
|
| 1331 |
+
{
|
| 1332 |
+
cl_float CL_ALIGNED(32) s[8];
|
| 1333 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1334 |
+
__CL_ANON_STRUCT__ struct{ cl_float x, y, z, w; };
|
| 1335 |
+
__CL_ANON_STRUCT__ struct{ cl_float s0, s1, s2, s3, s4, s5, s6, s7; };
|
| 1336 |
+
__CL_ANON_STRUCT__ struct{ cl_float4 lo, hi; };
|
| 1337 |
+
#endif
|
| 1338 |
+
#if defined( __CL_FLOAT2__)
|
| 1339 |
+
__cl_float2 v2[4];
|
| 1340 |
+
#endif
|
| 1341 |
+
#if defined( __CL_FLOAT4__)
|
| 1342 |
+
__cl_float4 v4[2];
|
| 1343 |
+
#endif
|
| 1344 |
+
#if defined( __CL_FLOAT8__ )
|
| 1345 |
+
__cl_float8 v8;
|
| 1346 |
+
#endif
|
| 1347 |
+
}cl_float8;
|
| 1348 |
+
|
| 1349 |
+
typedef union
|
| 1350 |
+
{
|
| 1351 |
+
cl_float CL_ALIGNED(64) s[16];
|
| 1352 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1353 |
+
__CL_ANON_STRUCT__ struct{ cl_float x, y, z, w, __spacer4, __spacer5, __spacer6, __spacer7, __spacer8, __spacer9, sa, sb, sc, sd, se, sf; };
|
| 1354 |
+
__CL_ANON_STRUCT__ struct{ cl_float s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; };
|
| 1355 |
+
__CL_ANON_STRUCT__ struct{ cl_float8 lo, hi; };
|
| 1356 |
+
#endif
|
| 1357 |
+
#if defined( __CL_FLOAT2__)
|
| 1358 |
+
__cl_float2 v2[8];
|
| 1359 |
+
#endif
|
| 1360 |
+
#if defined( __CL_FLOAT4__)
|
| 1361 |
+
__cl_float4 v4[4];
|
| 1362 |
+
#endif
|
| 1363 |
+
#if defined( __CL_FLOAT8__ )
|
| 1364 |
+
__cl_float8 v8[2];
|
| 1365 |
+
#endif
|
| 1366 |
+
#if defined( __CL_FLOAT16__ )
|
| 1367 |
+
__cl_float16 v16;
|
| 1368 |
+
#endif
|
| 1369 |
+
}cl_float16;
|
| 1370 |
+
|
| 1371 |
+
/* --- cl_doublen ---- */
|
| 1372 |
+
|
| 1373 |
+
typedef union
|
| 1374 |
+
{
|
| 1375 |
+
cl_double CL_ALIGNED(16) s[2];
|
| 1376 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1377 |
+
__CL_ANON_STRUCT__ struct{ cl_double x, y; };
|
| 1378 |
+
__CL_ANON_STRUCT__ struct{ cl_double s0, s1; };
|
| 1379 |
+
__CL_ANON_STRUCT__ struct{ cl_double lo, hi; };
|
| 1380 |
+
#endif
|
| 1381 |
+
#if defined( __CL_DOUBLE2__)
|
| 1382 |
+
__cl_double2 v2;
|
| 1383 |
+
#endif
|
| 1384 |
+
}cl_double2;
|
| 1385 |
+
|
| 1386 |
+
typedef union
|
| 1387 |
+
{
|
| 1388 |
+
cl_double CL_ALIGNED(32) s[4];
|
| 1389 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1390 |
+
__CL_ANON_STRUCT__ struct{ cl_double x, y, z, w; };
|
| 1391 |
+
__CL_ANON_STRUCT__ struct{ cl_double s0, s1, s2, s3; };
|
| 1392 |
+
__CL_ANON_STRUCT__ struct{ cl_double2 lo, hi; };
|
| 1393 |
+
#endif
|
| 1394 |
+
#if defined( __CL_DOUBLE2__)
|
| 1395 |
+
__cl_double2 v2[2];
|
| 1396 |
+
#endif
|
| 1397 |
+
#if defined( __CL_DOUBLE4__)
|
| 1398 |
+
__cl_double4 v4;
|
| 1399 |
+
#endif
|
| 1400 |
+
}cl_double4;
|
| 1401 |
+
|
| 1402 |
+
/* cl_double3 is identical in size, alignment and behavior to cl_double4. See section 6.1.5. */
|
| 1403 |
+
typedef cl_double4 cl_double3;
|
| 1404 |
+
|
| 1405 |
+
typedef union
|
| 1406 |
+
{
|
| 1407 |
+
cl_double CL_ALIGNED(64) s[8];
|
| 1408 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1409 |
+
__CL_ANON_STRUCT__ struct{ cl_double x, y, z, w; };
|
| 1410 |
+
__CL_ANON_STRUCT__ struct{ cl_double s0, s1, s2, s3, s4, s5, s6, s7; };
|
| 1411 |
+
__CL_ANON_STRUCT__ struct{ cl_double4 lo, hi; };
|
| 1412 |
+
#endif
|
| 1413 |
+
#if defined( __CL_DOUBLE2__)
|
| 1414 |
+
__cl_double2 v2[4];
|
| 1415 |
+
#endif
|
| 1416 |
+
#if defined( __CL_DOUBLE4__)
|
| 1417 |
+
__cl_double4 v4[2];
|
| 1418 |
+
#endif
|
| 1419 |
+
#if defined( __CL_DOUBLE8__ )
|
| 1420 |
+
__cl_double8 v8;
|
| 1421 |
+
#endif
|
| 1422 |
+
}cl_double8;
|
| 1423 |
+
|
| 1424 |
+
typedef union
|
| 1425 |
+
{
|
| 1426 |
+
cl_double CL_ALIGNED(128) s[16];
|
| 1427 |
+
#if __CL_HAS_ANON_STRUCT__
|
| 1428 |
+
__CL_ANON_STRUCT__ struct{ cl_double x, y, z, w, __spacer4, __spacer5, __spacer6, __spacer7, __spacer8, __spacer9, sa, sb, sc, sd, se, sf; };
|
| 1429 |
+
__CL_ANON_STRUCT__ struct{ cl_double s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, sA, sB, sC, sD, sE, sF; };
|
| 1430 |
+
__CL_ANON_STRUCT__ struct{ cl_double8 lo, hi; };
|
| 1431 |
+
#endif
|
| 1432 |
+
#if defined( __CL_DOUBLE2__)
|
| 1433 |
+
__cl_double2 v2[8];
|
| 1434 |
+
#endif
|
| 1435 |
+
#if defined( __CL_DOUBLE4__)
|
| 1436 |
+
__cl_double4 v4[4];
|
| 1437 |
+
#endif
|
| 1438 |
+
#if defined( __CL_DOUBLE8__ )
|
| 1439 |
+
__cl_double8 v8[2];
|
| 1440 |
+
#endif
|
| 1441 |
+
#if defined( __CL_DOUBLE16__ )
|
| 1442 |
+
__cl_double16 v16;
|
| 1443 |
+
#endif
|
| 1444 |
+
}cl_double16;
|
| 1445 |
+
|
| 1446 |
+
/* Macro to facilitate debugging
|
| 1447 |
+
* Usage:
|
| 1448 |
+
* Place CL_PROGRAM_STRING_DEBUG_INFO on the line before the first line of your source.
|
| 1449 |
+
* The first line ends with: CL_PROGRAM_STRING_DEBUG_INFO \"
|
| 1450 |
+
* Each line thereafter of OpenCL C source must end with: \n\
|
| 1451 |
+
* The last line ends in ";
|
| 1452 |
+
*
|
| 1453 |
+
* Example:
|
| 1454 |
+
*
|
| 1455 |
+
* const char *my_program = CL_PROGRAM_STRING_DEBUG_INFO "\
|
| 1456 |
+
* kernel void foo( int a, float * b ) \n\
|
| 1457 |
+
* { \n\
|
| 1458 |
+
* // my comment \n\
|
| 1459 |
+
* *b[ get_global_id(0)] = a; \n\
|
| 1460 |
+
* } \n\
|
| 1461 |
+
* ";
|
| 1462 |
+
*
|
| 1463 |
+
* This should correctly set up the line, (column) and file information for your source
|
| 1464 |
+
* string so you can do source level debugging.
|
| 1465 |
+
*/
|
| 1466 |
+
#define __CL_STRINGIFY( _x ) # _x
|
| 1467 |
+
#define _CL_STRINGIFY( _x ) __CL_STRINGIFY( _x )
|
| 1468 |
+
#define CL_PROGRAM_STRING_DEBUG_INFO "#line " _CL_STRINGIFY(__LINE__) " \"" __FILE__ "\" \n\n"
|
| 1469 |
+
|
| 1470 |
+
#ifdef __cplusplus
|
| 1471 |
+
}
|
| 1472 |
+
#endif
|
| 1473 |
+
|
| 1474 |
+
#if defined(_WIN32) && defined(_MSC_VER) && __CL_HAS_ANON_STRUCT__
|
| 1475 |
+
#pragma warning( pop )
|
| 1476 |
+
#endif
|
| 1477 |
+
|
| 1478 |
+
#endif /* __CL_PLATFORM_H */
|
cuda_toolkit/include/CL/cl_version.h
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*******************************************************************************
|
| 2 |
+
* Copyright (c) 2018-2020 The Khronos Group Inc.
|
| 3 |
+
*
|
| 4 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
* you may not use this file except in compliance with the License.
|
| 6 |
+
* You may obtain a copy of the License at
|
| 7 |
+
*
|
| 8 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
*
|
| 10 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
* See the License for the specific language governing permissions and
|
| 14 |
+
* limitations under the License.
|
| 15 |
+
******************************************************************************/
|
| 16 |
+
|
| 17 |
+
#ifndef __CL_VERSION_H
|
| 18 |
+
#define __CL_VERSION_H
|
| 19 |
+
|
| 20 |
+
/* Detect which version to target */
|
| 21 |
+
#if !defined(CL_TARGET_OPENCL_VERSION)
|
| 22 |
+
#pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
|
| 23 |
+
#define CL_TARGET_OPENCL_VERSION 300
|
| 24 |
+
#endif
|
| 25 |
+
#if CL_TARGET_OPENCL_VERSION != 100 && \
|
| 26 |
+
CL_TARGET_OPENCL_VERSION != 110 && \
|
| 27 |
+
CL_TARGET_OPENCL_VERSION != 120 && \
|
| 28 |
+
CL_TARGET_OPENCL_VERSION != 200 && \
|
| 29 |
+
CL_TARGET_OPENCL_VERSION != 210 && \
|
| 30 |
+
CL_TARGET_OPENCL_VERSION != 220 && \
|
| 31 |
+
CL_TARGET_OPENCL_VERSION != 300
|
| 32 |
+
#pragma message("cl_version: CL_TARGET_OPENCL_VERSION is not a valid value (100, 110, 120, 200, 210, 220, 300). Defaulting to 300 (OpenCL 3.0)")
|
| 33 |
+
#undef CL_TARGET_OPENCL_VERSION
|
| 34 |
+
#define CL_TARGET_OPENCL_VERSION 300
|
| 35 |
+
#endif
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
/* OpenCL Version */
|
| 39 |
+
#if CL_TARGET_OPENCL_VERSION >= 300 && !defined(CL_VERSION_3_0)
|
| 40 |
+
#define CL_VERSION_3_0 1
|
| 41 |
+
#endif
|
| 42 |
+
#if CL_TARGET_OPENCL_VERSION >= 220 && !defined(CL_VERSION_2_2)
|
| 43 |
+
#define CL_VERSION_2_2 1
|
| 44 |
+
#endif
|
| 45 |
+
#if CL_TARGET_OPENCL_VERSION >= 210 && !defined(CL_VERSION_2_1)
|
| 46 |
+
#define CL_VERSION_2_1 1
|
| 47 |
+
#endif
|
| 48 |
+
#if CL_TARGET_OPENCL_VERSION >= 200 && !defined(CL_VERSION_2_0)
|
| 49 |
+
#define CL_VERSION_2_0 1
|
| 50 |
+
#endif
|
| 51 |
+
#if CL_TARGET_OPENCL_VERSION >= 120 && !defined(CL_VERSION_1_2)
|
| 52 |
+
#define CL_VERSION_1_2 1
|
| 53 |
+
#endif
|
| 54 |
+
#if CL_TARGET_OPENCL_VERSION >= 110 && !defined(CL_VERSION_1_1)
|
| 55 |
+
#define CL_VERSION_1_1 1
|
| 56 |
+
#endif
|
| 57 |
+
#if CL_TARGET_OPENCL_VERSION >= 100 && !defined(CL_VERSION_1_0)
|
| 58 |
+
#define CL_VERSION_1_0 1
|
| 59 |
+
#endif
|
| 60 |
+
|
| 61 |
+
/* Allow deprecated APIs for older OpenCL versions. */
|
| 62 |
+
#if CL_TARGET_OPENCL_VERSION <= 220 && !defined(CL_USE_DEPRECATED_OPENCL_2_2_APIS)
|
| 63 |
+
#define CL_USE_DEPRECATED_OPENCL_2_2_APIS
|
| 64 |
+
#endif
|
| 65 |
+
#if CL_TARGET_OPENCL_VERSION <= 210 && !defined(CL_USE_DEPRECATED_OPENCL_2_1_APIS)
|
| 66 |
+
#define CL_USE_DEPRECATED_OPENCL_2_1_APIS
|
| 67 |
+
#endif
|
| 68 |
+
#if CL_TARGET_OPENCL_VERSION <= 200 && !defined(CL_USE_DEPRECATED_OPENCL_2_0_APIS)
|
| 69 |
+
#define CL_USE_DEPRECATED_OPENCL_2_0_APIS
|
| 70 |
+
#endif
|
| 71 |
+
#if CL_TARGET_OPENCL_VERSION <= 120 && !defined(CL_USE_DEPRECATED_OPENCL_1_2_APIS)
|
| 72 |
+
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
|
| 73 |
+
#endif
|
| 74 |
+
#if CL_TARGET_OPENCL_VERSION <= 110 && !defined(CL_USE_DEPRECATED_OPENCL_1_1_APIS)
|
| 75 |
+
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
|
| 76 |
+
#endif
|
| 77 |
+
#if CL_TARGET_OPENCL_VERSION <= 100 && !defined(CL_USE_DEPRECATED_OPENCL_1_0_APIS)
|
| 78 |
+
#define CL_USE_DEPRECATED_OPENCL_1_0_APIS
|
| 79 |
+
#endif
|
| 80 |
+
|
| 81 |
+
#endif /* __CL_VERSION_H */
|
cuda_toolkit/include/CL/opencl.h
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*******************************************************************************
|
| 2 |
+
* Copyright (c) 2008-2021 The Khronos Group Inc.
|
| 3 |
+
*
|
| 4 |
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
* you may not use this file except in compliance with the License.
|
| 6 |
+
* You may obtain a copy of the License at
|
| 7 |
+
*
|
| 8 |
+
* http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
*
|
| 10 |
+
* Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
* See the License for the specific language governing permissions and
|
| 14 |
+
* limitations under the License.
|
| 15 |
+
******************************************************************************/
|
| 16 |
+
|
| 17 |
+
#ifndef __OPENCL_H
|
| 18 |
+
#define __OPENCL_H
|
| 19 |
+
|
| 20 |
+
#ifdef __cplusplus
|
| 21 |
+
extern "C" {
|
| 22 |
+
#endif
|
| 23 |
+
|
| 24 |
+
#include <CL/cl.h>
|
| 25 |
+
#include <CL/cl_gl.h>
|
| 26 |
+
#include <CL/cl_ext.h>
|
| 27 |
+
|
| 28 |
+
#ifdef __cplusplus
|
| 29 |
+
}
|
| 30 |
+
#endif
|
| 31 |
+
|
| 32 |
+
#endif /* __OPENCL_H */
|
cuda_toolkit/include/cooperative_groups/memcpy_async.h
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Copyright 1993-2016 NVIDIA Corporation. All rights reserved.
|
| 2 |
+
*
|
| 3 |
+
* NOTICE TO LICENSEE:
|
| 4 |
+
*
|
| 5 |
+
* The source code and/or documentation ("Licensed Deliverables") are
|
| 6 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 7 |
+
* international Copyright laws.
|
| 8 |
+
*
|
| 9 |
+
* The Licensed Deliverables contained herein are PROPRIETARY and
|
| 10 |
+
* CONFIDENTIAL to NVIDIA and are being provided under the terms and
|
| 11 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 12 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 13 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 14 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 15 |
+
* of the Licensed Deliverables to any third party without the express
|
| 16 |
+
* written consent of NVIDIA is prohibited.
|
| 17 |
+
*
|
| 18 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 19 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 20 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. THEY ARE
|
| 21 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 22 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 23 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 24 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 25 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 26 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 27 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 28 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 29 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 30 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 31 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 32 |
+
*
|
| 33 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 34 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 35 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 36 |
+
* computer software documentation" as such terms are used in 48
|
| 37 |
+
* C.F.R. 12.212 (SEPT 1995) and are provided to the U.S. Government
|
| 38 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 39 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 40 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 41 |
+
* only those rights set forth herein.
|
| 42 |
+
*
|
| 43 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 44 |
+
* software must include, in the user documentation and internal
|
| 45 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 46 |
+
* Users Notice.
|
| 47 |
+
*/
|
| 48 |
+
|
| 49 |
+
#ifndef _COOPERATIVE_GROUPS_MEMCPY_ASYNC
|
| 50 |
+
#define _COOPERATIVE_GROUPS_MEMCPY_ASYNC
|
| 51 |
+
|
| 52 |
+
#include "../cooperative_groups.h"
|
| 53 |
+
#include "details/info.h"
|
| 54 |
+
|
| 55 |
+
#ifdef _CG_CPP11_FEATURES
|
| 56 |
+
# include "details/async.h"
|
| 57 |
+
#else
|
| 58 |
+
# error This file requires compiler support for the ISO C++ 2011 standard. This support must be enabled with the \
|
| 59 |
+
-std=c++11 compiler option.
|
| 60 |
+
#endif
|
| 61 |
+
|
| 62 |
+
#endif // _COOPERATIVE_GROUPS_MEMCPY_ASYNC
|
cuda_toolkit/include/cooperative_groups/reduce.h
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Copyright 1993-2016 NVIDIA Corporation. All rights reserved.
|
| 2 |
+
*
|
| 3 |
+
* NOTICE TO LICENSEE:
|
| 4 |
+
*
|
| 5 |
+
* The source code and/or documentation ("Licensed Deliverables") are
|
| 6 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 7 |
+
* international Copyright laws.
|
| 8 |
+
*
|
| 9 |
+
* The Licensed Deliverables contained herein are PROPRIETARY and
|
| 10 |
+
* CONFIDENTIAL to NVIDIA and are being provided under the terms and
|
| 11 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 12 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 13 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 14 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 15 |
+
* of the Licensed Deliverables to any third party without the express
|
| 16 |
+
* written consent of NVIDIA is prohibited.
|
| 17 |
+
*
|
| 18 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 19 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 20 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. THEY ARE
|
| 21 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 22 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 23 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 24 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 25 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 26 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 27 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 28 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 29 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 30 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 31 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 32 |
+
*
|
| 33 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 34 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 35 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 36 |
+
* computer software documentation" as such terms are used in 48
|
| 37 |
+
* C.F.R. 12.212 (SEPT 1995) and are provided to the U.S. Government
|
| 38 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 39 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 40 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 41 |
+
* only those rights set forth herein.
|
| 42 |
+
*
|
| 43 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 44 |
+
* software must include, in the user documentation and internal
|
| 45 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 46 |
+
* Users Notice.
|
| 47 |
+
*/
|
| 48 |
+
|
| 49 |
+
#ifndef _COOPERATIVE_GROUPS_REDUCE_H
|
| 50 |
+
#define _COOPERATIVE_GROUPS_REDUCE_H
|
| 51 |
+
|
| 52 |
+
#include "../cooperative_groups.h"
|
| 53 |
+
#include "details/info.h"
|
| 54 |
+
|
| 55 |
+
#ifdef _CG_CPP11_FEATURES
|
| 56 |
+
# include "details/reduce.h"
|
| 57 |
+
#else
|
| 58 |
+
# error This file requires compiler support for the ISO C++ 2011 standard. This support must be enabled with the \
|
| 59 |
+
-std=c++11 compiler option.
|
| 60 |
+
#endif
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
#endif //_COOPERATIVE_GROUPS_REDUCE_H
|
cuda_toolkit/include/cooperative_groups/scan.h
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Copyright 1993-2016 NVIDIA Corporation. All rights reserved.
|
| 2 |
+
*
|
| 3 |
+
* NOTICE TO LICENSEE:
|
| 4 |
+
*
|
| 5 |
+
* The source code and/or documentation ("Licensed Deliverables") are
|
| 6 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 7 |
+
* international Copyright laws.
|
| 8 |
+
*
|
| 9 |
+
* The Licensed Deliverables contained herein are PROPRIETARY and
|
| 10 |
+
* CONFIDENTIAL to NVIDIA and are being provided under the terms and
|
| 11 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 12 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 13 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 14 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 15 |
+
* of the Licensed Deliverables to any third party without the express
|
| 16 |
+
* written consent of NVIDIA is prohibited.
|
| 17 |
+
*
|
| 18 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 19 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 20 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. THEY ARE
|
| 21 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 22 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 23 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 24 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 25 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 26 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 27 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 28 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 29 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 30 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 31 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 32 |
+
*
|
| 33 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 34 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 35 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 36 |
+
* computer software documentation" as such terms are used in 48
|
| 37 |
+
* C.F.R. 12.212 (SEPT 1995) and are provided to the U.S. Government
|
| 38 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 39 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 40 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 41 |
+
* only those rights set forth herein.
|
| 42 |
+
*
|
| 43 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 44 |
+
* software must include, in the user documentation and internal
|
| 45 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 46 |
+
* Users Notice.
|
| 47 |
+
*/
|
| 48 |
+
|
| 49 |
+
#ifndef _COOPERATIVE_GROUPS_SCAN_H
|
| 50 |
+
#define _COOPERATIVE_GROUPS_SCAN_H
|
| 51 |
+
|
| 52 |
+
#include "../cooperative_groups.h"
|
| 53 |
+
#include "details/info.h"
|
| 54 |
+
|
| 55 |
+
#ifdef _CG_CPP11_FEATURES
|
| 56 |
+
# include "details/scan.h"
|
| 57 |
+
#else
|
| 58 |
+
# error This file requires compiler support for the ISO C++ 2011 standard. This support must be enabled with the \
|
| 59 |
+
-std=c++11 compiler option.
|
| 60 |
+
#endif
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
#endif //_COOPERATIVE_GROUPS_SCAN_H
|
cuda_toolkit/include/crt/common_functions.h
ADDED
|
@@ -0,0 +1,310 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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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 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/common_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/common_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_COMMON_FUNCTIONS_H__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__COMMON_FUNCTIONS_H__)
|
| 61 |
+
#define __COMMON_FUNCTIONS_H__
|
| 62 |
+
|
| 63 |
+
/*******************************************************************************
|
| 64 |
+
* *
|
| 65 |
+
* *
|
| 66 |
+
* *
|
| 67 |
+
*******************************************************************************/
|
| 68 |
+
|
| 69 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 70 |
+
|
| 71 |
+
#include "builtin_types.h"
|
| 72 |
+
#include "host_defines.h"
|
| 73 |
+
|
| 74 |
+
#define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported. Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
|
| 75 |
+
|
| 76 |
+
#ifndef __CUDA_API_VER_MAJOR__
|
| 77 |
+
#define __CUDA_API_VER_MAJOR__ __CUDACC_VER_MAJOR__
|
| 78 |
+
#endif /* __CUDA_API_VER_MAJOR__ */
|
| 79 |
+
|
| 80 |
+
#ifndef __CUDA_API_VER_MINOR__
|
| 81 |
+
#define __CUDA_API_VER_MINOR__ __CUDACC_VER_MINOR__
|
| 82 |
+
#endif /* __CUDA_API_VER_MINOR__ */
|
| 83 |
+
|
| 84 |
+
#if !defined(__CUDACC_RTC__)
|
| 85 |
+
#include <string.h>
|
| 86 |
+
#include <time.h>
|
| 87 |
+
|
| 88 |
+
extern "C"
|
| 89 |
+
{
|
| 90 |
+
#endif /* !__CUDACC_RTC__ */
|
| 91 |
+
extern _CRTIMP __host__ __device__ __device_builtin__ __cudart_builtin__ clock_t __cdecl clock(void)
|
| 92 |
+
#if defined(__QNX__)
|
| 93 |
+
asm("clock32")
|
| 94 |
+
#endif
|
| 95 |
+
__THROW;
|
| 96 |
+
extern __host__ __device__ __device_builtin__ __cudart_builtin__ void* __cdecl memset(void*, int, size_t) __THROW;
|
| 97 |
+
extern __host__ __device__ __device_builtin__ __cudart_builtin__ void* __cdecl memcpy(void*, const void*, size_t) __THROW;
|
| 98 |
+
#if !defined(__CUDACC_RTC__)
|
| 99 |
+
}
|
| 100 |
+
#endif /* !__CUDACC_RTC__ */
|
| 101 |
+
|
| 102 |
+
#if defined(__CUDA_ARCH__)
|
| 103 |
+
|
| 104 |
+
#if defined(__CUDACC_RTC__)
|
| 105 |
+
inline __host__ __device__ void* operator new(size_t, void *p) { return p; }
|
| 106 |
+
inline __host__ __device__ void* operator new[](size_t, void *p) { return p; }
|
| 107 |
+
inline __host__ __device__ void operator delete(void*, void*) { }
|
| 108 |
+
inline __host__ __device__ void operator delete[](void*, void*) { }
|
| 109 |
+
#else /* !__CUDACC_RTC__ */
|
| 110 |
+
#ifndef __CUDA_INTERNAL_SKIP_CPP_HEADERS__
|
| 111 |
+
#include <new>
|
| 112 |
+
#endif
|
| 113 |
+
|
| 114 |
+
#if defined (__GNUC__)
|
| 115 |
+
|
| 116 |
+
#define STD \
|
| 117 |
+
std::
|
| 118 |
+
|
| 119 |
+
#else /* __GNUC__ */
|
| 120 |
+
|
| 121 |
+
#define STD
|
| 122 |
+
|
| 123 |
+
#endif /* __GNUC__ */
|
| 124 |
+
|
| 125 |
+
extern __host__ __device__ __cudart_builtin__ void* __cdecl operator new(STD size_t, void*) throw();
|
| 126 |
+
extern __host__ __device__ __cudart_builtin__ void* __cdecl operator new[](STD size_t, void*) throw();
|
| 127 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete(void*, void*) throw();
|
| 128 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete[](void*, void*) throw();
|
| 129 |
+
# if __cplusplus >= 201402L || (defined(_MSC_VER) && _MSC_VER >= 1900) || defined(__CUDA_XLC_CPP14__) || defined(__CUDA_ICC_CPP14__)
|
| 130 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete(void*, STD size_t) throw();
|
| 131 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete[](void*, STD size_t) throw();
|
| 132 |
+
#endif /* __cplusplus >= 201402L || (defined(_MSC_VER) && _MSC_VER >= 1900) || defined(__CUDA_XLC_CPP14__) || defined(__CUDA_ICC_CPP14__) */
|
| 133 |
+
#endif /* __CUDACC_RTC__ */
|
| 134 |
+
|
| 135 |
+
#if !defined(__CUDACC_RTC__)
|
| 136 |
+
#include <stdio.h>
|
| 137 |
+
#include <stdlib.h>
|
| 138 |
+
#endif /* !__CUDACC_RTC__ */
|
| 139 |
+
|
| 140 |
+
#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
|
| 141 |
+
namespace std {
|
| 142 |
+
#endif
|
| 143 |
+
extern "C"
|
| 144 |
+
{
|
| 145 |
+
extern
|
| 146 |
+
#if !defined(_MSC_VER) || _MSC_VER < 1900
|
| 147 |
+
_CRTIMP
|
| 148 |
+
#endif
|
| 149 |
+
|
| 150 |
+
#if defined(__GLIBC__) && defined(__GLIBC_MINOR__) && ( (__GLIBC__ < 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ < 3) ) )
|
| 151 |
+
__host__ __device__ __device_builtin__ __cudart_builtin__ int __cdecl printf(const char*, ...) __THROW;
|
| 152 |
+
#else /* newer glibc */
|
| 153 |
+
__host__ __device__ __device_builtin__ __cudart_builtin__ int __cdecl printf(const char*, ...);
|
| 154 |
+
#endif /* defined(__GLIBC__) && defined(__GLIBC_MINOR__) && ( (__GLIBC__ < 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ < 3) ) ) */
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
extern _CRTIMP __host__ __device__ __cudart_builtin__ void* __cdecl malloc(size_t) __THROW;
|
| 158 |
+
extern _CRTIMP __host__ __device__ __cudart_builtin__ void __cdecl free(void*) __THROW;
|
| 159 |
+
|
| 160 |
+
#if defined(_MSC_VER)
|
| 161 |
+
extern __host__ __device__ __cudart_builtin__ void* __cdecl _alloca(size_t);
|
| 162 |
+
#endif
|
| 163 |
+
|
| 164 |
+
#if defined(__QNX__)
|
| 165 |
+
#undef alloca
|
| 166 |
+
#define alloca(__S) __builtin_alloca(__S)
|
| 167 |
+
#endif
|
| 168 |
+
}
|
| 169 |
+
#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
|
| 170 |
+
} /* std */
|
| 171 |
+
#endif
|
| 172 |
+
|
| 173 |
+
#if !defined(__CUDACC_RTC__)
|
| 174 |
+
#include <assert.h>
|
| 175 |
+
#endif /* !__CUDACC_RTC__ */
|
| 176 |
+
|
| 177 |
+
extern "C"
|
| 178 |
+
{
|
| 179 |
+
#if defined(__CUDACC_RTC__)
|
| 180 |
+
extern __host__ __device__ void __assertfail(const char * __assertion,
|
| 181 |
+
const char *__file,
|
| 182 |
+
unsigned int __line,
|
| 183 |
+
const char *__function,
|
| 184 |
+
size_t charsize);
|
| 185 |
+
#elif defined(__APPLE__)
|
| 186 |
+
#define __builtin_expect(exp,c) (exp)
|
| 187 |
+
extern __host__ __device__ __cudart_builtin__ void __assert_rtn(
|
| 188 |
+
const char *, const char *, int, const char *);
|
| 189 |
+
#elif defined(__ANDROID__)
|
| 190 |
+
extern __host__ __device__ __cudart_builtin__ void __assert2(
|
| 191 |
+
const char *, int, const char *, const char *);
|
| 192 |
+
#elif defined(__QNX__)
|
| 193 |
+
#if !defined(_LIBCPP_VERSION)
|
| 194 |
+
namespace std {
|
| 195 |
+
#endif
|
| 196 |
+
extern __host__ __device__ __cudart_builtin__ void __assert(
|
| 197 |
+
const char *, const char *, unsigned int, const char *);
|
| 198 |
+
#if !defined(_LIBCPP_VERSION)
|
| 199 |
+
}
|
| 200 |
+
#endif
|
| 201 |
+
#elif defined(__HORIZON__)
|
| 202 |
+
extern __host__ __device__ __cudart_builtin__ void __assert_fail(
|
| 203 |
+
const char *, const char *, int, const char *);
|
| 204 |
+
#elif defined(__GNUC__)
|
| 205 |
+
extern __host__ __device__ __cudart_builtin__ void __assert_fail(
|
| 206 |
+
const char *, const char *, unsigned int, const char *)
|
| 207 |
+
__THROW;
|
| 208 |
+
#elif defined(_WIN32)
|
| 209 |
+
extern __host__ __device__ __cudart_builtin__ _CRTIMP void __cdecl _wassert(
|
| 210 |
+
const wchar_t *, const wchar_t *, unsigned);
|
| 211 |
+
#endif
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
#if defined(__CUDACC_RTC__)
|
| 215 |
+
#ifdef NDEBUG
|
| 216 |
+
#define assert(e) (static_cast<void>(0))
|
| 217 |
+
#else /* !NDEBUG */
|
| 218 |
+
#define __ASSERT_STR_HELPER(x) #x
|
| 219 |
+
#define assert(e) ((e) ? static_cast<void>(0)\
|
| 220 |
+
: __assertfail(__ASSERT_STR_HELPER(e), __FILE__,\
|
| 221 |
+
__LINE__, __PRETTY_FUNCTION__,\
|
| 222 |
+
sizeof(char)))
|
| 223 |
+
#endif /* NDEBUG */
|
| 224 |
+
__host__ __device__ void* operator new(size_t);
|
| 225 |
+
__host__ __device__ void* operator new[](size_t);
|
| 226 |
+
__host__ __device__ void operator delete(void*);
|
| 227 |
+
__host__ __device__ void operator delete[](void*);
|
| 228 |
+
# if __cplusplus >= 201402L
|
| 229 |
+
__host__ __device__ void operator delete(void*, size_t);
|
| 230 |
+
__host__ __device__ void operator delete[](void*, size_t);
|
| 231 |
+
#endif /* __cplusplus >= 201402L */
|
| 232 |
+
|
| 233 |
+
#if __cplusplus >= 201703L
|
| 234 |
+
namespace std { enum class align_val_t : size_t {}; }
|
| 235 |
+
__host__ __device__ void* __cdecl operator new(size_t sz, std::align_val_t) noexcept;
|
| 236 |
+
__host__ __device__ void* __cdecl operator new[](size_t sz, std::align_val_t) noexcept;
|
| 237 |
+
__host__ __device__ void __cdecl operator delete(void* ptr, std::align_val_t) noexcept;
|
| 238 |
+
__host__ __device__ void __cdecl operator delete[](void* ptr, std::align_val_t) noexcept;
|
| 239 |
+
__host__ __device__ void __cdecl operator delete(void* ptr, size_t, std::align_val_t) noexcept;
|
| 240 |
+
__host__ __device__ void __cdecl operator delete[](void* ptr, size_t, std::align_val_t) noexcept;
|
| 241 |
+
#endif /* __cplusplus >= 201703L */
|
| 242 |
+
|
| 243 |
+
#else /* !__CUDACC_RTC__ */
|
| 244 |
+
#if defined (__GNUC__)
|
| 245 |
+
|
| 246 |
+
#define __NV_GLIBCXX_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
| 247 |
+
|
| 248 |
+
#if (__cplusplus >= 201103L) && ((!(defined(__QNX__) && defined(_LIBCPP_VERSION))) || (defined(__QNX__) && __NV_GLIBCXX_VERSION >= 80300))
|
| 249 |
+
#define THROWBADALLOC
|
| 250 |
+
#else
|
| 251 |
+
#if defined(__ANDROID__) && !defined(_LIBCPP_VERSION) && (defined(__BIONIC__) || __NV_GLIBCXX_VERSION < 40900)
|
| 252 |
+
#define THROWBADALLOC
|
| 253 |
+
#else
|
| 254 |
+
#define THROWBADALLOC throw(STD bad_alloc)
|
| 255 |
+
#endif
|
| 256 |
+
#endif
|
| 257 |
+
#define __DELETE_THROW throw()
|
| 258 |
+
|
| 259 |
+
#undef __NV_GLIBCXX_VERSION
|
| 260 |
+
|
| 261 |
+
#else /* __GNUC__ */
|
| 262 |
+
|
| 263 |
+
#define THROWBADALLOC throw(...)
|
| 264 |
+
|
| 265 |
+
#endif /* __GNUC__ */
|
| 266 |
+
|
| 267 |
+
extern __host__ __device__ __cudart_builtin__ void* __cdecl operator new(STD size_t) THROWBADALLOC;
|
| 268 |
+
extern __host__ __device__ __cudart_builtin__ void* __cdecl operator new[](STD size_t) THROWBADALLOC;
|
| 269 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete(void*) throw();
|
| 270 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete[](void*) throw();
|
| 271 |
+
# if __cplusplus >= 201402L || (defined(_MSC_VER) && _MSC_VER >= 1900) || defined(__CUDA_XLC_CPP14__) || defined(__CUDA_ICC_CPP14__)
|
| 272 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete(void*, STD size_t) throw();
|
| 273 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete[](void*, STD size_t) throw();
|
| 274 |
+
#endif /* __cplusplus >= 201402L || (defined(_MSC_VER) && _MSC_VER >= 1900) || defined(__CUDA_XLC_CPP14__) || defined(__CUDA_ICC_CPP14__) */
|
| 275 |
+
|
| 276 |
+
#if __cpp_aligned_new
|
| 277 |
+
extern __host__ __device__ __cudart_builtin__ void* __cdecl operator new(STD size_t, std::align_val_t);
|
| 278 |
+
extern __host__ __device__ __cudart_builtin__ void* __cdecl operator new[](STD size_t, std::align_val_t);
|
| 279 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete(void*, std::align_val_t) noexcept;
|
| 280 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete[](void*, std::align_val_t) noexcept;
|
| 281 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete(void*, STD size_t, std::align_val_t) noexcept;
|
| 282 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete[](void*, STD size_t, std::align_val_t) noexcept;
|
| 283 |
+
#endif /* __cpp_aligned_new */
|
| 284 |
+
|
| 285 |
+
#undef THROWBADALLOC
|
| 286 |
+
#undef STD
|
| 287 |
+
#endif /* __CUDACC_RTC__ */
|
| 288 |
+
|
| 289 |
+
#endif /* __CUDA_ARCH__ */
|
| 290 |
+
|
| 291 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 292 |
+
|
| 293 |
+
/*******************************************************************************
|
| 294 |
+
* *
|
| 295 |
+
* *
|
| 296 |
+
* *
|
| 297 |
+
*******************************************************************************/
|
| 298 |
+
|
| 299 |
+
#if defined(__CUDACC_RTC__) && (__CUDA_ARCH__ >= 350)
|
| 300 |
+
#include "cuda_device_runtime_api.h"
|
| 301 |
+
#endif
|
| 302 |
+
|
| 303 |
+
#include "math_functions.h"
|
| 304 |
+
|
| 305 |
+
#endif /* !__COMMON_FUNCTIONS_H__ */
|
| 306 |
+
|
| 307 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_COMMON_FUNCTIONS_H__)
|
| 308 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 309 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_COMMON_FUNCTIONS_H__
|
| 310 |
+
#endif
|
cuda_toolkit/lib/x64/OpenCL.lib
ADDED
|
Binary file (28.8 kB). View file
|
|
|
cuda_toolkit/lib/x64/cublasLt.lib
ADDED
|
Binary file (89.2 kB). View file
|
|
|
cuda_toolkit/lib/x64/cufft.lib
ADDED
|
Binary file (13.6 kB). View file
|
|
|
cuda_toolkit/lib/x64/cufftw.lib
ADDED
|
Binary file (17.1 kB). View file
|
|
|
cuda_toolkit/lib/x64/curand.lib
ADDED
|
Binary file (8.53 kB). View file
|
|
|
cuda_toolkit/lib/x64/cusolverMg.lib
ADDED
|
Binary file (57.8 kB). View file
|
|
|
cuda_toolkit/lib/x64/nppc.lib
ADDED
|
Binary file (4.71 kB). View file
|
|
|
cuda_toolkit/lib/x64/nppim.lib
ADDED
|
Binary file (80.6 kB). View file
|
|
|
cuda_toolkit/lib/x64/nppisu.lib
ADDED
|
Binary file (8.42 kB). View file
|
|
|
cuda_toolkit/lib/x64/nvJitLink.lib
ADDED
|
Binary file (22.7 kB). View file
|
|
|
cuda_toolkit/lib/x64/nvblas.lib
ADDED
|
Binary file (11.3 kB). View file
|
|
|
cuda_toolkit/lib/x64/nvfatbin.lib
ADDED
|
Binary file (3.56 kB). View file
|
|
|
cuda_toolkit/lib/x64/nvjpeg.lib
ADDED
|
Binary file (22 kB). View file
|
|
|
cuda_toolkit/lib/x64/nvml.lib
ADDED
|
Binary file (95.3 kB). View file
|
|
|
cuda_toolkit/lib/x64/nvrtc.lib
ADDED
|
Binary file (6.44 kB). View file
|
|
|
cuda_toolkit/lib/x64/nvvm.lib
ADDED
|
Binary file (4.92 kB). View file
|
|
|
cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/Archives/index.html
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
| 4 |
+
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
| 5 |
+
<meta content="Nsight Compute Archives." name="description" />
|
| 6 |
+
<meta content="Archive" name="keywords" />
|
| 7 |
+
|
| 8 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 9 |
+
<title>Archives — NsightCompute 12.4 documentation</title>
|
| 10 |
+
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
| 11 |
+
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
| 12 |
+
<link rel="stylesheet" href="../_static/design-style.b7bb847fb20b106c3d81b95245e65545.min.css" type="text/css" />
|
| 13 |
+
<link rel="stylesheet" href="../_static/omni-style.css" type="text/css" />
|
| 14 |
+
<link rel="stylesheet" href="../_static/api-styles.css" type="text/css" />
|
| 15 |
+
<link rel="shortcut icon" href="../_static/nsight-compute.ico"/>
|
| 16 |
+
<!--[if lt IE 9]>
|
| 17 |
+
<script src="../_static/js/html5shiv.min.js"></script>
|
| 18 |
+
<![endif]-->
|
| 19 |
+
|
| 20 |
+
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
|
| 21 |
+
<script src="../_static/jquery.js"></script>
|
| 22 |
+
<script src="../_static/underscore.js"></script>
|
| 23 |
+
<script src="../_static/doctools.js"></script>
|
| 24 |
+
<script src="../_static/mermaid-init.js"></script>
|
| 25 |
+
<script src="../_static/design-tabs.js"></script>
|
| 26 |
+
<script src="../_static/version.js"></script>
|
| 27 |
+
<script src="../_static/social-media.js"></script>
|
| 28 |
+
<script src="../_static/js/theme.js"></script>
|
| 29 |
+
<link rel="index" title="Index" href="../genindex.html" />
|
| 30 |
+
<link rel="search" title="Search" href="../search.html" />
|
| 31 |
+
<link rel="next" title="Copyright and Licenses" href="../CopyrightAndLicenses/index.html" />
|
| 32 |
+
<link rel="prev" title="Training" href="../Training/index.html" />
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
</head>
|
| 37 |
+
|
| 38 |
+
<body class="wy-body-for-nav">
|
| 39 |
+
<div class="wy-grid-for-nav">
|
| 40 |
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
| 41 |
+
<div class="wy-side-scroll">
|
| 42 |
+
<div class="wy-side-nav-search" >
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
<a href="../index.html">
|
| 46 |
+
<img src="../_static/nsight-compute.png" class="logo" alt="Logo"/>
|
| 47 |
+
</a>
|
| 48 |
+
|
| 49 |
+
<div role="search">
|
| 50 |
+
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
| 51 |
+
<input type="text" name="q" placeholder="Search docs" />
|
| 52 |
+
<input type="hidden" name="check_keywords" value="yes" />
|
| 53 |
+
<input type="hidden" name="area" value="default" />
|
| 54 |
+
</form>
|
| 55 |
+
</div>
|
| 56 |
+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
| 57 |
+
<p class="caption" role="heading"><span class="caption-text">Nsight Compute</span></p>
|
| 58 |
+
<ul>
|
| 59 |
+
<li class="toctree-l1"><a class="reference internal" href="../ReleaseNotes/index.html">1. Release Notes</a></li>
|
| 60 |
+
<li class="toctree-l1"><a class="reference internal" href="../ProfilingGuide/index.html">2. Kernel Profiling Guide</a></li>
|
| 61 |
+
<li class="toctree-l1"><a class="reference internal" href="../NsightCompute/index.html">3. Nsight Compute</a></li>
|
| 62 |
+
<li class="toctree-l1"><a class="reference internal" href="../NsightComputeCli/index.html">4. Nsight Compute CLI</a></li>
|
| 63 |
+
</ul>
|
| 64 |
+
<p class="caption" role="heading"><span class="caption-text">Developer Interfaces</span></p>
|
| 65 |
+
<ul>
|
| 66 |
+
<li class="toctree-l1"><a class="reference internal" href="../CustomizationGuide/index.html">1. Customization Guide</a></li>
|
| 67 |
+
<li class="toctree-l1"><a class="reference internal" href="../NvRulesAPI/index.html">2. NvRules API</a></li>
|
| 68 |
+
</ul>
|
| 69 |
+
<p class="caption" role="heading"><span class="caption-text">Training</span></p>
|
| 70 |
+
<ul>
|
| 71 |
+
<li class="toctree-l1"><a class="reference internal" href="../Training/index.html">Training</a></li>
|
| 72 |
+
</ul>
|
| 73 |
+
<p class="caption" role="heading"><span class="caption-text">Release Information</span></p>
|
| 74 |
+
<ul class="current">
|
| 75 |
+
<li class="toctree-l1 current"><a class="current reference internal" href="#">Archives</a><ul>
|
| 76 |
+
<li class="toctree-l2"><a class="reference internal" href="#nvidia-nsight-compute-archives">NVIDIA Nsight Compute Archives</a></li>
|
| 77 |
+
</ul>
|
| 78 |
+
</li>
|
| 79 |
+
</ul>
|
| 80 |
+
<p class="caption" role="heading"><span class="caption-text">Copyright and Licenses</span></p>
|
| 81 |
+
<ul>
|
| 82 |
+
<li class="toctree-l1"><a class="reference internal" href="../CopyrightAndLicenses/index.html">Copyright and Licenses</a></li>
|
| 83 |
+
</ul>
|
| 84 |
+
|
| 85 |
+
</div>
|
| 86 |
+
</div>
|
| 87 |
+
</nav>
|
| 88 |
+
|
| 89 |
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
| 90 |
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
| 91 |
+
<a href="../index.html">NsightCompute</a>
|
| 92 |
+
</nav>
|
| 93 |
+
|
| 94 |
+
<div class="wy-nav-content">
|
| 95 |
+
<div class="rst-content">
|
| 96 |
+
<div role="navigation" aria-label="Page navigation">
|
| 97 |
+
<ul class="wy-breadcrumbs">
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
| 101 |
+
<li>Archives</li>
|
| 102 |
+
|
| 103 |
+
<li class="wy-breadcrumbs-aside">
|
| 104 |
+
</li>
|
| 105 |
+
<li class="wy-breadcrumbs-aside">
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
<span>v2024.1.1 |</span>
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
<a href="https://developer.nvidia.com/nsight-compute-history" class="reference external">Archive</a>
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
<span> </span>
|
| 116 |
+
</li>
|
| 117 |
+
|
| 118 |
+
</ul>
|
| 119 |
+
<hr/>
|
| 120 |
+
</div>
|
| 121 |
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
| 122 |
+
<div itemprop="articleBody">
|
| 123 |
+
|
| 124 |
+
<section id="archives">
|
| 125 |
+
<h1>Archives<a class="headerlink" href="#archives" title="Permalink to this headline"></a></h1>
|
| 126 |
+
<p>Nsight Compute Archived Releases.</p>
|
| 127 |
+
<p>Find documentation for previous versions of NVIDIA Nsight Compute.</p>
|
| 128 |
+
<section id="nvidia-nsight-compute-archives">
|
| 129 |
+
<h2>NVIDIA Nsight Compute Archives<a class="headerlink" href="#nvidia-nsight-compute-archives" title="Permalink to this headline"></a></h2>
|
| 130 |
+
<p>Below, you can find the current and past release information for NVIDIA Nsight Compute.</p>
|
| 131 |
+
<p><strong>Available Documentation</strong></p>
|
| 132 |
+
<ul class="simple">
|
| 133 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/index.html">Latest version of NVIDIA Nsight Compute</a></p></li>
|
| 134 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2023.4/index.html">NVIDIA Nsight Compute 2023.4</a></p></li>
|
| 135 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2023.3/index.html">NVIDIA Nsight Compute 2023.3</a></p></li>
|
| 136 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2023.2/index.html">NVIDIA Nsight Compute 2023.2</a></p></li>
|
| 137 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2023.1/index.html">NVIDIA Nsight Compute 2023.1</a></p></li>
|
| 138 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2022.4/index.html">NVIDIA Nsight Compute 2022.4</a></p></li>
|
| 139 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2022.3/index.html">NVIDIA Nsight Compute 2022.3</a></p></li>
|
| 140 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2022.2/index.html">NVIDIA Nsight Compute 2022.2</a></p></li>
|
| 141 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2022.1/index.html">NVIDIA Nsight Compute 2022.1</a></p></li>
|
| 142 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2021.3/index.html">NVIDIA Nsight Compute 2021.3</a></p></li>
|
| 143 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2021.2/index.html">NVIDIA Nsight Compute 2021.2</a></p></li>
|
| 144 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2021.1/index.html">NVIDIA Nsight Compute 2021.1</a></p></li>
|
| 145 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2020.3/index.html">NVIDIA Nsight Compute 2020.3</a></p></li>
|
| 146 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2020.2/index.html">NVIDIA Nsight Compute 2020.2</a></p></li>
|
| 147 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2020.1.2/index.html">NVIDIA Nsight Compute 2020.1.2</a></p></li>
|
| 148 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2020.1/index.html">NVIDIA Nsight Compute 2020.1</a></p></li>
|
| 149 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2019.5.1/index.html">NVIDIA Nsight Compute 2019.5.1</a></p></li>
|
| 150 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2019.5/index.html">NVIDIA Nsight Compute 2019.5</a></p></li>
|
| 151 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2019.4/index.html">NVIDIA Nsight Compute 2019.4</a></p></li>
|
| 152 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2019.3/index.html">NVIDIA Nsight Compute 2019.3</a></p></li>
|
| 153 |
+
<li><p><a class="reference external" href="https://docs.nvidia.com/nsight-compute/2019.1/index.html">NVIDIA Nsight Compute 2019.1</a></p></li>
|
| 154 |
+
</ul>
|
| 155 |
+
<p class="rubric-h1 rubric">Notices</p>
|
| 156 |
+
<p class="rubric-h2 rubric">Notices</p>
|
| 157 |
+
<p>ALL NVIDIA DESIGN SPECIFICATIONS, REFERENCE BOARDS, FILES, DRAWINGS, DIAGNOSTICS, LISTS, AND OTHER DOCUMENTS (TOGETHER AND SEPARATELY, “MATERIALS”) ARE BEING PROVIDED “AS IS.” NVIDIA MAKES NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.</p>
|
| 158 |
+
<p>Information furnished is believed to be accurate and reliable. However, NVIDIA Corporation assumes no responsibility for the consequences of use of such information or for any infringement of patents or other rights of third parties that may result from its use. No license is granted by implication of otherwise under any patent rights of NVIDIA Corporation. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all other information previously supplied. NVIDIA Corporation products are not authorized as critical components in life support devices or systems without express written approval of NVIDIA Corporation.</p>
|
| 159 |
+
<p class="rubric-h2 rubric">Trademarks</p>
|
| 160 |
+
<p>NVIDIA and the NVIDIA logo are trademarks or registered trademarks of NVIDIA Corporation in the U.S. and other countries. Other company and product names may be trademarks of the respective companies with which they are associated.</p>
|
| 161 |
+
</section>
|
| 162 |
+
</section>
|
| 163 |
+
|
| 164 |
+
|
| 165 |
+
</div>
|
| 166 |
+
</div>
|
| 167 |
+
<footer>
|
| 168 |
+
|
| 169 |
+
<hr/>
|
| 170 |
+
|
| 171 |
+
<div role="contentinfo">
|
| 172 |
+
<p>© Copyright 2018-2024, NVIDIA Corporation & Affiliates. All rights reserved.
|
| 173 |
+
<span class="lastupdated">Last updated on Mar 06, 2024.
|
| 174 |
+
</span></p>
|
| 175 |
+
</div>
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
</footer>
|
| 180 |
+
</div>
|
| 181 |
+
</div>
|
| 182 |
+
</section>
|
| 183 |
+
</div>
|
| 184 |
+
<script>
|
| 185 |
+
jQuery(function () {
|
| 186 |
+
SphinxRtdTheme.Navigation.enable(true);
|
| 187 |
+
});
|
| 188 |
+
</script>
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
</body>
|
| 194 |
+
</html>
|
cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/CopyrightAndLicenses/index.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/CustomizationGuide/index.html
ADDED
|
@@ -0,0 +1,821 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html class="writer-html5" lang="en" >
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
| 5 |
+
<meta content="Nsight Compute Customization Guide." name="description" />
|
| 6 |
+
<meta content="User Guide" name="keywords" />
|
| 7 |
+
|
| 8 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 9 |
+
<title>1. Customization Guide — NsightCompute 12.4 documentation</title>
|
| 10 |
+
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
| 11 |
+
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
| 12 |
+
<link rel="stylesheet" href="../_static/design-style.b7bb847fb20b106c3d81b95245e65545.min.css" type="text/css" />
|
| 13 |
+
<link rel="stylesheet" href="../_static/omni-style.css" type="text/css" />
|
| 14 |
+
<link rel="stylesheet" href="../_static/api-styles.css" type="text/css" />
|
| 15 |
+
<link rel="shortcut icon" href="../_static/nsight-compute.ico"/>
|
| 16 |
+
<!--[if lt IE 9]>
|
| 17 |
+
<script src="../_static/js/html5shiv.min.js"></script>
|
| 18 |
+
<![endif]-->
|
| 19 |
+
|
| 20 |
+
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
|
| 21 |
+
<script src="../_static/jquery.js"></script>
|
| 22 |
+
<script src="../_static/underscore.js"></script>
|
| 23 |
+
<script src="../_static/doctools.js"></script>
|
| 24 |
+
<script src="../_static/mermaid-init.js"></script>
|
| 25 |
+
<script src="../_static/design-tabs.js"></script>
|
| 26 |
+
<script src="../_static/version.js"></script>
|
| 27 |
+
<script src="../_static/social-media.js"></script>
|
| 28 |
+
<script src="../_static/js/theme.js"></script>
|
| 29 |
+
<link rel="index" title="Index" href="../genindex.html" />
|
| 30 |
+
<link rel="search" title="Search" href="../search.html" />
|
| 31 |
+
<link rel="next" title="2. NvRules API" href="../NvRulesAPI/index.html" />
|
| 32 |
+
<link rel="prev" title="4. Nsight Compute CLI" href="../NsightComputeCli/index.html" />
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
</head>
|
| 37 |
+
|
| 38 |
+
<body class="wy-body-for-nav">
|
| 39 |
+
<div class="wy-grid-for-nav">
|
| 40 |
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
| 41 |
+
<div class="wy-side-scroll">
|
| 42 |
+
<div class="wy-side-nav-search" >
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
<a href="../index.html">
|
| 46 |
+
<img src="../_static/nsight-compute.png" class="logo" alt="Logo"/>
|
| 47 |
+
</a>
|
| 48 |
+
|
| 49 |
+
<div role="search">
|
| 50 |
+
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
| 51 |
+
<input type="text" name="q" placeholder="Search docs" />
|
| 52 |
+
<input type="hidden" name="check_keywords" value="yes" />
|
| 53 |
+
<input type="hidden" name="area" value="default" />
|
| 54 |
+
</form>
|
| 55 |
+
</div>
|
| 56 |
+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
| 57 |
+
<p class="caption" role="heading"><span class="caption-text">Nsight Compute</span></p>
|
| 58 |
+
<ul>
|
| 59 |
+
<li class="toctree-l1"><a class="reference internal" href="../ReleaseNotes/index.html">1. Release Notes</a></li>
|
| 60 |
+
<li class="toctree-l1"><a class="reference internal" href="../ProfilingGuide/index.html">2. Kernel Profiling Guide</a></li>
|
| 61 |
+
<li class="toctree-l1"><a class="reference internal" href="../NsightCompute/index.html">3. Nsight Compute</a></li>
|
| 62 |
+
<li class="toctree-l1"><a class="reference internal" href="../NsightComputeCli/index.html">4. Nsight Compute CLI</a></li>
|
| 63 |
+
</ul>
|
| 64 |
+
<p class="caption" role="heading"><span class="caption-text">Developer Interfaces</span></p>
|
| 65 |
+
<ul class="current">
|
| 66 |
+
<li class="toctree-l1 current"><a class="current reference internal" href="#">1. Customization Guide</a><ul>
|
| 67 |
+
<li class="toctree-l2"><a class="reference internal" href="#introduction">1.1. Introduction</a></li>
|
| 68 |
+
<li class="toctree-l2"><a class="reference internal" href="#metric-sections">1.2. Metric Sections</a><ul>
|
| 69 |
+
<li class="toctree-l3"><a class="reference internal" href="#section-files">1.2.1. Section Files</a></li>
|
| 70 |
+
<li class="toctree-l3"><a class="reference internal" href="#section-definition">1.2.2. Section Definition</a></li>
|
| 71 |
+
<li class="toctree-l3"><a class="reference internal" href="#metric-options-and-filters">1.2.3. Metric Options and Filters</a></li>
|
| 72 |
+
<li class="toctree-l3"><a class="reference internal" href="#counter-domains">1.2.4. Counter Domains</a></li>
|
| 73 |
+
<li class="toctree-l3"><a class="reference internal" href="#missing-sections">1.2.5. Missing Sections</a></li>
|
| 74 |
+
<li class="toctree-l3"><a class="reference internal" href="#derived-metrics">1.2.6. Derived Metrics</a></li>
|
| 75 |
+
</ul>
|
| 76 |
+
</li>
|
| 77 |
+
<li class="toctree-l2"><a class="reference internal" href="#rule-system">1.3. Rule System</a><ul>
|
| 78 |
+
<li class="toctree-l3"><a class="reference internal" href="#writing-rules">1.3.1. Writing Rules</a></li>
|
| 79 |
+
<li class="toctree-l3"><a class="reference internal" href="#integration">1.3.2. Integration</a></li>
|
| 80 |
+
<li class="toctree-l3"><a class="reference internal" href="#rule-system-architecture">1.3.3. Rule System Architecture</a></li>
|
| 81 |
+
<li class="toctree-l3"><a class="reference internal" href="#nvrules-api">1.3.4. NvRules API</a></li>
|
| 82 |
+
<li class="toctree-l3"><a class="reference internal" href="#rule-file-api">1.3.5. Rule File API</a></li>
|
| 83 |
+
<li class="toctree-l3"><a class="reference internal" href="#rule-examples">1.3.6. Rule Examples</a></li>
|
| 84 |
+
</ul>
|
| 85 |
+
</li>
|
| 86 |
+
<li class="toctree-l2"><a class="reference internal" href="#python-report-interface">1.4. Python Report Interface</a><ul>
|
| 87 |
+
<li class="toctree-l3"><a class="reference internal" href="#basic-usage">1.4.1. Basic Usage</a></li>
|
| 88 |
+
<li class="toctree-l3"><a class="reference internal" href="#high-level-interface">1.4.2. High-Level Interface</a></li>
|
| 89 |
+
<li class="toctree-l3"><a class="reference internal" href="#metric-attributes">1.4.3. Metric attributes</a></li>
|
| 90 |
+
<li class="toctree-l3"><a class="reference internal" href="#nvtx-support">1.4.4. NVTX Support</a></li>
|
| 91 |
+
<li class="toctree-l3"><a class="reference internal" href="#sample-script">1.4.5. Sample Script</a></li>
|
| 92 |
+
</ul>
|
| 93 |
+
</li>
|
| 94 |
+
<li class="toctree-l2"><a class="reference internal" href="#source-counters">1.5. Source Counters</a></li>
|
| 95 |
+
<li class="toctree-l2"><a class="reference internal" href="#report-file-format">1.6. Report File Format</a><ul>
|
| 96 |
+
<li class="toctree-l3"><a class="reference internal" href="#version-7-format">1.6.1. Version 7 Format</a></li>
|
| 97 |
+
</ul>
|
| 98 |
+
</li>
|
| 99 |
+
</ul>
|
| 100 |
+
</li>
|
| 101 |
+
<li class="toctree-l1"><a class="reference internal" href="../NvRulesAPI/index.html">2. NvRules API</a></li>
|
| 102 |
+
</ul>
|
| 103 |
+
<p class="caption" role="heading"><span class="caption-text">Training</span></p>
|
| 104 |
+
<ul>
|
| 105 |
+
<li class="toctree-l1"><a class="reference internal" href="../Training/index.html">Training</a></li>
|
| 106 |
+
</ul>
|
| 107 |
+
<p class="caption" role="heading"><span class="caption-text">Release Information</span></p>
|
| 108 |
+
<ul>
|
| 109 |
+
<li class="toctree-l1"><a class="reference internal" href="../Archives/index.html">Archives</a></li>
|
| 110 |
+
</ul>
|
| 111 |
+
<p class="caption" role="heading"><span class="caption-text">Copyright and Licenses</span></p>
|
| 112 |
+
<ul>
|
| 113 |
+
<li class="toctree-l1"><a class="reference internal" href="../CopyrightAndLicenses/index.html">Copyright and Licenses</a></li>
|
| 114 |
+
</ul>
|
| 115 |
+
|
| 116 |
+
</div>
|
| 117 |
+
</div>
|
| 118 |
+
</nav>
|
| 119 |
+
|
| 120 |
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
| 121 |
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
| 122 |
+
<a href="../index.html">NsightCompute</a>
|
| 123 |
+
</nav>
|
| 124 |
+
|
| 125 |
+
<div class="wy-nav-content">
|
| 126 |
+
<div class="rst-content">
|
| 127 |
+
<div role="navigation" aria-label="Page navigation">
|
| 128 |
+
<ul class="wy-breadcrumbs">
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
| 132 |
+
<li><span class="section-number">1. </span>Customization Guide</li>
|
| 133 |
+
|
| 134 |
+
<li class="wy-breadcrumbs-aside">
|
| 135 |
+
</li>
|
| 136 |
+
<li class="wy-breadcrumbs-aside">
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
<span>v2024.1.1 |</span>
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
<a href="https://developer.nvidia.com/nsight-compute-history" class="reference external">Archive</a>
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
<span> </span>
|
| 147 |
+
</li>
|
| 148 |
+
|
| 149 |
+
</ul>
|
| 150 |
+
<hr/>
|
| 151 |
+
</div>
|
| 152 |
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
| 153 |
+
<div itemprop="articleBody">
|
| 154 |
+
|
| 155 |
+
<section id="customization-guide">
|
| 156 |
+
<h1><span class="section-number">1. </span>Customization Guide<a class="headerlink" href="#customization-guide" title="Permalink to this headline"></a></h1>
|
| 157 |
+
<p>Nsight Compute Customization Guide.</p>
|
| 158 |
+
<p>User manual on customizing NVIDIA Nsight Compute tools or integrating them with custom workflows. Information on writing section files, rules for automatic result analysis and scripting access to report files.</p>
|
| 159 |
+
<section id="introduction">
|
| 160 |
+
<h2><span class="section-number">1.1. </span>Introduction<a class="headerlink" href="#introduction" title="Permalink to this headline"></a></h2>
|
| 161 |
+
<p>The goal of NVIDIA Nsight Compute is to design a profiling tool that can be easily extended and customized by expert users. While we provide useful defaults, this allows adapting the reports to a specific use case or to design new ways to investigate collected data. All the following is data driven and does not require the tools to be recompiled.</p>
|
| 162 |
+
<p>While working with section files or rules files it is recommended to open the <em>Metric Selection</em> tool window from the <em>Profile</em> menu item. This tool window lists all sections and rules that were loaded. Rules are grouped as children of their associated section or grouped in the <em>[Independent Rules]</em> entry. For files that failed to load, the table shows the error message. Use the <em>Reload</em> button to reload rule files from disk.</p>
|
| 163 |
+
</section>
|
| 164 |
+
<section id="metric-sections">
|
| 165 |
+
<span id="sections"></span><h2><span class="section-number">1.2. </span>Metric Sections<a class="headerlink" href="#metric-sections" title="Permalink to this headline"></a></h2>
|
| 166 |
+
<p>The <a class="reference external" href="../NsightCompute/index.html#profiler-report-details-page">Details</a> page consists of <a class="reference external" href="../ProfilingGuide/index.html#sets-and-sections">sections</a> that focus on a specific part of the kernel analysis each. Every section is defined by a corresponding <a class="reference external" href="index.html#section-files">section file</a> that specifies the data to be collected as well as the visualization used in the UI or CLI output for this data. Simply modify a deployed section file to add or modify what is collected.</p>
|
| 167 |
+
<section id="section-files">
|
| 168 |
+
<h3><span class="section-number">1.2.1. </span>Section Files<a class="headerlink" href="#section-files" title="Permalink to this headline"></a></h3>
|
| 169 |
+
<p>The section files delivered with the tool are stored in the <code class="docutils literal notranslate"><span class="pre">sections</span></code> sub-folder of the NVIDIA Nsight Compute install directory. Each section is defined in a separate file with the <code class="docutils literal notranslate"><span class="pre">.section</span></code> file extension. At runtime, the installed stock sections (and rules) are deployed to a user-writable directory. This can be disabled with an <a class="reference external" href="../NsightComputeCli/index.html#environment-variables">environment variable</a>. Section files from the deployment directory are loaded automatically at the time the UI connects to a target application or the command line profiler is launched. This way, any changes to section files become immediately available in the next profile run.</p>
|
| 170 |
+
<p>A section file is a text representation of a <em>Google Protocol Buffer</em> message. The full definition of all available fields of a section message is given in <a class="reference external" href="index.html#section-definition">Section Definition</a>. In short, each section consists of a unique <em>Identifier</em> (no spaces allowed), a <em>Display Name</em>, an optional <em>Order</em> value (for sorting the sections in the <a class="reference external" href="../NsightCompute/index.html#profiler-report-details-page">Details page</a>), an optional <em>Description</em> providing guidance to the user, an optional header table, an optional list of metrics to be collected but not displayed, optional bodies with additional UI elements, and other elements. See <code class="docutils literal notranslate"><span class="pre">ProfilerSection.proto</span></code> for the exact list of available elements. A small example of a very simple section is:</p>
|
| 171 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>Identifier: "SampleSection"
|
| 172 |
+
DisplayName: "Sample Section"
|
| 173 |
+
Description: "This sample section shows information on active warps and cycles."
|
| 174 |
+
Header {
|
| 175 |
+
Metrics {
|
| 176 |
+
Label: "Active Warps"
|
| 177 |
+
Name: "smsp__active_warps_avg"
|
| 178 |
+
}
|
| 179 |
+
Metrics {
|
| 180 |
+
Label: "Active Cycles"
|
| 181 |
+
Name: "smsp__active_cycles_avg"
|
| 182 |
+
}
|
| 183 |
+
}
|
| 184 |
+
</pre></div>
|
| 185 |
+
</div>
|
| 186 |
+
<p>On data collection, this section will cause the two PerfWorks metrics <code class="docutils literal notranslate"><span class="pre">smsp__active_warps_avg</span></code> and <code class="docutils literal notranslate"><span class="pre">smsp__active_cycles_avg</span></code> to be collected.</p>
|
| 187 |
+
<figure class="align-default" id="id2">
|
| 188 |
+
<img alt="../_images/section-files.png" class="image" src="../_images/section-files.png" />
|
| 189 |
+
<figcaption>
|
| 190 |
+
<p><span class="caption-text">The section as shown on the Details page</span><a class="headerlink" href="#id2" title="Permalink to this image"></a></p>
|
| 191 |
+
</figcaption>
|
| 192 |
+
</figure>
|
| 193 |
+
<p>By default, when not available, metrics specified in section files will only generate a warning during data collection, and would then show up as “N/A” in the UI or CLI. This is in contrast to metrics requested via <code class="docutils literal notranslate"><span class="pre">--metrics</span></code> which would cause an error when not available. How to specify metrics as required for data collection is described in <a class="reference external" href="index.html#metric-options">Metric Options and Filters</a>.</p>
|
| 194 |
+
<p>More advanced elements can be used in the body of a section. See the <code class="docutils literal notranslate"><span class="pre">ProfilerSection.proto</span></code> file for which elements are available. The following example shows how to use these in a slightly more complex example. The usage of regexes is allowed in tables and charts in the section <em>Body</em> only and follows the format <code class="docutils literal notranslate"><span class="pre">regex:</span></code> followed by the actual regex to match <em>PerfWorks</em> metric names.</p>
|
| 195 |
+
<p>The supported list of metrics that can be used in sections can be queried using the <a class="reference external" href="../NsightComputeCli/index.html#command-line-options-profile">command line interface</a> with the <code class="docutils literal notranslate"><span class="pre">--query-metrics</span></code> option. Each of these metrics can be used in any section and will be automatically collected if they appear in any enabled section. Note that even if a metric is used in multiple sections, it will only be collected once. Look at all the shipped sections to see how they are implemented.</p>
|
| 196 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>Identifier: "SampleSection"
|
| 197 |
+
DisplayName: "Sample Section"
|
| 198 |
+
Description: "This sample section shows various metrics."
|
| 199 |
+
Header {
|
| 200 |
+
Metrics {
|
| 201 |
+
Label: "Active Warps"
|
| 202 |
+
Name: "smsp__active_warps_avg"
|
| 203 |
+
}
|
| 204 |
+
Metrics {
|
| 205 |
+
Label: "Active Cycles"
|
| 206 |
+
Name: "smsp__active_cycles_avg"
|
| 207 |
+
}
|
| 208 |
+
}
|
| 209 |
+
Body {
|
| 210 |
+
Items {
|
| 211 |
+
Table {
|
| 212 |
+
Label: "Example Table"
|
| 213 |
+
Rows: 2
|
| 214 |
+
Columns: 1
|
| 215 |
+
Metrics {
|
| 216 |
+
Label: "Avg. Issued Instructions Per Scheduler"
|
| 217 |
+
Name: "smsp__inst_issued_avg"
|
| 218 |
+
}
|
| 219 |
+
Metrics {
|
| 220 |
+
Label: "Avg. Executed Instructions Per Scheduler"
|
| 221 |
+
Name: "smsp__inst_executed_avg"
|
| 222 |
+
}
|
| 223 |
+
}
|
| 224 |
+
}
|
| 225 |
+
Items {
|
| 226 |
+
Table {
|
| 227 |
+
Label: "Metrics Table"
|
| 228 |
+
Columns: 2
|
| 229 |
+
Order: ColumnMajor
|
| 230 |
+
Metrics {
|
| 231 |
+
Name: "regex:.*__elapsed_cycles_sum"
|
| 232 |
+
}
|
| 233 |
+
}
|
| 234 |
+
}
|
| 235 |
+
Items {
|
| 236 |
+
BarChart {
|
| 237 |
+
Label: "Metrics Chart"
|
| 238 |
+
CategoryAxis {
|
| 239 |
+
Label: "Units"
|
| 240 |
+
}
|
| 241 |
+
ValueAxis {
|
| 242 |
+
Label: "Cycles"
|
| 243 |
+
}
|
| 244 |
+
Metrics {
|
| 245 |
+
Name: "regex:.*__elapsed_cycles_sum"
|
| 246 |
+
}
|
| 247 |
+
}
|
| 248 |
+
}
|
| 249 |
+
}
|
| 250 |
+
</pre></div>
|
| 251 |
+
</div>
|
| 252 |
+
<img alt="../_images/section-files-2.png" class="align-center" src="../_images/section-files-2.png" />
|
| 253 |
+
<p>The output of this section would look similar to this screenshot in the UI</p>
|
| 254 |
+
</section>
|
| 255 |
+
<section id="section-definition">
|
| 256 |
+
<h3><span class="section-number">1.2.2. </span>Section Definition<a class="headerlink" href="#section-definition" title="Permalink to this headline"></a></h3>
|
| 257 |
+
<p>Protocol buffer definitions are in the NVIDIA Nsight Compute installation directory under <code class="docutils literal notranslate"><span class="pre">extras/FileFormat</span></code>. To understand section files, start with the definitions and documentation in <code class="docutils literal notranslate"><span class="pre">ProfilerSection.proto</span></code>.</p>
|
| 258 |
+
<p>To see the list of available <em>PerfWorks</em> metrics for any device or chip, use the <code class="docutils literal notranslate"><span class="pre">--query-metrics</span></code> option of the <a class="reference external" href="../NsightComputeCli/index.html#command-line-options-profile">command line</a>.</p>
|
| 259 |
+
</section>
|
| 260 |
+
<section id="metric-options-and-filters">
|
| 261 |
+
<h3><span class="section-number">1.2.3. </span>Metric Options and Filters<a class="headerlink" href="#metric-options-and-filters" title="Permalink to this headline"></a></h3>
|
| 262 |
+
<p>Sections allow the user to specify alternative <em>options</em> for metrics that have a different metric name on different GPU architectures. Metric options use a min-arch/max-arch range <em>filter</em>, replacing the base metric with the first metric option for which the current GPU architecture matches the filter. While not strictly enforced, options for a base metric are expected to share the same meaning and subsequently unit, etc., with the base metric.</p>
|
| 263 |
+
<p>In addition to its options, the base metric can be filtered by the same criteria. This is useful for metrics that are only available for certain architectures or in limited collection scopes. See <code class="docutils literal notranslate"><span class="pre">ProfilerMetricOptions.proto</span></code> for which filter options are available.</p>
|
| 264 |
+
<p>In the below example, the metric <code class="docutils literal notranslate"><span class="pre">dram__cycles_elapsed.avg.per_second</span></code> is collected on SM 7.0 and SM 7.5-8.6, but not on any in between. It uses the same metric name on these architectures.</p>
|
| 265 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>Metrics {
|
| 266 |
+
Label: "DRAM Frequency"
|
| 267 |
+
Name: "dram__cycles_elapsed.avg.per_second"
|
| 268 |
+
Filter {
|
| 269 |
+
MaxArch: CC_70
|
| 270 |
+
}
|
| 271 |
+
Options {
|
| 272 |
+
Name: "dram__cycles_elapsed.avg.per_second"
|
| 273 |
+
Filter {
|
| 274 |
+
MinArch: CC_75
|
| 275 |
+
MaxArch: CC_86
|
| 276 |
+
}
|
| 277 |
+
}
|
| 278 |
+
}
|
| 279 |
+
</pre></div>
|
| 280 |
+
</div>
|
| 281 |
+
<p>In the next example, the metric in the section header is only collected for launch-based collection scopes (i.e. kernel- and application replay for CUDA kernels or CUDA Graph nodes), but not in range-based scopes.</p>
|
| 282 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>Header {
|
| 283 |
+
Metrics {
|
| 284 |
+
Label: "Theoretical Occupancy"
|
| 285 |
+
Name: "sm__maximum_warps_per_active_cycle_pct"
|
| 286 |
+
Filter {
|
| 287 |
+
CollectionFilter {
|
| 288 |
+
CollectionScopes: CollectionScope_Launch
|
| 289 |
+
}
|
| 290 |
+
}
|
| 291 |
+
}
|
| 292 |
+
}
|
| 293 |
+
</pre></div>
|
| 294 |
+
</div>
|
| 295 |
+
<p>Similarly, <code class="docutils literal notranslate"><span class="pre">CollectionFilter</span></code>s can be used to set the <code class="docutils literal notranslate"><span class="pre">Importance</span></code> of a metric, which specifies an expectation on its availability during data collection. <code class="docutils literal notranslate"><span class="pre">Required</span></code> metrics, for instance, are expected to be collectable and would generate an error in case they are not available, whereas <code class="docutils literal notranslate"><span class="pre">Optional</span></code> metrics would only generate a warning. Here is a minimal example, illustrating the functionality:</p>
|
| 296 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>Metrics {
|
| 297 |
+
Label: "Compute (SM) Throughput"
|
| 298 |
+
Name: "sm__throughput.avg.pct_of_peak_sustained_elapsed"
|
| 299 |
+
Filter {
|
| 300 |
+
CollectionFilter {
|
| 301 |
+
Importance: Required
|
| 302 |
+
}
|
| 303 |
+
}
|
| 304 |
+
}
|
| 305 |
+
</pre></div>
|
| 306 |
+
</div>
|
| 307 |
+
<p>Filters can be applied to an entire section instead of or in addition to being set for individual metrics. If both types of filters are specified, they are combined, such that <code class="docutils literal notranslate"><span class="pre">Metrics</span></code>-scope filters take precedence over section-scope filters.</p>
|
| 308 |
+
</section>
|
| 309 |
+
<section id="counter-domains">
|
| 310 |
+
<h3><span class="section-number">1.2.4. </span>Counter Domains<a class="headerlink" href="#counter-domains" title="Permalink to this headline"></a></h3>
|
| 311 |
+
<p>PM sampling metrics are composed of one or more raw counter dependencies internally.
|
| 312 |
+
Each counter is associated with a <a class="reference external" href="../ProfilingGuide/index.html#pm-sampling">counter domain</a>, which describes how and where in the hardware the counter is collected.
|
| 313 |
+
For metrics specified in section files, the automatic domain selection can be overwritten when needed to form more optimal PM sampling metric groups.</p>
|
| 314 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>Metrics {
|
| 315 |
+
Label: "Short Scoreboard"
|
| 316 |
+
Name: "pmsampling:smsp__warps_issue_stalled_short_scoreboard.avg"
|
| 317 |
+
Groups: "sampling_ws4"
|
| 318 |
+
CtrDomains: "gpu_sm_c"
|
| 319 |
+
}
|
| 320 |
+
</pre></div>
|
| 321 |
+
</div>
|
| 322 |
+
<p>Note that the <code class="docutils literal notranslate"><span class="pre">CtrDomains</span></code> field is currently only supported for the section <code class="docutils literal notranslate"><span class="pre">Metrics</span></code> field, but not for individual <a class="reference external" href="index.html#metric-options-and-filters">Options</a>.</p>
|
| 323 |
+
</section>
|
| 324 |
+
<section id="missing-sections">
|
| 325 |
+
<h3><span class="section-number">1.2.5. </span>Missing Sections<a class="headerlink" href="#missing-sections" title="Permalink to this headline"></a></h3>
|
| 326 |
+
<p>If new or updated section files are not used by NVIDIA Nsight Compute, it is most commonly one of two reasons:</p>
|
| 327 |
+
<p><strong>The file is not found:</strong> Section files must have the <code class="docutils literal notranslate"><span class="pre">.section</span></code> extension. They must also be on the section search path. The default search path is the <code class="docutils literal notranslate"><span class="pre">sections</span></code> directory within the installation directory. In NVIDIA Nsight Compute CLI, the search paths can be overwritten using the <code class="docutils literal notranslate"><span class="pre">--section-folder</span></code> and <code class="docutils literal notranslate"><span class="pre">--section-folder-recursive</span></code> options. In NVIDIA Nsight Compute, the search path can be configured in the <em>Profile</em> options.</p>
|
| 328 |
+
<p><strong>Syntax errors:</strong> If the file is found but has syntax errors, it will not be available for metric collection. However, error messages are reported for easier debugging. In NVIDIA Nsight Compute CLI, use the <code class="docutils literal notranslate"><span class="pre">--list-sections</span></code> option to get a list of error messages, if any. In NVIDIA Nsight Compute, error messages are reported in the <em>Metric Selection</em> tool window.</p>
|
| 329 |
+
</section>
|
| 330 |
+
<section id="derived-metrics">
|
| 331 |
+
<h3><span class="section-number">1.2.6. </span>Derived Metrics<a class="headerlink" href="#derived-metrics" title="Permalink to this headline"></a></h3>
|
| 332 |
+
<p>Derived Metrics allow you to define new metrics composed of constants or existing metrics directly in a section file. The new metrics are computed at collection time and added permanently to the profile result in the report. They can then subsequently be used for any tables, charts, rules, etc.</p>
|
| 333 |
+
<p>NVIDIA Nsight Compute currently supports the following syntax for defining derived metrics in section files:</p>
|
| 334 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>MetricDefinitions {
|
| 335 |
+
MetricDefinitions {
|
| 336 |
+
Name: "derived_metric_name"
|
| 337 |
+
Expression: "derived_metric_expr"
|
| 338 |
+
}
|
| 339 |
+
MetricDefinitions {
|
| 340 |
+
...
|
| 341 |
+
}
|
| 342 |
+
...
|
| 343 |
+
}
|
| 344 |
+
</pre></div>
|
| 345 |
+
</div>
|
| 346 |
+
<p>The actual metric expression is defined as follows:</p>
|
| 347 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>derived_metric_expr ::= operand operator operand
|
| 348 |
+
operator ::= + | - | * | /
|
| 349 |
+
operand ::= metric | constant
|
| 350 |
+
metric ::= (an existing metric name)
|
| 351 |
+
constant ::= double | uint64
|
| 352 |
+
double ::= (double-precision number of the form "N.(M)?", e.g. "5." or "0.3109")
|
| 353 |
+
uint64 ::= (64-bit unsigned integer number of the form "N", e.g. "2029")
|
| 354 |
+
</pre></div>
|
| 355 |
+
</div>
|
| 356 |
+
<p>Operators are defined as follows:</p>
|
| 357 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>For op in (+ | - | *): For each element in a metric it is applied to, the expression left-hand side op-combined with expression right-hand side.
|
| 358 |
+
For op in (/): For each element in a metric it is applied to, the expression left-hand side op-combined with expression right-hand side. If the right-hand side operand is of integer-type, and 0, the result is the left-hand side value.
|
| 359 |
+
</pre></div>
|
| 360 |
+
</div>
|
| 361 |
+
<p>Since metrics can contain regular values and/or <a class="reference external" href="../ProfilingGuide/index.html#metrics-structure">instanced values</a>, elements are combined as below. Constants are treated as metrics with only a regular value.</p>
|
| 362 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>1. Regular values are operator-combined.
|
| 363 |
+
a + b
|
| 364 |
+
|
| 365 |
+
2. If both metrics have no correlation ids, the first N values are operator-combined, where N is the minimum of the number of elements in both metrics.
|
| 366 |
+
a1 + b1
|
| 367 |
+
a2 + b2
|
| 368 |
+
a3
|
| 369 |
+
a4
|
| 370 |
+
|
| 371 |
+
3. Else if both metrics have correlation ids, the sets of correlation ids from both metrics are joined and then operator-combined as applicable.
|
| 372 |
+
a1 + b1
|
| 373 |
+
a2
|
| 374 |
+
b3
|
| 375 |
+
a4 + b4
|
| 376 |
+
b5
|
| 377 |
+
|
| 378 |
+
4. Else if only the left-hand side metric has correlation ids, the right-hand side regular metric value is operator-combined with every element of the left-hand side metric.
|
| 379 |
+
a1 + b
|
| 380 |
+
a2 + b
|
| 381 |
+
a3 + b
|
| 382 |
+
|
| 383 |
+
5. Else if only the right-hand side metric has correlation ids, the right-hand side element values are operator-combined with the regular metric value of the left-hand side metric.
|
| 384 |
+
a + b1 + b2 + b3
|
| 385 |
+
</pre></div>
|
| 386 |
+
</div>
|
| 387 |
+
<p>In all operations, the value kind of the left-hand side operand is used. If the right-hand side operand has a different value kind, it is converted. If the left-hand side operand is a string-kind, it is returned unchanged.</p>
|
| 388 |
+
<p>Examples for derived metrics are <code class="docutils literal notranslate"><span class="pre">derived__avg_thread_executed</span></code>, which provides a hint on the number of threads executed on average at each instruction, and <code class="docutils literal notranslate"><span class="pre">derived__uncoalesced_l2_transactions_global</span></code>, which indicates the ratio of actual L2 transactions vs. ideal L2 transactions at each applicable instruction.</p>
|
| 389 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>MetricDefinitions {
|
| 390 |
+
MetricDefinitions {
|
| 391 |
+
Name: "derived__avg_thread_executed"
|
| 392 |
+
Expression: "thread_inst_executed_true / inst_executed"
|
| 393 |
+
}
|
| 394 |
+
MetricDefinitions {
|
| 395 |
+
Name: "derived__uncoalesced_l2_transactions_global"
|
| 396 |
+
Expression: "memory_l2_transactions_global / memory_ideal_l2_transactions_global"
|
| 397 |
+
}
|
| 398 |
+
MetricDefinitions {
|
| 399 |
+
Name: "sm__sass_thread_inst_executed_op_ffma_pred_on_x2"
|
| 400 |
+
Expression: "sm__sass_thread_inst_executed_op_ffma_pred_on.sum.peak_sustained * 2"
|
| 401 |
+
}
|
| 402 |
+
}
|
| 403 |
+
</pre></div>
|
| 404 |
+
</div>
|
| 405 |
+
</section>
|
| 406 |
+
</section>
|
| 407 |
+
<section id="rule-system">
|
| 408 |
+
<h2><span class="section-number">1.3. </span>Rule System<a class="headerlink" href="#rule-system" title="Permalink to this headline"></a></h2>
|
| 409 |
+
<p>NVIDIA Nsight Compute features a new Python-based rule system. It is designed as the successor to the <em>Expert System</em> (un)guided analysis in NVIDIA Visual Profiler, but meant to be more flexible and more easily extensible to different use cases and APIs.</p>
|
| 410 |
+
<section id="writing-rules">
|
| 411 |
+
<h3><span class="section-number">1.3.1. </span>Writing Rules<a class="headerlink" href="#writing-rules" title="Permalink to this headline"></a></h3>
|
| 412 |
+
<p>To create a new rule, you need to create a new text file with the extension <code class="docutils literal notranslate"><span class="pre">.py</span></code> and place it at some location that is detectable by the tool (see Nsight Compute Integration on how to specify the search path for rules). At a minimum, the rule file must implement two functions, <code class="docutils literal notranslate"><span class="pre">get_identifier</span></code> and <code class="docutils literal notranslate"><span class="pre">apply</span></code>. See Rule File API for a description of all functions supported in rule files. See NvRules for details on the interface available in the rule’s <code class="docutils literal notranslate"><span class="pre">apply</span></code> function.</p>
|
| 413 |
+
</section>
|
| 414 |
+
<section id="integration">
|
| 415 |
+
<h3><span class="section-number">1.3.2. </span>Integration<a class="headerlink" href="#integration" title="Permalink to this headline"></a></h3>
|
| 416 |
+
<p>The rule system is integrated into NVIDIA Nsight Compute as part of the profile report view. When you profile a kernel, available rules will be shown in the report’s <em>Details</em> page. You can either select to apply all available rules at once by clicking <em>Apply Rules</em> at the top of the page, or apply rules individually. Once applied, the rule results will be added to the current report. By default, all rules are applied automatically.</p>
|
| 417 |
+
<img alt="../_images/integration-1.png" class="image" src="../_images/integration-1.png" />
|
| 418 |
+
<p>Section with a single Bottleneck rule available.</p>
|
| 419 |
+
<img alt="../_images/integration-2.png" class="align-center" src="../_images/integration-2.png" />
|
| 420 |
+
<p>The same section with the Bottleneck rule applied. It added a single message to the report.</p>
|
| 421 |
+
<img alt="../_images/integration-3.png" class="align-center" src="../_images/integration-3.png" />
|
| 422 |
+
<p>The section Rule has two associated rules, Basic Template Rule and Advanced Template Rule. The latter is not yet applied. Rules can add various UI elements, including warning and error messages as well as charts and tables.</p>
|
| 423 |
+
<img alt="../_images/integration-4.png" class="align-center" src="../_images/integration-4.png" />
|
| 424 |
+
<p>Some rules are applied independently from sections. They are shown under Independent Rules.</p>
|
| 425 |
+
</section>
|
| 426 |
+
<section id="rule-system-architecture">
|
| 427 |
+
<h3><span class="section-number">1.3.3. </span>Rule System Architecture<a class="headerlink" href="#rule-system-architecture" title="Permalink to this headline"></a></h3>
|
| 428 |
+
<p>The rule system consists of the Python interpreter, the <em>NvRules C++ interface</em>, the <em>NvRules Python interface</em> (NvRules.py) and a set of rule files. Each rule file is valid Python code that imports the NvRules.py module, adheres to certain standards defined by the <a class="reference external" href="index.html#rule-file-api">Rule File API</a> and is called to from the tool.</p>
|
| 429 |
+
<p>When applying a rule, a handle to the rule <em>Context</em> is provided to its apply function. This context captures most of the functionality that is available to rules as part of the <a class="reference external" href="index.html#nvrules-api">NvRules API</a>. In addition, some functionality is provided directly by the NvRules module, e.g. for global error reporting. Finally, since rules are valid Python code, they can use regular libraries and language functionality that ship with Python as well.</p>
|
| 430 |
+
<p>From the rule <em>Context</em>, multiple further objects can be accessed, e.g. the <em>Frontend</em>, <em>Ranges</em> and <em>Actions</em>. It should be noted that those are only interfaces, i.e. the actual implementation can vary from tool to tool that decides to implement this functionality.</p>
|
| 431 |
+
<p>Naming of these interfaces is chosen to be as API-independent as possible, i.e. not to imply CUDA-specific semantics. However, since many compute and graphics APIs map to similar concepts, it can easily be mapped to CUDA terminology, too. A <em>Range</em> refers to a CUDA stream, an Action refers to a single CUDA kernel instance. Each action references several <em>Metrics</em> that have been collected during profiling (e.g. <code class="docutils literal notranslate"><span class="pre">instructions</span> <span class="pre">executed</span></code>) or are statically available (e.g. the launch configuration). <em>Metrics</em> are accessed via their names from the <em>Action</em>.</p>
|
| 432 |
+
<p>Each CUDA stream can contain any number of kernel (or other device activity) instances and so each <em>Range</em> can reference one or more <em>Actions</em>. However, currently only a single <em>Action</em> per <em>Range</em> will be available, as only a single CUDA kernel can be profiled at once.</p>
|
| 433 |
+
<p>The <em>Frontend</em> provides an interface to manipulate the tool UI by adding messages, graphical elements such as line and bar charts or tables, as well as speedup estimations, focus metrics and source markers. The most common use case is for a rule to show at least one message, stating the result to the user, as illustrated in <code class="docutils literal notranslate"><span class="pre">extras/RuleTemplates/BasicRuleTemplate.py</span></code> This could be as simple as “No issues have been detected,” or contain direct hints as to how the user could improve the code, e.g. “Memory is more heavily utilized than Compute. Consider whether it is possible for the kernel to do more compute work.” For more advanced use cases, such as adding speedup estimates, key performance indicators (a.k.a. focus metrics) or source markers to annotate individual lines of code to your rule, see the templates in <code class="docutils literal notranslate"><span class="pre">extras/RuleTemplates</span></code>.</p>
|
| 434 |
+
</section>
|
| 435 |
+
<section id="nvrules-api">
|
| 436 |
+
<h3><span class="section-number">1.3.4. </span>NvRules API<a class="headerlink" href="#nvrules-api" title="Permalink to this headline"></a></h3>
|
| 437 |
+
<p>The <em>NvRules API</em> is defined as a C/C++ style interface, which is converted to the NvRules.py Python module to be consumable by the rules. As such, C++ class interfaces are directly converted to Python classes und functions. See the <a class="reference external" href="../NvRulesAPI/index.html#abstract">NvRules API</a> documentation for the classes and functions available in this interface.</p>
|
| 438 |
+
</section>
|
| 439 |
+
<section id="rule-file-api">
|
| 440 |
+
<h3><span class="section-number">1.3.5. </span>Rule File API<a class="headerlink" href="#rule-file-api" title="Permalink to this headline"></a></h3>
|
| 441 |
+
<p>The <em>Rule File API</em> is the implicit contract between the rule Python file and the tool. It defines which functions (syntactically and semantically) the Python file must provide to properly work as a rule.</p>
|
| 442 |
+
<p><strong>Mandatory Functions</strong></p>
|
| 443 |
+
<ul class="simple">
|
| 444 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">get_identifier()</span></code>: Return the unique rule identifier string.</p></li>
|
| 445 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">apply(handle)</span></code>: Apply this rule to the rule context provided by handle. Use <code class="docutils literal notranslate"><span class="pre">NvRules.get_context(handle)</span></code> to obtain the <em>Context</em> interface from handle.</p></li>
|
| 446 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">get_name()</span></code>: Return the user-consumable display name of this rule.</p></li>
|
| 447 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">get_description()</span></code>: Return the user-consumable description of this rule.</p></li>
|
| 448 |
+
</ul>
|
| 449 |
+
<p><strong>Optional Functions</strong></p>
|
| 450 |
+
<ul>
|
| 451 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">get_section_identifier()</span></code>: Return the unique section identifier that maps this rule to a section. Section-mapped rules will only be available if the corresponding section was collected. They implicitly assume that the metrics requested by the section are collected when the rule is applied.</p></li>
|
| 452 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">evaluate(handle)</span></code>:</p>
|
| 453 |
+
<p>Declare required metrics and rules that are necessary for this rule to be applied. Use <code class="docutils literal notranslate"><span class="pre">NvRules.require_metrics(handle,</span> <span class="pre">[...])</span></code> to declare the list of metrics that must be collected prior to applying this rule.</p>
|
| 454 |
+
<p>Use e.g. <code class="docutils literal notranslate"><span class="pre">NvRules.require_rules(handle,</span> <span class="pre">[...])</span></code> to declare the list of other rules that must be available before applying this rule. Those are the only rules that can be safely proposed by the <em>Controller</em> interface.</p>
|
| 455 |
+
</li>
|
| 456 |
+
</ul>
|
| 457 |
+
</section>
|
| 458 |
+
<section id="rule-examples">
|
| 459 |
+
<h3><span class="section-number">1.3.6. </span>Rule Examples<a class="headerlink" href="#rule-examples" title="Permalink to this headline"></a></h3>
|
| 460 |
+
<p>The following example rule determines on which major GPU architecture a kernel was running.</p>
|
| 461 |
+
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">NvRules</span>
|
| 462 |
+
|
| 463 |
+
<span class="k">def</span> <span class="nf">get_identifier</span><span class="p">():</span>
|
| 464 |
+
<span class="k">return</span> <span class="s2">"GpuArch"</span>
|
| 465 |
+
|
| 466 |
+
<span class="k">def</span> <span class="nf">apply</span><span class="p">(</span><span class="n">handle</span><span class="p">):</span>
|
| 467 |
+
<span class="n">ctx</span> <span class="o">=</span> <span class="n">NvRules</span><span class="o">.</span><span class="n">get_context</span><span class="p">(</span><span class="n">handle</span><span class="p">)</span>
|
| 468 |
+
<span class="n">action</span> <span class="o">=</span> <span class="n">ctx</span><span class="o">.</span><span class="n">range_by_idx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span><span class="o">.</span><span class="n">action_by_idx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
|
| 469 |
+
<span class="n">ccMajor</span> <span class="o">=</span> <span class="n">action</span><span class="o">.</span><span class="n">metric_by_name</span><span class="p">(</span><span class="s2">"device__attribute_compute_capability_major"</span><span class="p">)</span><span class="o">.</span><span class="n">as_uint64</span><span class="p">()</span>
|
| 470 |
+
<span class="n">ctx</span><span class="o">.</span><span class="n">frontend</span><span class="p">()</span><span class="o">.</span><span class="n">message</span><span class="p">(</span><span class="s2">"Running on major compute capability "</span> <span class="o">+</span> <span class="nb">str</span><span class="p">(</span><span class="n">ccMajor</span><span class="p">))</span>
|
| 471 |
+
</pre></div>
|
| 472 |
+
</div>
|
| 473 |
+
</section>
|
| 474 |
+
</section>
|
| 475 |
+
<section id="python-report-interface">
|
| 476 |
+
<h2><span class="section-number">1.4. </span>Python Report Interface<a class="headerlink" href="#python-report-interface" title="Permalink to this headline"></a></h2>
|
| 477 |
+
<p>NVIDIA Nsight Compute features a Python-based interface to interact with exported report files.</p>
|
| 478 |
+
<p>The module is called <code class="docutils literal notranslate"><span class="pre">ncu_report</span></code> and works on any Python version from 3.4 <a class="footnote-reference brackets" href="#fn1" id="id1">1</a>. It can be found in the <code class="docutils literal notranslate"><span class="pre">extras/python</span></code> directory of your NVIDIA Nsight Compute package.</p>
|
| 479 |
+
<p>In order to use the Python module, you need a report file generated by NVIDIA Nsight Compute. You can obtain such a file by saving it from the graphical interface or by using the <code class="docutils literal notranslate"><span class="pre">--export</span></code> flag of the command line tool.</p>
|
| 480 |
+
<p>The types and functions in the <code class="docutils literal notranslate"><span class="pre">ncu_report</span></code> module are a subset of the ones available in the NvRules API. The documentation in this section serves as a tutorial. For a more formal description of the exposed API, please refer to the the <a class="reference external" href="../NvRulesAPI/index.html#abstract">NvRules API</a> documentation.</p>
|
| 481 |
+
<dl class="footnote brackets">
|
| 482 |
+
<dt class="label" id="fn1"><span class="brackets"><a class="fn-backref" href="#id1">1</a></span></dt>
|
| 483 |
+
<dd><p>On Linux machines you will also need a GNU-compatible libc and <code class="docutils literal notranslate"><span class="pre">libgcc_s.so</span></code>.</p>
|
| 484 |
+
</dd>
|
| 485 |
+
</dl>
|
| 486 |
+
<section id="basic-usage">
|
| 487 |
+
<h3><span class="section-number">1.4.1. </span>Basic Usage<a class="headerlink" href="#basic-usage" title="Permalink to this headline"></a></h3>
|
| 488 |
+
<p>In order to be able to import <code class="docutils literal notranslate"><span class="pre">ncu_report</span></code> you will either have to navigate to the <code class="docutils literal notranslate"><span class="pre">extras/python</span></code> directory, or add its absolute path to the <code class="docutils literal notranslate"><span class="pre">PYTHONPATH</span></code> environment variable. Then, the module can be imported like any Python module:</p>
|
| 489 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>>>> import ncu_report
|
| 490 |
+
</pre></div>
|
| 491 |
+
</div>
|
| 492 |
+
<p><strong>Importing a report</strong></p>
|
| 493 |
+
<p>Once the module is imported, you can load a report file by calling the <code class="docutils literal notranslate"><span class="pre">load_report</span></code> function with the path to the file. This function returns an object of type <code class="docutils literal notranslate"><span class="pre">IContext</span></code> which holds all the information concerning that report.</p>
|
| 494 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>>>> my_context = ncu_report.load_report("my_report.ncu-rep")
|
| 495 |
+
</pre></div>
|
| 496 |
+
</div>
|
| 497 |
+
<p><strong>Querying ranges</strong></p>
|
| 498 |
+
<p>When working with the Python module, kernel profiling results are grouped into <em>ranges</em> which are represented by <code class="docutils literal notranslate"><span class="pre">IRange</span></code> objects. You can inspect the number of <em>ranges</em> contained in the loaded report by calling the <code class="docutils literal notranslate"><span class="pre">num_ranges()</span></code> member function of an <code class="docutils literal notranslate"><span class="pre">IContext</span></code> object and retrieve a <em>range</em> by its index using <code class="docutils literal notranslate"><span class="pre">range_by_idx(index)</span></code>.</p>
|
| 499 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>>>> my_context.num_ranges()
|
| 500 |
+
1
|
| 501 |
+
>>> my_range = my_context.range_by_idx(0)
|
| 502 |
+
</pre></div>
|
| 503 |
+
</div>
|
| 504 |
+
<p><strong>Querying actions</strong></p>
|
| 505 |
+
<p>Inside a <em>range</em>, kernel profiling results are called <em>actions</em>. You can query the number of <em>actions</em> contained in a given <em>range</em> by using the <code class="docutils literal notranslate"><span class="pre">num_actions</span></code> method of an <code class="docutils literal notranslate"><span class="pre">IRange</span></code> object.</p>
|
| 506 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>>>> my_range.num_actions()
|
| 507 |
+
2
|
| 508 |
+
</pre></div>
|
| 509 |
+
</div>
|
| 510 |
+
<p>In the same way <em>ranges</em> can be obtained from an <code class="docutils literal notranslate"><span class="pre">IContext</span></code> object by using the <code class="docutils literal notranslate"><span class="pre">range_by_idx(index)</span></code> method, individual <em>actions</em> can be obtained from <code class="docutils literal notranslate"><span class="pre">IRange</span></code> objects by using the <code class="docutils literal notranslate"><span class="pre">action_by_idx(index)</span></code> method. The resulting <em>actions</em> are represented by the <code class="docutils literal notranslate"><span class="pre">IAction</span></code> class.</p>
|
| 511 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>>>> my_action = my_range.action_by_idx(0)
|
| 512 |
+
</pre></div>
|
| 513 |
+
</div>
|
| 514 |
+
<p>As mentioned previously, an <em>action</em> represents a single kernel profiling result. To query the kernel’s name you can use the <code class="docutils literal notranslate"><span class="pre">name()</span></code> member function of the <code class="docutils literal notranslate"><span class="pre">IAction</span></code> class.</p>
|
| 515 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>>>> my_action.name()
|
| 516 |
+
MyKernel
|
| 517 |
+
</pre></div>
|
| 518 |
+
</div>
|
| 519 |
+
<p><strong>Querying metrics</strong></p>
|
| 520 |
+
<p>To get a tuple of all metric names contained within an <em>action</em> you can use the <code class="docutils literal notranslate"><span class="pre">metric_names()</span></code> method. It is meant to be combined with the <code class="docutils literal notranslate"><span class="pre">metric_by_name()</span></code> method which returns an <code class="docutils literal notranslate"><span class="pre">IMetric</span></code> object. However, for the same task you may also use the <code class="docutils literal notranslate"><span class="pre">[]</span></code> operator, as explained in the <a class="reference external" href="index.html#python-report-interface-high-level">High-Level Interface</a> section below.</p>
|
| 521 |
+
<p>The metric names displayed here are the same as the ones you can use with the <code class="docutils literal notranslate"><span class="pre">--metrics</span></code> flag of NVIDIA Nsight Compute. Once you have extracted a <em>metric</em> from an <em>action</em>, you can obtain its value by using one of the following three methods:</p>
|
| 522 |
+
<ul class="simple">
|
| 523 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">as_string()</span></code> to obtain its value as a Python <code class="docutils literal notranslate"><span class="pre">str</span></code></p></li>
|
| 524 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">as_uint64()</span></code> to obtain its value as a Python <code class="docutils literal notranslate"><span class="pre">int</span></code></p></li>
|
| 525 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">as_double()</span></code> to obtain its value as a Python <code class="docutils literal notranslate"><span class="pre">float</span></code></p></li>
|
| 526 |
+
</ul>
|
| 527 |
+
<p>For example, to print the display name of the GPU on which the kernel was profiled you can query the <code class="docutils literal notranslate"><span class="pre">device__attribute_display_name</span></code> metric.</p>
|
| 528 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>>>> display_name_metric = my_action.metric_by_name('device__attribute_display_name')
|
| 529 |
+
>>> display_name_metric.as_string()
|
| 530 |
+
'NVIDIA GeForce RTX 3060 Ti'
|
| 531 |
+
</pre></div>
|
| 532 |
+
</div>
|
| 533 |
+
<p>Note that accessing a metric with the wrong type can lead to unexpected (conversion) results.</p>
|
| 534 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>>>> display_name_metric.as_double()
|
| 535 |
+
0.0
|
| 536 |
+
</pre></div>
|
| 537 |
+
</div>
|
| 538 |
+
<p>Therefore, it is advisable to directly use the <a class="reference external" href="index.html#python-report-interface-high-level">High-Level</a> function <code class="docutils literal notranslate"><span class="pre">value()</span></code>, as explained below.</p>
|
| 539 |
+
</section>
|
| 540 |
+
<section id="high-level-interface">
|
| 541 |
+
<h3><span class="section-number">1.4.2. </span>High-Level Interface<a class="headerlink" href="#high-level-interface" title="Permalink to this headline"></a></h3>
|
| 542 |
+
<p>On top of the low-level <a class="reference external" href="../NvRulesAPI/index.html#abstract">NvRules API</a> the Python Report Interface also implements part of the <a class="reference external" href="https://docs.python.org/3/reference/datamodel.html">Python object model</a>. By implementing special methods, the Python Report Interface’s exposed classes can be used with built-in Python mechanisms such as iteration, string formatting and length querying.</p>
|
| 543 |
+
<p>This allows you to access <em>metrics</em> objects via the <code class="docutils literal notranslate"><span class="pre">self[key]</span></code> instance method of the <code class="docutils literal notranslate"><span class="pre">IAction</span></code> class:</p>
|
| 544 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>>>> display_name_metric = my_action["device__attribute_display_name"]
|
| 545 |
+
</pre></div>
|
| 546 |
+
</div>
|
| 547 |
+
<p>There is also a convenience method <code class="docutils literal notranslate"><span class="pre">IMetric.value()</span></code> which allows you to query the value of a <em>metric</em> object without knowledge of its type:</p>
|
| 548 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>>>> display_name_metric.value()
|
| 549 |
+
'NVIDIA GeForce RTX 3060 Ti'
|
| 550 |
+
</pre></div>
|
| 551 |
+
</div>
|
| 552 |
+
<p>All the available methods of a class, as well as their associated Python docstrings, can be looked up interactively via</p>
|
| 553 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>>>> help(ncu_report.IMetric)
|
| 554 |
+
</pre></div>
|
| 555 |
+
</div>
|
| 556 |
+
<p>or similarly for other classes and methods. In your code, you can access the docstrings via the <code class="docutils literal notranslate"><span class="pre">__doc__</span></code> attribute, i.e. <code class="docutils literal notranslate"><span class="pre">ncu_report.IMetric.value.__doc__</span></code>.</p>
|
| 557 |
+
</section>
|
| 558 |
+
<section id="metric-attributes">
|
| 559 |
+
<h3><span class="section-number">1.4.3. </span>Metric attributes<a class="headerlink" href="#metric-attributes" title="Permalink to this headline"></a></h3>
|
| 560 |
+
<p>Apart from the possibility to query the <code class="docutils literal notranslate"><span class="pre">name()</span></code> and <code class="docutils literal notranslate"><span class="pre">value()</span></code> of an <code class="docutils literal notranslate"><span class="pre">IMetric</span></code> object, you can also query the following additional metric attributes:</p>
|
| 561 |
+
<ul class="simple">
|
| 562 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">metric_type()</span></code></p></li>
|
| 563 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">metric_subtype()</span></code></p></li>
|
| 564 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">rollup_operation()</span></code></p></li>
|
| 565 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">unit()</span></code></p></li>
|
| 566 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">description()</span></code></p></li>
|
| 567 |
+
</ul>
|
| 568 |
+
<p>The first method <code class="docutils literal notranslate"><span class="pre">metric_type()</span></code> returns one out of three <em>enum</em> values (<code class="docutils literal notranslate"><span class="pre">IMetric.MetricType_COUNTER</span></code>, <code class="docutils literal notranslate"><span class="pre">IMetric.MetricType_RATIO</span></code>, <code class="docutils literal notranslate"><span class="pre">IMetric.MetricType_THROUGHPUT</span></code>) if the metric is a hardware metric, or <code class="docutils literal notranslate"><span class="pre">IMetric.MetricType_OTHER</span></code> otherwise (e.g. for launch or device attributes).</p>
|
| 569 |
+
<p>The method <code class="docutils literal notranslate"><span class="pre">metric_subtype()</span></code> returns an <em>enum</em> value representing the subtype of a metric (e.g. <code class="docutils literal notranslate"><span class="pre">IMetric.MetricSubtype_PEAK_SUSTAINED</span></code>, <code class="docutils literal notranslate"><span class="pre">IMetric.MetricSubtype_PER_CYCLE_ACTIVE</span></code>). In case a metric does not have a subtype, <code class="docutils literal notranslate"><span class="pre">None</span></code> is returned. All available values (without the necessary <code class="docutils literal notranslate"><span class="pre">IMetric.MetricSubtype_</span></code> prefix) may be found in the <a class="reference external" href="../NvRulesAPI/index.html#abstract">NvRules API</a> documentation, or may be looked up interactively by executing <code class="docutils literal notranslate"><span class="pre">help(ncu_report.IMetric)</span></code>.</p>
|
| 570 |
+
<p><code class="docutils literal notranslate"><span class="pre">IMetric.rollup_operation()</span></code> returns the operation which is used to accumulate different values of the same <em>metric</em> and can be one of <code class="docutils literal notranslate"><span class="pre">IMetric.RollupOperation_AVG</span></code>, <code class="docutils literal notranslate"><span class="pre">IMetric.RollupOperation_MAX</span></code>, <code class="docutils literal notranslate"><span class="pre">IMetric.RollupOperation_MIN</span></code> or <code class="docutils literal notranslate"><span class="pre">IMetric.RollupOperation_SUM</span></code> for averaging, maximum, minimum or summation, respectively. If the <em>metric</em> in question does not specify a rollup operation <code class="docutils literal notranslate"><span class="pre">None</span></code> will be returned.</p>
|
| 571 |
+
<p>Lastly, <code class="docutils literal notranslate"><span class="pre">unit()</span></code> and <code class="docutils literal notranslate"><span class="pre">description()</span></code> return a (possibly empty) string of the metric’s <em>unit</em> and a short textual <em>description</em> for hardware metrics, respectively.</p>
|
| 572 |
+
<p>The above methods can be combined to filter through all <em>metrics</em> of a report, given certain criteria:</p>
|
| 573 |
+
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="k">for</span> <span class="n">metric</span> <span class="ow">in</span> <span class="n">metrics</span><span class="p">:</span>
|
| 574 |
+
<span class="k">if</span> <span class="n">metric</span><span class="o">.</span><span class="n">metric_type</span><span class="p">()</span> <span class="o">==</span> <span class="n">IMetric</span><span class="o">.</span><span class="n">MetricType_COUNTER</span> <span class="ow">and</span> \
|
| 575 |
+
<span class="n">metric</span><span class="o">.</span><span class="n">metric_subtype</span><span class="p">()</span> <span class="o">==</span> <span class="n">IMetric</span><span class="o">.</span><span class="n">MetricSubtype_PER_SECOND</span> <span class="ow">and</span> \
|
| 576 |
+
<span class="n">metric</span><span class="o">.</span><span class="n">rollup_operation</span><span class="p">()</span> <span class="o">==</span> <span class="n">IMetric</span><span class="o">.</span><span class="n">RollupOperation_AVG</span><span class="p">:</span>
|
| 577 |
+
<span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">"</span><span class="si">{</span><span class="n">metric</span><span class="o">.</span><span class="n">name</span><span class="p">()</span><span class="si">}</span><span class="s2">: </span><span class="si">{</span><span class="n">metric</span><span class="o">.</span><span class="n">value</span><span class="p">()</span><span class="si">}</span><span class="s2"> </span><span class="si">{</span><span class="n">metric</span><span class="o">.</span><span class="n">unit</span><span class="p">()</span><span class="si">}</span><span class="s2">"</span><span class="p">)</span>
|
| 578 |
+
</pre></div>
|
| 579 |
+
</div>
|
| 580 |
+
</section>
|
| 581 |
+
<section id="nvtx-support">
|
| 582 |
+
<h3><span class="section-number">1.4.4. </span>NVTX Support<a class="headerlink" href="#nvtx-support" title="Permalink to this headline"></a></h3>
|
| 583 |
+
<p>The <code class="docutils literal notranslate"><span class="pre">ncu_report</span></code> has support for the NVIDIA Tools Extension (NVTX). This comes through the <code class="docutils literal notranslate"><span class="pre">INvtxState</span></code> object which represents the NVTX state of a profiled kernel.</p>
|
| 584 |
+
<p>An <code class="docutils literal notranslate"><span class="pre">INvtxState</span></code> object can be obtained from an action by using its <code class="docutils literal notranslate"><span class="pre">nvtx_state()</span></code> method. It exposes the <code class="docutils literal notranslate"><span class="pre">domains()</span></code> method which returns a tuple of integers representing the domains this kernel has state in. These integers can be used with the <code class="docutils literal notranslate"><span class="pre">domain_by_id(id)</span></code> method to get an <code class="docutils literal notranslate"><span class="pre">INvtxDomainInfo</span></code> object which represents the state of a domain.</p>
|
| 585 |
+
<p>The <code class="docutils literal notranslate"><span class="pre">INvtxDomainInfo</span></code> can be used to obtain a tuple of <em>Push-Pop</em>, or <em>Start-End</em> ranges using the <code class="docutils literal notranslate"><span class="pre">push_pop_ranges()</span></code> and <code class="docutils literal notranslate"><span class="pre">start_end_ranges()</span></code> methods.</p>
|
| 586 |
+
<p>There is also a <code class="docutils literal notranslate"><span class="pre">actions_by_nvtx</span></code> member function in the <code class="docutils literal notranslate"><span class="pre">IRange</span></code> class which allows you to get a tuple of actions matching the NVTX state described in its parameter.</p>
|
| 587 |
+
<p>The parameters for the <code class="docutils literal notranslate"><span class="pre">actions_by_nvtx</span></code> function are two lists of strings representing the state for which we want to query the actions. The first parameter describes the NVTX states to include while the second one describes the NVTX states to exclude. These strings are in the same format as the ones used with the <code class="docutils literal notranslate"><span class="pre">--nvtx-include</span></code> and <code class="docutils literal notranslate"><span class="pre">--nvtx-exclude</span></code> options.</p>
|
| 588 |
+
</section>
|
| 589 |
+
<section id="sample-script">
|
| 590 |
+
<h3><span class="section-number">1.4.5. </span>Sample Script<a class="headerlink" href="#sample-script" title="Permalink to this headline"></a></h3>
|
| 591 |
+
<p><strong>NVTX Push-Pop range filtering</strong></p>
|
| 592 |
+
<p>This is a sample script which loads a report and prints the names of all the profiled kernels which were wrapped inside <code class="docutils literal notranslate"><span class="pre">BottomRange</span></code> and <code class="docutils literal notranslate"><span class="pre">TopRange</span></code><em>Push-Pop ranges</em> of the default NVTX domain.</p>
|
| 593 |
+
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="ch">#!/usr/bin/env python3</span>
|
| 594 |
+
|
| 595 |
+
<span class="kn">import</span> <span class="nn">sys</span>
|
| 596 |
+
|
| 597 |
+
<span class="kn">import</span> <span class="nn">ncu_report</span>
|
| 598 |
+
|
| 599 |
+
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">)</span> <span class="o">!=</span> <span class="mi">2</span><span class="p">:</span>
|
| 600 |
+
<span class="nb">print</span><span class="p">(</span><span class="s2">"usage: </span><span class="si">{}</span><span class="s2"> report_file"</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">[</span><span class="mi">0</span><span class="p">]),</span> <span class="n">file</span><span class="o">=</span><span class="n">sys</span><span class="o">.</span><span class="n">stderr</span><span class="p">)</span>
|
| 601 |
+
<span class="n">sys</span><span class="o">.</span><span class="n">exit</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
|
| 602 |
+
|
| 603 |
+
<span class="n">report</span> <span class="o">=</span> <span class="n">ncu_report</span><span class="o">.</span><span class="n">load_report</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span>
|
| 604 |
+
|
| 605 |
+
<span class="k">for</span> <span class="n">range_idx</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="n">report</span><span class="o">.</span><span class="n">num_ranges</span><span class="p">()):</span>
|
| 606 |
+
<span class="n">current_range</span> <span class="o">=</span> <span class="n">report</span><span class="o">.</span><span class="n">range_by_idx</span><span class="p">(</span><span class="n">range_idx</span><span class="p">)</span>
|
| 607 |
+
<span class="k">for</span> <span class="n">action_idx</span> <span class="ow">in</span> <span class="n">current_range</span><span class="o">.</span><span class="n">actions_by_nvtx</span><span class="p">([</span><span class="s2">"BottomRange/*/TopRange"</span><span class="p">],</span> <span class="p">[]):</span>
|
| 608 |
+
<span class="n">action</span> <span class="o">=</span> <span class="n">current_range</span><span class="o">.</span><span class="n">action_by_idx</span><span class="p">(</span><span class="n">action_idx</span><span class="p">)</span>
|
| 609 |
+
<span class="nb">print</span><span class="p">(</span><span class="n">action</span><span class="o">.</span><span class="n">name</span><span class="p">())</span>
|
| 610 |
+
</pre></div>
|
| 611 |
+
</div>
|
| 612 |
+
</section>
|
| 613 |
+
</section>
|
| 614 |
+
<section id="source-counters">
|
| 615 |
+
<h2><span class="section-number">1.5. </span>Source Counters<a class="headerlink" href="#source-counters" title="Permalink to this headline"></a></h2>
|
| 616 |
+
<p>The <em>Source</em> page provides correlation of various metrics with CUDA-C, PTX and SASS source of the application, depending on availability.</p>
|
| 617 |
+
<p>Which <em>Source Counter</em> metrics are collected and the order in which they are displayed in this page is controlled using section files, specifically using the <em>ProfilerSectionMetrics</em> message type. Each <em>ProfilerSectionMetrics</em> defines one ordered group of metrics, and can be assigned an optional <em>Order</em> value. This value defines the ordering among those groups in the <em>Source</em> page. This allows, for example, you to define a group of memory-related source counters in one and a group of instruction-related counters in another section file.</p>
|
| 618 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>Identifier: "SourceMetrics"
|
| 619 |
+
DisplayName: "Custom Source Metrics"
|
| 620 |
+
Metrics {
|
| 621 |
+
Order: 2
|
| 622 |
+
Metrics {
|
| 623 |
+
Label: "Instructions Executed"
|
| 624 |
+
Name: "inst_executed"
|
| 625 |
+
}
|
| 626 |
+
Metrics {
|
| 627 |
+
Label: ""
|
| 628 |
+
Name: "collected_but_not_shown"
|
| 629 |
+
}
|
| 630 |
+
}
|
| 631 |
+
</pre></div>
|
| 632 |
+
</div>
|
| 633 |
+
<p>If a <em>Source Counter</em> metric is given an empty label attribute in the section file, it will be collected but not shown on the page.</p>
|
| 634 |
+
<img alt="../_images/source-counters.png" class="align-center" src="../_images/source-counters.png" />
|
| 635 |
+
</section>
|
| 636 |
+
<section id="report-file-format">
|
| 637 |
+
<h2><span class="section-number">1.6. </span>Report File Format<a class="headerlink" href="#report-file-format" title="Permalink to this headline"></a></h2>
|
| 638 |
+
<p>This section documents the internals of the profiler report files (reports in the following) as created by NVIDIA Nsight Compute. <strong>The file format is subject to change in future releases without prior notice.</strong></p>
|
| 639 |
+
<section id="version-7-format">
|
| 640 |
+
<h3><span class="section-number">1.6.1. </span>Version 7 Format<a class="headerlink" href="#version-7-format" title="Permalink to this headline"></a></h3>
|
| 641 |
+
<p>Reports of version 7 are a combination of raw binary data and serialized Google Protocol Buffer version 2 messages (proto). All binary entries are stored as little endian. Protocol buffer definitions are in the NVIDIA Nsight Compute installation directory under <code class="docutils literal notranslate"><span class="pre">extras/FileFormat</span></code>.</p>
|
| 642 |
+
<table class="table-no-stripes docutils align-default" id="id3">
|
| 643 |
+
<caption><span class="caption-text">Table 1. Top-level report file format</span><a class="headerlink" href="#id3" title="Permalink to this table"></a></caption>
|
| 644 |
+
<colgroup>
|
| 645 |
+
<col style="width: 35%" />
|
| 646 |
+
<col style="width: 11%" />
|
| 647 |
+
<col style="width: 7%" />
|
| 648 |
+
<col style="width: 47%" />
|
| 649 |
+
</colgroup>
|
| 650 |
+
<thead>
|
| 651 |
+
<tr class="row-odd"><th class="head"><p>Offset [bytes]</p></th>
|
| 652 |
+
<th class="head"><p>Entry</p></th>
|
| 653 |
+
<th class="head"><p>Type</p></th>
|
| 654 |
+
<th class="head"><p>Value</p></th>
|
| 655 |
+
</tr>
|
| 656 |
+
</thead>
|
| 657 |
+
<tbody>
|
| 658 |
+
<tr class="row-even"><td><p>0</p></td>
|
| 659 |
+
<td><p>Magic Number</p></td>
|
| 660 |
+
<td><p>Binary</p></td>
|
| 661 |
+
<td><p>NVR\0</p></td>
|
| 662 |
+
</tr>
|
| 663 |
+
<tr class="row-odd"><td><p>4</p></td>
|
| 664 |
+
<td><p>Integer</p></td>
|
| 665 |
+
<td><p>Binary</p></td>
|
| 666 |
+
<td><p>sizeof(File Header)</p></td>
|
| 667 |
+
</tr>
|
| 668 |
+
<tr class="row-even"><td><p>8</p></td>
|
| 669 |
+
<td><p>File Header</p></td>
|
| 670 |
+
<td><p>Proto</p></td>
|
| 671 |
+
<td><p>Report version</p></td>
|
| 672 |
+
</tr>
|
| 673 |
+
<tr class="row-odd"><td><p>8 + sizeof(File Header)</p></td>
|
| 674 |
+
<td><p>Block 0</p></td>
|
| 675 |
+
<td><p>Mixed</p></td>
|
| 676 |
+
<td><p>CUDA CUBIN source, profile results, session information</p></td>
|
| 677 |
+
</tr>
|
| 678 |
+
<tr class="row-even"><td><p>8 + sizeof(File Header) + sizeof(Block 0)</p></td>
|
| 679 |
+
<td><p>Block 1</p></td>
|
| 680 |
+
<td><p>Mixed</p></td>
|
| 681 |
+
<td><p>CUDA CUBIN source, profile results, session information</p></td>
|
| 682 |
+
</tr>
|
| 683 |
+
<tr class="row-odd"><td><p>…</p></td>
|
| 684 |
+
<td><p>…</p></td>
|
| 685 |
+
<td><p>…</p></td>
|
| 686 |
+
<td><p>…</p></td>
|
| 687 |
+
</tr>
|
| 688 |
+
</tbody>
|
| 689 |
+
</table>
|
| 690 |
+
<table class="table-no-stripes docutils align-default" id="id4">
|
| 691 |
+
<caption><span class="caption-text">Table 2. Per-Block report file format</span><a class="headerlink" href="#id4" title="Permalink to this table"></a></caption>
|
| 692 |
+
<colgroup>
|
| 693 |
+
<col style="width: 20%" />
|
| 694 |
+
<col style="width: 11%" />
|
| 695 |
+
<col style="width: 6%" />
|
| 696 |
+
<col style="width: 63%" />
|
| 697 |
+
</colgroup>
|
| 698 |
+
<thead>
|
| 699 |
+
<tr class="row-odd"><th class="head"><p>Offset [bytes]</p></th>
|
| 700 |
+
<th class="head"><p>Entry</p></th>
|
| 701 |
+
<th class="head"><p>Type</p></th>
|
| 702 |
+
<th class="head"><p>Value</p></th>
|
| 703 |
+
</tr>
|
| 704 |
+
</thead>
|
| 705 |
+
<tbody>
|
| 706 |
+
<tr class="row-even"><td><p>0</p></td>
|
| 707 |
+
<td><p>Integer</p></td>
|
| 708 |
+
<td><p>Binary</p></td>
|
| 709 |
+
<td><p>sizeof(Block Header)</p></td>
|
| 710 |
+
</tr>
|
| 711 |
+
<tr class="row-odd"><td><p>4</p></td>
|
| 712 |
+
<td><p>Block Header</p></td>
|
| 713 |
+
<td><p>Proto</p></td>
|
| 714 |
+
<td><p>Number of entries per payload type, payload size</p></td>
|
| 715 |
+
</tr>
|
| 716 |
+
<tr class="row-even"><td><p>4 + sizeof(Block Header)</p></td>
|
| 717 |
+
<td><p>Block Payload</p></td>
|
| 718 |
+
<td><p>Mixed</p></td>
|
| 719 |
+
<td><p>Payload (CUDA CUBIN sources, profile results, session information, string table)</p></td>
|
| 720 |
+
</tr>
|
| 721 |
+
</tbody>
|
| 722 |
+
</table>
|
| 723 |
+
<table class="table-no-stripes docutils align-default" id="id5">
|
| 724 |
+
<caption><span class="caption-text">Table 3. Block payload report file format</span><a class="headerlink" href="#id5" title="Permalink to this table"></a></caption>
|
| 725 |
+
<colgroup>
|
| 726 |
+
<col style="width: 36%" />
|
| 727 |
+
<col style="width: 24%" />
|
| 728 |
+
<col style="width: 8%" />
|
| 729 |
+
<col style="width: 32%" />
|
| 730 |
+
</colgroup>
|
| 731 |
+
<thead>
|
| 732 |
+
<tr class="row-odd"><th class="head"><p>Offset [bytes]</p></th>
|
| 733 |
+
<th class="head"><p>Entry</p></th>
|
| 734 |
+
<th class="head"><p>Type</p></th>
|
| 735 |
+
<th class="head"><p>Value</p></th>
|
| 736 |
+
</tr>
|
| 737 |
+
</thead>
|
| 738 |
+
<tbody>
|
| 739 |
+
<tr class="row-even"><td><p>0</p></td>
|
| 740 |
+
<td><p>Integer</p></td>
|
| 741 |
+
<td><p>Binary</p></td>
|
| 742 |
+
<td><p>sizeof(Payload type 1, entry 1)</p></td>
|
| 743 |
+
</tr>
|
| 744 |
+
<tr class="row-odd"><td><p>4</p></td>
|
| 745 |
+
<td><p>Payload type 1, entry 1</p></td>
|
| 746 |
+
<td><p>Proto</p></td>
|
| 747 |
+
<td></td>
|
| 748 |
+
</tr>
|
| 749 |
+
<tr class="row-even"><td><p>4 + sizeof(Payload type 1, entry 1)</p></td>
|
| 750 |
+
<td><p>Integer</p></td>
|
| 751 |
+
<td><p>Binary</p></td>
|
| 752 |
+
<td><p>sizeof(Payload type 1, entry 2)</p></td>
|
| 753 |
+
</tr>
|
| 754 |
+
<tr class="row-odd"><td><p>8 + sizeof(Payload type 1, entry 1)</p></td>
|
| 755 |
+
<td><p>Payload type 1, entry 2</p></td>
|
| 756 |
+
<td><p>Proto</p></td>
|
| 757 |
+
<td></td>
|
| 758 |
+
</tr>
|
| 759 |
+
<tr class="row-even"><td><p>…</p></td>
|
| 760 |
+
<td><p>…</p></td>
|
| 761 |
+
<td><p>…</p></td>
|
| 762 |
+
<td><p>…</p></td>
|
| 763 |
+
</tr>
|
| 764 |
+
<tr class="row-odd"><td><p>…</p></td>
|
| 765 |
+
<td><p>Integer</p></td>
|
| 766 |
+
<td><p>Binary</p></td>
|
| 767 |
+
<td><p>sizeof(Payload type 2, entry 1)</p></td>
|
| 768 |
+
</tr>
|
| 769 |
+
<tr class="row-even"><td><p>…</p></td>
|
| 770 |
+
<td><p>Payload type 2, entry 1</p></td>
|
| 771 |
+
<td><p>Proto</p></td>
|
| 772 |
+
<td></td>
|
| 773 |
+
</tr>
|
| 774 |
+
<tr class="row-odd"><td><p>…</p></td>
|
| 775 |
+
<td><p>…</p></td>
|
| 776 |
+
<td><p>…</p></td>
|
| 777 |
+
<td><p>…</p></td>
|
| 778 |
+
</tr>
|
| 779 |
+
</tbody>
|
| 780 |
+
</table>
|
| 781 |
+
<p class="rubric-h1 rubric">Notices</p>
|
| 782 |
+
<p class="rubric-h2 rubric">Notices</p>
|
| 783 |
+
<p>ALL NVIDIA DESIGN SPECIFICATIONS, REFERENCE BOARDS, FILES, DRAWINGS, DIAGNOSTICS, LISTS, AND OTHER DOCUMENTS (TOGETHER AND SEPARATELY, “MATERIALS”) ARE BEING PROVIDED “AS IS.” NVIDIA MAKES NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.</p>
|
| 784 |
+
<p>Information furnished is believed to be accurate and reliable. However, NVIDIA Corporation assumes no responsibility for the consequences of use of such information or for any infringement of patents or other rights of third parties that may result from its use. No license is granted by implication of otherwise under any patent rights of NVIDIA Corporation. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all other information previously supplied. NVIDIA Corporation products are not authorized as critical components in life support devices or systems without express written approval of NVIDIA Corporation.</p>
|
| 785 |
+
<p class="rubric-h2 rubric">Trademarks</p>
|
| 786 |
+
<p>NVIDIA and the NVIDIA logo are trademarks or registered trademarks of NVIDIA Corporation in the U.S. and other countries. Other company and product names may be trademarks of the respective companies with which they are associated.</p>
|
| 787 |
+
</section>
|
| 788 |
+
</section>
|
| 789 |
+
</section>
|
| 790 |
+
|
| 791 |
+
|
| 792 |
+
</div>
|
| 793 |
+
</div>
|
| 794 |
+
<footer>
|
| 795 |
+
|
| 796 |
+
<hr/>
|
| 797 |
+
|
| 798 |
+
<div role="contentinfo">
|
| 799 |
+
<p>© Copyright 2018-2024, NVIDIA Corporation & Affiliates. All rights reserved.
|
| 800 |
+
<span class="lastupdated">Last updated on Mar 06, 2024.
|
| 801 |
+
</span></p>
|
| 802 |
+
</div>
|
| 803 |
+
|
| 804 |
+
|
| 805 |
+
|
| 806 |
+
</footer>
|
| 807 |
+
</div>
|
| 808 |
+
</div>
|
| 809 |
+
</section>
|
| 810 |
+
</div>
|
| 811 |
+
<script>
|
| 812 |
+
jQuery(function () {
|
| 813 |
+
SphinxRtdTheme.Navigation.enable(true);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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html class="writer-html5" lang="en" >
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
| 5 |
+
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
+
<title><no title> — NsightCompute 12.4 documentation</title>
|
| 8 |
+
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
| 9 |
+
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
| 10 |
+
<link rel="stylesheet" href="../_static/design-style.b7bb847fb20b106c3d81b95245e65545.min.css" type="text/css" />
|
| 11 |
+
<link rel="stylesheet" href="../_static/omni-style.css" type="text/css" />
|
| 12 |
+
<link rel="stylesheet" href="../_static/api-styles.css" type="text/css" />
|
| 13 |
+
<link rel="shortcut icon" href="../_static/nsight-compute.ico"/>
|
| 14 |
+
<!--[if lt IE 9]>
|
| 15 |
+
<script src="../_static/js/html5shiv.min.js"></script>
|
| 16 |
+
<![endif]-->
|
| 17 |
+
|
| 18 |
+
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
|
| 19 |
+
<script src="../_static/jquery.js"></script>
|
| 20 |
+
<script src="../_static/underscore.js"></script>
|
| 21 |
+
<script src="../_static/doctools.js"></script>
|
| 22 |
+
<script src="../_static/mermaid-init.js"></script>
|
| 23 |
+
<script src="../_static/design-tabs.js"></script>
|
| 24 |
+
<script src="../_static/version.js"></script>
|
| 25 |
+
<script src="../_static/social-media.js"></script>
|
| 26 |
+
<script src="../_static/js/theme.js"></script>
|
| 27 |
+
<link rel="index" title="Index" href="../genindex.html" />
|
| 28 |
+
<link rel="search" title="Search" href="../search.html" />
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
</head>
|
| 33 |
+
|
| 34 |
+
<body class="wy-body-for-nav">
|
| 35 |
+
<div class="wy-grid-for-nav">
|
| 36 |
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
| 37 |
+
<div class="wy-side-scroll">
|
| 38 |
+
<div class="wy-side-nav-search" >
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
<a href="../index.html">
|
| 42 |
+
<img src="../_static/nsight-compute.png" class="logo" alt="Logo"/>
|
| 43 |
+
</a>
|
| 44 |
+
|
| 45 |
+
<div role="search">
|
| 46 |
+
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
| 47 |
+
<input type="text" name="q" placeholder="Search docs" />
|
| 48 |
+
<input type="hidden" name="check_keywords" value="yes" />
|
| 49 |
+
<input type="hidden" name="area" value="default" />
|
| 50 |
+
</form>
|
| 51 |
+
</div>
|
| 52 |
+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
| 53 |
+
<p class="caption" role="heading"><span class="caption-text">Nsight Compute</span></p>
|
| 54 |
+
<ul>
|
| 55 |
+
<li class="toctree-l1"><a class="reference internal" href="../ReleaseNotes/index.html">1. Release Notes</a></li>
|
| 56 |
+
<li class="toctree-l1"><a class="reference internal" href="../ProfilingGuide/index.html">2. Kernel Profiling Guide</a></li>
|
| 57 |
+
<li class="toctree-l1"><a class="reference internal" href="../NsightCompute/index.html">3. Nsight Compute</a></li>
|
| 58 |
+
<li class="toctree-l1"><a class="reference internal" href="../NsightComputeCli/index.html">4. Nsight Compute CLI</a></li>
|
| 59 |
+
</ul>
|
| 60 |
+
<p class="caption" role="heading"><span class="caption-text">Developer Interfaces</span></p>
|
| 61 |
+
<ul>
|
| 62 |
+
<li class="toctree-l1"><a class="reference internal" href="../CustomizationGuide/index.html">1. Customization Guide</a></li>
|
| 63 |
+
<li class="toctree-l1"><a class="reference internal" href="../NvRulesAPI/index.html">2. NvRules API</a></li>
|
| 64 |
+
</ul>
|
| 65 |
+
<p class="caption" role="heading"><span class="caption-text">Training</span></p>
|
| 66 |
+
<ul>
|
| 67 |
+
<li class="toctree-l1"><a class="reference internal" href="../Training/index.html">Training</a></li>
|
| 68 |
+
</ul>
|
| 69 |
+
<p class="caption" role="heading"><span class="caption-text">Release Information</span></p>
|
| 70 |
+
<ul>
|
| 71 |
+
<li class="toctree-l1"><a class="reference internal" href="../Archives/index.html">Archives</a></li>
|
| 72 |
+
</ul>
|
| 73 |
+
<p class="caption" role="heading"><span class="caption-text">Copyright and Licenses</span></p>
|
| 74 |
+
<ul>
|
| 75 |
+
<li class="toctree-l1"><a class="reference internal" href="../CopyrightAndLicenses/index.html">Copyright and Licenses</a></li>
|
| 76 |
+
</ul>
|
| 77 |
+
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
</nav>
|
| 81 |
+
|
| 82 |
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
| 83 |
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
| 84 |
+
<a href="../index.html">NsightCompute</a>
|
| 85 |
+
</nav>
|
| 86 |
+
|
| 87 |
+
<div class="wy-nav-content">
|
| 88 |
+
<div class="rst-content">
|
| 89 |
+
<div role="navigation" aria-label="Page navigation">
|
| 90 |
+
<ul class="wy-breadcrumbs">
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
| 94 |
+
<li><no title></li>
|
| 95 |
+
|
| 96 |
+
<li class="wy-breadcrumbs-aside">
|
| 97 |
+
</li>
|
| 98 |
+
<li class="wy-breadcrumbs-aside">
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
<span>v2024.1.1 |</span>
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
<a href="https://developer.nvidia.com/nsight-compute-history" class="reference external">Archive</a>
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
<span> </span>
|
| 109 |
+
</li>
|
| 110 |
+
|
| 111 |
+
</ul>
|
| 112 |
+
<hr/>
|
| 113 |
+
</div>
|
| 114 |
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
| 115 |
+
<div itemprop="articleBody">
|
| 116 |
+
|
| 117 |
+
<p class="rubric-h1 rubric">Notices</p>
|
| 118 |
+
<p class="rubric-h2 rubric">Notices</p>
|
| 119 |
+
<p>ALL NVIDIA DESIGN SPECIFICATIONS, REFERENCE BOARDS, FILES, DRAWINGS, DIAGNOSTICS, LISTS, AND OTHER DOCUMENTS (TOGETHER AND SEPARATELY, “MATERIALS”) ARE BEING PROVIDED “AS IS.” NVIDIA MAKES NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.</p>
|
| 120 |
+
<p>Information furnished is believed to be accurate and reliable. However, NVIDIA Corporation assumes no responsibility for the consequences of use of such information or for any infringement of patents or other rights of third parties that may result from its use. No license is granted by implication of otherwise under any patent rights of NVIDIA Corporation. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all other information previously supplied. NVIDIA Corporation products are not authorized as critical components in life support devices or systems without express written approval of NVIDIA Corporation.</p>
|
| 121 |
+
<p class="rubric-h2 rubric">Trademarks</p>
|
| 122 |
+
<p>NVIDIA and the NVIDIA logo are trademarks or registered trademarks of NVIDIA Corporation in the U.S. and other countries. Other company and product names may be trademarks of the respective companies with which they are associated.</p>
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
<footer>
|
| 128 |
+
|
| 129 |
+
<hr/>
|
| 130 |
+
|
| 131 |
+
<div role="contentinfo">
|
| 132 |
+
<p>© Copyright 2018-2024, NVIDIA Corporation & Affiliates. All rights reserved.
|
| 133 |
+
<span class="lastupdated">Last updated on Mar 06, 2024.
|
| 134 |
+
</span></p>
|
| 135 |
+
</div>
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
</footer>
|
| 140 |
+
</div>
|
| 141 |
+
</div>
|
| 142 |
+
</section>
|
| 143 |
+
</div>
|
| 144 |
+
<script>
|
| 145 |
+
jQuery(function () {
|
| 146 |
+
SphinxRtdTheme.Navigation.enable(true);
|
| 147 |
+
});
|
| 148 |
+
</script>
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
</body>
|
| 154 |
+
</html>
|
cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/NsightCompute/index.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/NsightComputeCli/index.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/NvRulesAPI/index.html
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html class="writer-html5" lang="en" >
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
| 5 |
+
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
+
<title>2. NvRules API — NsightCompute 12.4 documentation</title>
|
| 8 |
+
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
| 9 |
+
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
| 10 |
+
<link rel="stylesheet" href="../_static/design-style.b7bb847fb20b106c3d81b95245e65545.min.css" type="text/css" />
|
| 11 |
+
<link rel="stylesheet" href="../_static/omni-style.css" type="text/css" />
|
| 12 |
+
<link rel="stylesheet" href="../_static/api-styles.css" type="text/css" />
|
| 13 |
+
<link rel="shortcut icon" href="../_static/nsight-compute.ico"/>
|
| 14 |
+
<!--[if lt IE 9]>
|
| 15 |
+
<script src="../_static/js/html5shiv.min.js"></script>
|
| 16 |
+
<![endif]-->
|
| 17 |
+
|
| 18 |
+
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
|
| 19 |
+
<script src="../_static/jquery.js"></script>
|
| 20 |
+
<script src="../_static/underscore.js"></script>
|
| 21 |
+
<script src="../_static/doctools.js"></script>
|
| 22 |
+
<script src="../_static/mermaid-init.js"></script>
|
| 23 |
+
<script src="../_static/design-tabs.js"></script>
|
| 24 |
+
<script src="../_static/version.js"></script>
|
| 25 |
+
<script src="../_static/social-media.js"></script>
|
| 26 |
+
<script src="../_static/js/theme.js"></script>
|
| 27 |
+
<link rel="index" title="Index" href="../genindex.html" />
|
| 28 |
+
<link rel="search" title="Search" href="../search.html" />
|
| 29 |
+
<link rel="next" title="2.1. Modules" href="../api/modules.html" />
|
| 30 |
+
<link rel="prev" title="1. Customization Guide" href="../CustomizationGuide/index.html" />
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
</head>
|
| 35 |
+
|
| 36 |
+
<body class="wy-body-for-nav">
|
| 37 |
+
<div class="wy-grid-for-nav">
|
| 38 |
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
| 39 |
+
<div class="wy-side-scroll">
|
| 40 |
+
<div class="wy-side-nav-search" >
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
<a href="../index.html">
|
| 44 |
+
<img src="../_static/nsight-compute.png" class="logo" alt="Logo"/>
|
| 45 |
+
</a>
|
| 46 |
+
|
| 47 |
+
<div role="search">
|
| 48 |
+
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
| 49 |
+
<input type="text" name="q" placeholder="Search docs" />
|
| 50 |
+
<input type="hidden" name="check_keywords" value="yes" />
|
| 51 |
+
<input type="hidden" name="area" value="default" />
|
| 52 |
+
</form>
|
| 53 |
+
</div>
|
| 54 |
+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
| 55 |
+
<p class="caption" role="heading"><span class="caption-text">Nsight Compute</span></p>
|
| 56 |
+
<ul>
|
| 57 |
+
<li class="toctree-l1"><a class="reference internal" href="../ReleaseNotes/index.html">1. Release Notes</a></li>
|
| 58 |
+
<li class="toctree-l1"><a class="reference internal" href="../ProfilingGuide/index.html">2. Kernel Profiling Guide</a></li>
|
| 59 |
+
<li class="toctree-l1"><a class="reference internal" href="../NsightCompute/index.html">3. Nsight Compute</a></li>
|
| 60 |
+
<li class="toctree-l1"><a class="reference internal" href="../NsightComputeCli/index.html">4. Nsight Compute CLI</a></li>
|
| 61 |
+
</ul>
|
| 62 |
+
<p class="caption" role="heading"><span class="caption-text">Developer Interfaces</span></p>
|
| 63 |
+
<ul class="current">
|
| 64 |
+
<li class="toctree-l1"><a class="reference internal" href="../CustomizationGuide/index.html">1. Customization Guide</a></li>
|
| 65 |
+
<li class="toctree-l1 current"><a class="current reference internal" href="#">2. NvRules API</a><ul>
|
| 66 |
+
<li class="toctree-l2"><a class="reference internal" href="../api/modules.html">2.1. Modules</a></li>
|
| 67 |
+
<li class="toctree-l2"><a class="reference internal" href="../api/data-structures.html">2.2. Data Structures</a></li>
|
| 68 |
+
<li class="toctree-l2"><a class="reference internal" href="../api/namespaces.html">2.3. Namespaces</a></li>
|
| 69 |
+
</ul>
|
| 70 |
+
</li>
|
| 71 |
+
</ul>
|
| 72 |
+
<p class="caption" role="heading"><span class="caption-text">Training</span></p>
|
| 73 |
+
<ul>
|
| 74 |
+
<li class="toctree-l1"><a class="reference internal" href="../Training/index.html">Training</a></li>
|
| 75 |
+
</ul>
|
| 76 |
+
<p class="caption" role="heading"><span class="caption-text">Release Information</span></p>
|
| 77 |
+
<ul>
|
| 78 |
+
<li class="toctree-l1"><a class="reference internal" href="../Archives/index.html">Archives</a></li>
|
| 79 |
+
</ul>
|
| 80 |
+
<p class="caption" role="heading"><span class="caption-text">Copyright and Licenses</span></p>
|
| 81 |
+
<ul>
|
| 82 |
+
<li class="toctree-l1"><a class="reference internal" href="../CopyrightAndLicenses/index.html">Copyright and Licenses</a></li>
|
| 83 |
+
</ul>
|
| 84 |
+
|
| 85 |
+
</div>
|
| 86 |
+
</div>
|
| 87 |
+
</nav>
|
| 88 |
+
|
| 89 |
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
| 90 |
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
| 91 |
+
<a href="../index.html">NsightCompute</a>
|
| 92 |
+
</nav>
|
| 93 |
+
|
| 94 |
+
<div class="wy-nav-content">
|
| 95 |
+
<div class="rst-content">
|
| 96 |
+
<div role="navigation" aria-label="Page navigation">
|
| 97 |
+
<ul class="wy-breadcrumbs">
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
<li><a href="../index.html" class="icon icon-home"></a> »</li>
|
| 101 |
+
<li><span class="section-number">2. </span>NvRules API</li>
|
| 102 |
+
|
| 103 |
+
<li class="wy-breadcrumbs-aside">
|
| 104 |
+
</li>
|
| 105 |
+
<li class="wy-breadcrumbs-aside">
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
<span>v2024.1.1 |</span>
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
<a href="https://developer.nvidia.com/nsight-compute-history" class="reference external">Archive</a>
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
<span> </span>
|
| 116 |
+
</li>
|
| 117 |
+
|
| 118 |
+
</ul>
|
| 119 |
+
<hr/>
|
| 120 |
+
</div>
|
| 121 |
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
| 122 |
+
<div itemprop="articleBody">
|
| 123 |
+
|
| 124 |
+
<section id="nvrules-api">
|
| 125 |
+
<h1><span class="section-number">2. </span>NvRules API<a class="headerlink" href="#nvrules-api" title="Permalink to this headline"></a></h1>
|
| 126 |
+
<p><a class="reference internal" href="../api/modules.html"><span class="doc">Modules</span></a></p>
|
| 127 |
+
<p><a class="reference internal" href="../api/data-structures.html"><span class="doc">Data Structures</span></a></p>
|
| 128 |
+
<p><a class="reference internal" href="../api/namespaces.html"><span class="doc">Namespaces</span></a></p>
|
| 129 |
+
<div class="toctree-wrapper compound">
|
| 130 |
+
</div>
|
| 131 |
+
<p class="rubric-h1 rubric">Notices</p>
|
| 132 |
+
<p class="rubric-h2 rubric">Notices</p>
|
| 133 |
+
<p>ALL NVIDIA DESIGN SPECIFICATIONS, REFERENCE BOARDS, FILES, DRAWINGS, DIAGNOSTICS, LISTS, AND OTHER DOCUMENTS (TOGETHER AND SEPARATELY, “MATERIALS”) ARE BEING PROVIDED “AS IS.” NVIDIA MAKES NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.</p>
|
| 134 |
+
<p>Information furnished is believed to be accurate and reliable. However, NVIDIA Corporation assumes no responsibility for the consequences of use of such information or for any infringement of patents or other rights of third parties that may result from its use. No license is granted by implication of otherwise under any patent rights of NVIDIA Corporation. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all other information previously supplied. NVIDIA Corporation products are not authorized as critical components in life support devices or systems without express written approval of NVIDIA Corporation.</p>
|
| 135 |
+
<p class="rubric-h2 rubric">Trademarks</p>
|
| 136 |
+
<p>NVIDIA and the NVIDIA logo are trademarks or registered trademarks of NVIDIA Corporation in the U.S. and other countries. Other company and product names may be trademarks of the respective companies with which they are associated.</p>
|
| 137 |
+
</section>
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
</div>
|
| 141 |
+
</div>
|
| 142 |
+
<footer>
|
| 143 |
+
|
| 144 |
+
<hr/>
|
| 145 |
+
|
| 146 |
+
<div role="contentinfo">
|
| 147 |
+
<p>© Copyright 2018-2024, NVIDIA Corporation & Affiliates. All rights reserved.
|
| 148 |
+
<span class="lastupdated">Last updated on Mar 06, 2024.
|
| 149 |
+
</span></p>
|
| 150 |
+
</div>
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
</footer>
|
| 155 |
+
</div>
|
| 156 |
+
</div>
|
| 157 |
+
</section>
|
| 158 |
+
</div>
|
| 159 |
+
<script>
|
| 160 |
+
jQuery(function () {
|
| 161 |
+
SphinxRtdTheme.Navigation.enable(true);
|
| 162 |
+
});
|
| 163 |
+
</script>
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
</body>
|
| 169 |
+
</html>
|
cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ProfilingGuide/index.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ReleaseNotes/index.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ReleaseNotes/topics/gpu-support.html
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html class="writer-html5" lang="en" >
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
| 5 |
+
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
+
<title>GPU Support — NsightCompute 12.4 documentation</title>
|
| 8 |
+
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
| 9 |
+
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
|
| 10 |
+
<link rel="stylesheet" href="../../_static/design-style.b7bb847fb20b106c3d81b95245e65545.min.css" type="text/css" />
|
| 11 |
+
<link rel="stylesheet" href="../../_static/omni-style.css" type="text/css" />
|
| 12 |
+
<link rel="stylesheet" href="../../_static/api-styles.css" type="text/css" />
|
| 13 |
+
<link rel="shortcut icon" href="../../_static/nsight-compute.ico"/>
|
| 14 |
+
<!--[if lt IE 9]>
|
| 15 |
+
<script src="../../_static/js/html5shiv.min.js"></script>
|
| 16 |
+
<![endif]-->
|
| 17 |
+
|
| 18 |
+
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
|
| 19 |
+
<script src="../../_static/jquery.js"></script>
|
| 20 |
+
<script src="../../_static/underscore.js"></script>
|
| 21 |
+
<script src="../../_static/doctools.js"></script>
|
| 22 |
+
<script src="../../_static/mermaid-init.js"></script>
|
| 23 |
+
<script src="../../_static/design-tabs.js"></script>
|
| 24 |
+
<script src="../../_static/version.js"></script>
|
| 25 |
+
<script src="../../_static/social-media.js"></script>
|
| 26 |
+
<script src="../../_static/js/theme.js"></script>
|
| 27 |
+
<link rel="index" title="Index" href="../../genindex.html" />
|
| 28 |
+
<link rel="search" title="Search" href="../../search.html" />
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
</head>
|
| 33 |
+
|
| 34 |
+
<body class="wy-body-for-nav">
|
| 35 |
+
<div class="wy-grid-for-nav">
|
| 36 |
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
| 37 |
+
<div class="wy-side-scroll">
|
| 38 |
+
<div class="wy-side-nav-search" >
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
<a href="../../index.html">
|
| 42 |
+
<img src="../../_static/nsight-compute.png" class="logo" alt="Logo"/>
|
| 43 |
+
</a>
|
| 44 |
+
|
| 45 |
+
<div role="search">
|
| 46 |
+
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
|
| 47 |
+
<input type="text" name="q" placeholder="Search docs" />
|
| 48 |
+
<input type="hidden" name="check_keywords" value="yes" />
|
| 49 |
+
<input type="hidden" name="area" value="default" />
|
| 50 |
+
</form>
|
| 51 |
+
</div>
|
| 52 |
+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
| 53 |
+
<p class="caption" role="heading"><span class="caption-text">Nsight Compute</span></p>
|
| 54 |
+
<ul>
|
| 55 |
+
<li class="toctree-l1"><a class="reference internal" href="../index.html">1. Release Notes</a></li>
|
| 56 |
+
<li class="toctree-l1"><a class="reference internal" href="../../ProfilingGuide/index.html">2. Kernel Profiling Guide</a></li>
|
| 57 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NsightCompute/index.html">3. Nsight Compute</a></li>
|
| 58 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NsightComputeCli/index.html">4. Nsight Compute CLI</a></li>
|
| 59 |
+
</ul>
|
| 60 |
+
<p class="caption" role="heading"><span class="caption-text">Developer Interfaces</span></p>
|
| 61 |
+
<ul>
|
| 62 |
+
<li class="toctree-l1"><a class="reference internal" href="../../CustomizationGuide/index.html">1. Customization Guide</a></li>
|
| 63 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NvRulesAPI/index.html">2. NvRules API</a></li>
|
| 64 |
+
</ul>
|
| 65 |
+
<p class="caption" role="heading"><span class="caption-text">Training</span></p>
|
| 66 |
+
<ul>
|
| 67 |
+
<li class="toctree-l1"><a class="reference internal" href="../../Training/index.html">Training</a></li>
|
| 68 |
+
</ul>
|
| 69 |
+
<p class="caption" role="heading"><span class="caption-text">Release Information</span></p>
|
| 70 |
+
<ul>
|
| 71 |
+
<li class="toctree-l1"><a class="reference internal" href="../../Archives/index.html">Archives</a></li>
|
| 72 |
+
</ul>
|
| 73 |
+
<p class="caption" role="heading"><span class="caption-text">Copyright and Licenses</span></p>
|
| 74 |
+
<ul>
|
| 75 |
+
<li class="toctree-l1"><a class="reference internal" href="../../CopyrightAndLicenses/index.html">Copyright and Licenses</a></li>
|
| 76 |
+
</ul>
|
| 77 |
+
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
</nav>
|
| 81 |
+
|
| 82 |
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
| 83 |
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
| 84 |
+
<a href="../../index.html">NsightCompute</a>
|
| 85 |
+
</nav>
|
| 86 |
+
|
| 87 |
+
<div class="wy-nav-content">
|
| 88 |
+
<div class="rst-content">
|
| 89 |
+
<div role="navigation" aria-label="Page navigation">
|
| 90 |
+
<ul class="wy-breadcrumbs">
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
<li><a href="../../index.html" class="icon icon-home"></a> »</li>
|
| 94 |
+
<li>GPU Support</li>
|
| 95 |
+
|
| 96 |
+
<li class="wy-breadcrumbs-aside">
|
| 97 |
+
</li>
|
| 98 |
+
<li class="wy-breadcrumbs-aside">
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
<span>v2024.1.1 |</span>
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
<a href="https://developer.nvidia.com/nsight-compute-history" class="reference external">Archive</a>
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
<span> </span>
|
| 109 |
+
</li>
|
| 110 |
+
|
| 111 |
+
</ul>
|
| 112 |
+
<hr/>
|
| 113 |
+
</div>
|
| 114 |
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
| 115 |
+
<div itemprop="articleBody">
|
| 116 |
+
|
| 117 |
+
<section id="gpu-support">
|
| 118 |
+
<h1>GPU Support<a class="headerlink" href="#gpu-support" title="Permalink to this headline"></a></h1>
|
| 119 |
+
<table class="docutils align-default" id="id1">
|
| 120 |
+
<caption><span class="caption-text">Table 2. GPU architectures supported by NVIDIA Nsight Compute</span><a class="headerlink" href="#id1" title="Permalink to this table"></a></caption>
|
| 121 |
+
<colgroup>
|
| 122 |
+
<col style="width: 63%" />
|
| 123 |
+
<col style="width: 37%" />
|
| 124 |
+
</colgroup>
|
| 125 |
+
<thead>
|
| 126 |
+
<tr class="row-odd"><th class="head"><p>Architecture</p></th>
|
| 127 |
+
<th class="head"><p>Support</p></th>
|
| 128 |
+
</tr>
|
| 129 |
+
</thead>
|
| 130 |
+
<tbody>
|
| 131 |
+
<tr class="row-even"><td><p>Kepler</p></td>
|
| 132 |
+
<td><p>No</p></td>
|
| 133 |
+
</tr>
|
| 134 |
+
<tr class="row-odd"><td><p>Maxwell</p></td>
|
| 135 |
+
<td><p>No</p></td>
|
| 136 |
+
</tr>
|
| 137 |
+
<tr class="row-even"><td><p>Pascal</p></td>
|
| 138 |
+
<td><p>No</p></td>
|
| 139 |
+
</tr>
|
| 140 |
+
<tr class="row-odd"><td><p>Volta GV100</p></td>
|
| 141 |
+
<td><p>Yes</p></td>
|
| 142 |
+
</tr>
|
| 143 |
+
<tr class="row-even"><td><p>Volta GV11b</p></td>
|
| 144 |
+
<td><p>Yes</p></td>
|
| 145 |
+
</tr>
|
| 146 |
+
<tr class="row-odd"><td><p>Turing TU1xx</p></td>
|
| 147 |
+
<td><p>Yes</p></td>
|
| 148 |
+
</tr>
|
| 149 |
+
<tr class="row-even"><td><p>NVIDIA GA100</p></td>
|
| 150 |
+
<td><p>Yes</p></td>
|
| 151 |
+
</tr>
|
| 152 |
+
<tr class="row-odd"><td><p>NVIDIA GA10x</p></td>
|
| 153 |
+
<td><p>Yes</p></td>
|
| 154 |
+
</tr>
|
| 155 |
+
<tr class="row-even"><td><p>NVIDIA GA10b</p></td>
|
| 156 |
+
<td><p>Yes</p></td>
|
| 157 |
+
</tr>
|
| 158 |
+
<tr class="row-odd"><td><p>NVIDIA GH100</p></td>
|
| 159 |
+
<td><p>Yes</p></td>
|
| 160 |
+
</tr>
|
| 161 |
+
</tbody>
|
| 162 |
+
</table>
|
| 163 |
+
<p>Most metrics used in NVIDIA Nsight Compute are identical to those of the PerfWorks Metrics API and follow the documented <a class="reference external" href="../ProfilingGuide/index.html#metrics-structure">Metrics Structure</a>. A comparison between the metrics used in nvprof and their equivalent in NVIDIA Nsight Compute can be found in the <a class="reference external" href="https://docs.nvidia.com/nsight-compute/NsightComputeCli/index.html#nvprof-metric-comparison">NVIDIA Nsight Compute CLI User Manual</a>.</p>
|
| 164 |
+
</section>
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
</div>
|
| 168 |
+
</div>
|
| 169 |
+
<footer>
|
| 170 |
+
|
| 171 |
+
<hr/>
|
| 172 |
+
|
| 173 |
+
<div role="contentinfo">
|
| 174 |
+
<p>© Copyright 2018-2024, NVIDIA Corporation & Affiliates. All rights reserved.
|
| 175 |
+
<span class="lastupdated">Last updated on Mar 06, 2024.
|
| 176 |
+
</span></p>
|
| 177 |
+
</div>
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
|
| 181 |
+
</footer>
|
| 182 |
+
</div>
|
| 183 |
+
</div>
|
| 184 |
+
</section>
|
| 185 |
+
</div>
|
| 186 |
+
<script>
|
| 187 |
+
jQuery(function () {
|
| 188 |
+
SphinxRtdTheme.Navigation.enable(true);
|
| 189 |
+
});
|
| 190 |
+
</script>
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
|
| 195 |
+
</body>
|
| 196 |
+
</html>
|
cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ReleaseNotes/topics/known-issues.html
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html class="writer-html5" lang="en" >
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
| 5 |
+
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
+
<title>Known Issues — NsightCompute 12.4 documentation</title>
|
| 8 |
+
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
| 9 |
+
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
|
| 10 |
+
<link rel="stylesheet" href="../../_static/design-style.b7bb847fb20b106c3d81b95245e65545.min.css" type="text/css" />
|
| 11 |
+
<link rel="stylesheet" href="../../_static/omni-style.css" type="text/css" />
|
| 12 |
+
<link rel="stylesheet" href="../../_static/api-styles.css" type="text/css" />
|
| 13 |
+
<link rel="shortcut icon" href="../../_static/nsight-compute.ico"/>
|
| 14 |
+
<!--[if lt IE 9]>
|
| 15 |
+
<script src="../../_static/js/html5shiv.min.js"></script>
|
| 16 |
+
<![endif]-->
|
| 17 |
+
|
| 18 |
+
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
|
| 19 |
+
<script src="../../_static/jquery.js"></script>
|
| 20 |
+
<script src="../../_static/underscore.js"></script>
|
| 21 |
+
<script src="../../_static/doctools.js"></script>
|
| 22 |
+
<script src="../../_static/mermaid-init.js"></script>
|
| 23 |
+
<script src="../../_static/design-tabs.js"></script>
|
| 24 |
+
<script src="../../_static/version.js"></script>
|
| 25 |
+
<script src="../../_static/social-media.js"></script>
|
| 26 |
+
<script src="../../_static/js/theme.js"></script>
|
| 27 |
+
<link rel="index" title="Index" href="../../genindex.html" />
|
| 28 |
+
<link rel="search" title="Search" href="../../search.html" />
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
</head>
|
| 33 |
+
|
| 34 |
+
<body class="wy-body-for-nav">
|
| 35 |
+
<div class="wy-grid-for-nav">
|
| 36 |
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
| 37 |
+
<div class="wy-side-scroll">
|
| 38 |
+
<div class="wy-side-nav-search" >
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
<a href="../../index.html">
|
| 42 |
+
<img src="../../_static/nsight-compute.png" class="logo" alt="Logo"/>
|
| 43 |
+
</a>
|
| 44 |
+
|
| 45 |
+
<div role="search">
|
| 46 |
+
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
|
| 47 |
+
<input type="text" name="q" placeholder="Search docs" />
|
| 48 |
+
<input type="hidden" name="check_keywords" value="yes" />
|
| 49 |
+
<input type="hidden" name="area" value="default" />
|
| 50 |
+
</form>
|
| 51 |
+
</div>
|
| 52 |
+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
| 53 |
+
<p class="caption" role="heading"><span class="caption-text">Nsight Compute</span></p>
|
| 54 |
+
<ul>
|
| 55 |
+
<li class="toctree-l1"><a class="reference internal" href="../index.html">1. Release Notes</a></li>
|
| 56 |
+
<li class="toctree-l1"><a class="reference internal" href="../../ProfilingGuide/index.html">2. Kernel Profiling Guide</a></li>
|
| 57 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NsightCompute/index.html">3. Nsight Compute</a></li>
|
| 58 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NsightComputeCli/index.html">4. Nsight Compute CLI</a></li>
|
| 59 |
+
</ul>
|
| 60 |
+
<p class="caption" role="heading"><span class="caption-text">Developer Interfaces</span></p>
|
| 61 |
+
<ul>
|
| 62 |
+
<li class="toctree-l1"><a class="reference internal" href="../../CustomizationGuide/index.html">1. Customization Guide</a></li>
|
| 63 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NvRulesAPI/index.html">2. NvRules API</a></li>
|
| 64 |
+
</ul>
|
| 65 |
+
<p class="caption" role="heading"><span class="caption-text">Training</span></p>
|
| 66 |
+
<ul>
|
| 67 |
+
<li class="toctree-l1"><a class="reference internal" href="../../Training/index.html">Training</a></li>
|
| 68 |
+
</ul>
|
| 69 |
+
<p class="caption" role="heading"><span class="caption-text">Release Information</span></p>
|
| 70 |
+
<ul>
|
| 71 |
+
<li class="toctree-l1"><a class="reference internal" href="../../Archives/index.html">Archives</a></li>
|
| 72 |
+
</ul>
|
| 73 |
+
<p class="caption" role="heading"><span class="caption-text">Copyright and Licenses</span></p>
|
| 74 |
+
<ul>
|
| 75 |
+
<li class="toctree-l1"><a class="reference internal" href="../../CopyrightAndLicenses/index.html">Copyright and Licenses</a></li>
|
| 76 |
+
</ul>
|
| 77 |
+
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
</nav>
|
| 81 |
+
|
| 82 |
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
| 83 |
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
| 84 |
+
<a href="../../index.html">NsightCompute</a>
|
| 85 |
+
</nav>
|
| 86 |
+
|
| 87 |
+
<div class="wy-nav-content">
|
| 88 |
+
<div class="rst-content">
|
| 89 |
+
<div role="navigation" aria-label="Page navigation">
|
| 90 |
+
<ul class="wy-breadcrumbs">
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
<li><a href="../../index.html" class="icon icon-home"></a> »</li>
|
| 94 |
+
<li>Known Issues</li>
|
| 95 |
+
|
| 96 |
+
<li class="wy-breadcrumbs-aside">
|
| 97 |
+
</li>
|
| 98 |
+
<li class="wy-breadcrumbs-aside">
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
<span>v2024.1.1 |</span>
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
<a href="https://developer.nvidia.com/nsight-compute-history" class="reference external">Archive</a>
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
<span> </span>
|
| 109 |
+
</li>
|
| 110 |
+
|
| 111 |
+
</ul>
|
| 112 |
+
<hr/>
|
| 113 |
+
</div>
|
| 114 |
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
| 115 |
+
<div itemprop="articleBody">
|
| 116 |
+
|
| 117 |
+
<section id="known-issues">
|
| 118 |
+
<h1>Known Issues<a class="headerlink" href="#known-issues" title="Permalink to this headline"></a></h1>
|
| 119 |
+
<p><strong>Installation</strong></p>
|
| 120 |
+
<ul>
|
| 121 |
+
<li><p>The installer might not show all patch-level version numbers during installation.</p></li>
|
| 122 |
+
<li><p>Some command line options listed in the help of a <em>.run</em> installer of NVIDIA Nsight Compute are affecting only the archive extraction, but not the installation stage. To pass command line options to the embedded installer script, specify those options after <code class="docutils literal notranslate"><span class="pre">--</span></code> in the form of <code class="docutils literal notranslate"><span class="pre">--</span> <span class="pre">-<option></span></code>. The available options for the installer script are:</p>
|
| 123 |
+
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>-help : Print help message
|
| 124 |
+
-targetpath=<PATH> : Specify install path
|
| 125 |
+
-noprompt : No prompts. Implies acceptance of the EULA
|
| 126 |
+
</pre></div>
|
| 127 |
+
</div>
|
| 128 |
+
<p>For example, specifying only option <code class="docutils literal notranslate"><span class="pre">--quiet</span></code> extracts the installer archive without any output to the console, but still prompts for user interaction during the installation. To install NVIDIA Nsight Compute without any console output nor any user interaction, please specify <code class="docutils literal notranslate"><span class="pre">--quiet</span> <span class="pre">--</span> <span class="pre">-noprompt</span></code>.</p>
|
| 129 |
+
</li>
|
| 130 |
+
<li><p>After using the SDK Manager to install the NVIDIA Nsight Compute tools, their binary path needs to be manually added to your <code class="docutils literal notranslate"><span class="pre">PATH</span></code> environment variable.</p></li>
|
| 131 |
+
<li><p>See also the <a class="reference external" href="index.html#system-requirements">System Requirements</a> for more installation instructions.</p></li>
|
| 132 |
+
</ul>
|
| 133 |
+
<p><strong>Launch and Connection</strong></p>
|
| 134 |
+
<ul class="simple">
|
| 135 |
+
<li><p>Launching applications on remote targets/platforms is not supported for several combinations. See <a class="reference external" href="index.html#platform-support">Platform Support</a> for details. Manually launch the application using command line <code class="docutils literal notranslate"><span class="pre">ncu</span> <span class="pre">--mode=launch</span></code> on the remote system and connect using the UI or CLI afterwards.</p></li>
|
| 136 |
+
<li><p>In the NVIDIA Nsight Compute connection dialog, a remote system can only be specified for one target platform. Remove a connection from its current target platform in order to be able to add it to another.</p></li>
|
| 137 |
+
<li><p>Loading of CUDA sources via SSH requires that the remote connection is configured, and that the hostname/IP address of the connection matches the target (as seen in the report session details). For example, prefer my-machine.my-domain.com, instead of my-machine, even though the latter resolves to the same.</p></li>
|
| 138 |
+
<li><p>Other issues concerning remote connections are discussed in the documentation for <a class="reference external" href="../NsightCompute/index.html#remote-connections">remote connections</a>.</p></li>
|
| 139 |
+
<li><p>Local connections between NVIDIA Nsight Compute and the launched target application might not work on some ppc64le or aarch64 (sbsa) systems configured to only support IPv6. On these platforms, the <a class="reference external" href="../NsightComputeCli/index.html#environment-variables">NV_COMPUTE_PROFILER_LOCAL_CONNECTION_OVERRIDE=uds</a> environment variable can be set to use <em>Unix Domain Sockets</em> instead of <em>TCP</em> for local connections to workaround the problem. On x86_64 Linux, Unix Domain Sockets are used by default, but local TCP connections can be forced using <a class="reference external" href="../NsightComputeCli/index.html#environment-variables">NV_COMPUTE_PROFILER_LOCAL_CONNECTION_OVERRIDE=tcp</a>.</p></li>
|
| 140 |
+
</ul>
|
| 141 |
+
<p><strong>Profiling and Metrics</strong></p>
|
| 142 |
+
<ul class="simple">
|
| 143 |
+
<li><p>Profiling of 32-bit processes is not supported.</p></li>
|
| 144 |
+
<li><p>Profiling kernels executed on a device that is part of an SLI group is not supported. An “Unsupported GPU” error is shown in this case.</p></li>
|
| 145 |
+
<li><p>Profiling a kernel while other contexts are active on the same device (e.g. X server, or secondary CUDA or graphics application) can result in varying metric values for L2/FB (Device Memory) related metrics. Specifically, L2/FB traffic from non-profiled contexts cannot be excluded from the metric results. To completely avoid this issue, profile the application on a GPU without secondary contexts accessing the same device (e.g. no X server on Linux).</p></li>
|
| 146 |
+
<li><p>In the current release, profiling a kernel while any other GPU work is executing on the same MIG compute instance can result in varying metric values for all units. NVIDIA Nsight Compute enforces serialization of the CUDA launches within the target application to ensure those kernels do not influence each other. See <a class="reference external" href="../ProfilingGuide/index.html#serialization">Serialization</a> for more details. However, GPU work issued through other APIs in the target process or workloads created by non-target processes running simultaneously in the same MIG compute instance will influence the collected metrics. Note that it is acceptable to run CUDA processes in other MIG compute instances as they will not influence the profiled MIG compute instance.</p></li>
|
| 147 |
+
<li><p>On Linux kernels settings <code class="docutils literal notranslate"><span class="pre">fs.protected_regular=1</span></code> (e.g. some Ubuntu 20.04 cloud service provider instances), root users may not be able to access the <a class="reference external" href="../ProfilingGuide/index.html#serialization">inter-process lock file</a>. See the <a class="reference external" href="../ProfilingGuide/index.html#faq">FAQ</a> for workarounds.</p></li>
|
| 148 |
+
<li><p>Profiling only supports up to 32 device instances, including instances of MIG partitions. Profiling the 33rd or higher device instance will result in indeterminate data.</p></li>
|
| 149 |
+
<li><p>Enabling certain metrics can cause GPU kernels to run longer than the driver’s watchdog time-out limit. In these cases the driver will terminate the GPU kernel resulting in an application error and profiling data will not be available. Please disable the driver watchdog time out before profiling such long running CUDA kernels.</p>
|
| 150 |
+
<ul>
|
| 151 |
+
<li><p>On Linux, setting the X Config option Interactive to false is recommended.</p></li>
|
| 152 |
+
<li><p>For Windows, detailed information on disabling the Windows TDR is available at <a class="reference external" href="https://docs.microsoft.com/en-us/windows-hardware/drivers/display/timeout-detection-and-recovery">https://docs.microsoft.com/en-us/windows-hardware/drivers/display/timeout-detection-and-recovery</a></p></li>
|
| 153 |
+
</ul>
|
| 154 |
+
</li>
|
| 155 |
+
<li><p>Collecting device-level metrics, such as the NVLink metrics (<code class="docutils literal notranslate"><span class="pre">nvl*</span></code>), is not supported on <a class="reference external" href="https://www.nvidia.com/en-us/data-center/virtual-gpu-technology/">NVIDIA virtual GPUs</a> (vGPUs).</p></li>
|
| 156 |
+
<li><p>As of CUDA 11.4 and R470 TRD1 driver release, NVIDIA Nsight Compute is supported in a vGPU environment which requires a vGPU license. If the license is not obtained after 20 minutes, the reported performance metrics data from the GPU will be inaccurate. This is because of a feature in vGPU environment which reduces performance but retains functionality as specified <a class="reference external" href="https://docs.nvidia.com/grid/latest/grid-licensing-user-guide/index.html#software-enforcement-grid-licensing">here</a>.</p></li>
|
| 157 |
+
<li><p>Profiling on <a class="reference external" href="https://www.nvidia.com/en-us/data-center/virtualization/virtual-gpu-migration/">NVIDIA live-migrated virtual machines</a> is not supported and can result in undefined behavior.</p></li>
|
| 158 |
+
<li><p>Profiling with enabled multi-process service (MPS) can result in undefined behavior.</p></li>
|
| 159 |
+
<li><p>When Profiling using <em>Range Replay</em> or <em>Application Range Replay</em> with multiple CUDA Green Contexts active which belong to the same device context, the range result will contain counter values aggregated on all Green Contexts</p></li>
|
| 160 |
+
<li><p>The NVLink Topology section is not supported for a configuration using NVSwitch.</p></li>
|
| 161 |
+
<li><p>NVIDIA Nsight Compute does not support per-NVLink metrics.</p></li>
|
| 162 |
+
<li><p>NVIDIA Nsight Compute does not support the <em>Logical NVLink Throughput</em> table.</p></li>
|
| 163 |
+
<li><p>Setting a reduced NvLink Bandwidth mode does not impact the reported peak values for NvLink metrics. All peak values and corresponding percentages are calculated off the non-reduced NvLink bandwidth. Reconfiguring the NvLink Bandwidth mode using <cite>nvidia-smi`</cite> while profiling may lead to undefined tools’ behavior.</p></li>
|
| 164 |
+
</ul>
|
| 165 |
+
<ul class="simple">
|
| 166 |
+
<li><p>Profiling CUDA graph kernel nodes that can launch device graphs or are part of device-launchable graphs is not supported. Use <a class="reference external" href="../NsightComputeCli/index.html#command-line-options-profile">Graph Profiling</a> mode instead.</p></li>
|
| 167 |
+
<li><p>Profiling in <a class="reference external" href="../NsightComputeCli/index.html#command-line-options-profile">Graph Profiling</a> mode is performed on the context that is specified by the stream handle for the graph launch. Consequently, only memory allocated on this context is saved off and restored during graph replay and only kernel nodes executed on this context are profiled.</p></li>
|
| 168 |
+
</ul>
|
| 169 |
+
<ul class="simple">
|
| 170 |
+
<li><p>On CUDA drivers older than 530.x, profiling on Windows Subsystem for Linux (WSL) is not supported if the system has multiple physical NVIDIA GPUs. This is not affected by setting <code class="docutils literal notranslate"><span class="pre">CUDA_VISIBLE_DEVICES</span></code>.</p></li>
|
| 171 |
+
<li><p>Collecting software counters through PerfWorks currently forces all functions in the module of the profiled kernel to be loaded. This increases the host and device memory footprint of the target application for the remainder of the process lifetime.</p></li>
|
| 172 |
+
<li><p>PM Sampling is not supported when collecting a Profile Series.</p></li>
|
| 173 |
+
</ul>
|
| 174 |
+
<p><strong>Compatibility</strong></p>
|
| 175 |
+
<ul class="simple">
|
| 176 |
+
<li><p>Applications calling blocking functions on std input/output streams can result in the profiler to stop, until the blocking function call is resolved.</p></li>
|
| 177 |
+
<li><p>NVIDIA Nsight Compute can hang on applications using RAPIDS in versions 0.6 and 0.7, due to an issue in cuDF.</p></li>
|
| 178 |
+
<li><p>Profiling child processes launched via <code class="docutils literal notranslate"><span class="pre">clone()</span></code> is not supported.</p></li>
|
| 179 |
+
<li><p>Profiling child processes launched from Python using <code class="docutils literal notranslate"><span class="pre">os.system()</span></code> is not supported on ppc64le.</p></li>
|
| 180 |
+
<li><p>Profiling of Cooperative Groups kernels launched with <code class="docutils literal notranslate"><span class="pre">cuLaunchCooperativeKernelMultiDevice</span></code> is not yet supported.</p></li>
|
| 181 |
+
<li><p>On Linux systems, when profiling <em>bsd-csh</em> scripts, the original application output will not be printed. As a workaround, use a different C-shell, e.g. <em>tcsh</em>.</p></li>
|
| 182 |
+
<li><p>Attempting to use the <code class="docutils literal notranslate"><span class="pre">--clock-control</span></code> option to set the GPU clocks will fail when profiling on a GPU partition. Please use <code class="docutils literal notranslate"><span class="pre">nvidia-smi</span></code> (installed with NVIDIA display driver) to control the clocks for the entire GPU. This will require administrative privileges when the GPU is partitioned.</p></li>
|
| 183 |
+
<li><p>On Linux aarch64, NVIDIA Nsight Compute does not work if the <em>HOME</em> environment variable is not set.</p></li>
|
| 184 |
+
<li><p>NVIDIA Nsight Compute versions 2020.1.0 to 2020.2.1 are not compatible with CUDA driver version 460+ if the application launches Cooperative Groups kernels. Profiling will fail with error “UnknownError”.</p></li>
|
| 185 |
+
<li><p>Collecting CPU call stack information on Windows Server 2016 can hang NVIDIA Nsight Compute in some cases. Currently, the only workaround is to skip CPU call stack collection on such systems by not specifying the option <code class="docutils literal notranslate"><span class="pre">--call-stack</span></code>.</p></li>
|
| 186 |
+
<li><p>When profiling a script, <code class="docutils literal notranslate"><span class="pre">--target-processes</span> <span class="pre">all</span></code> may target utility executables such as <em>xargs</em>, <em>uname</em> or <em>ls</em>. To avoid profiling these, use the <code class="docutils literal notranslate"><span class="pre">--target-processes-filter</span></code> option accordingly.</p></li>
|
| 187 |
+
<li><p>On mobile platforms, <code class="docutils literal notranslate"><span class="pre">--kill</span></code> option is not supported with application replay mode.</p></li>
|
| 188 |
+
<li><p>NVIDIA Nsight Compute might show invalid characters for Unicode names and paths on Windows 10. As a workaround, use a third-party terminal emulator, e.g. Git bash.</p></li>
|
| 189 |
+
</ul>
|
| 190 |
+
<p><strong>User Interface</strong></p>
|
| 191 |
+
<ul class="simple">
|
| 192 |
+
<li><p>The API Statistics filter in NVIDIA Nsight Compute does not support units.</p></li>
|
| 193 |
+
<li><p>File size is the only property considered when resolving source files. Timestamps are currently ignored.</p></li>
|
| 194 |
+
<li><p>Terminating or disconnecting an application in the <em>Interactive Profiling</em> activity while the API Stream View is updated can lead to a crash.</p></li>
|
| 195 |
+
<li><p>See the <a class="reference external" href="index.html#library-support-optix">OptiX library support section</a> for limitations concerning the <a class="reference external" href="../NsightCompute/index.html#as-viewer">Acceleration Structure Viewer</a>.</p></li>
|
| 196 |
+
<li><p>After updating from a previous version of NVIDIA Nsight Compute on Linux, the file load dialog may not allow column resizing and sorting. As a workaround, the <em>~/.config/QtProject.conf</em> file can be edited to remove the <em>treeViewHeader</em> entry from the <em>[FileDialog]</em> section.</p></li>
|
| 197 |
+
</ul>
|
| 198 |
+
</section>
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
</div>
|
| 202 |
+
</div>
|
| 203 |
+
<footer>
|
| 204 |
+
|
| 205 |
+
<hr/>
|
| 206 |
+
|
| 207 |
+
<div role="contentinfo">
|
| 208 |
+
<p>© Copyright 2018-2024, NVIDIA Corporation & Affiliates. All rights reserved.
|
| 209 |
+
<span class="lastupdated">Last updated on Mar 06, 2024.
|
| 210 |
+
</span></p>
|
| 211 |
+
</div>
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
</footer>
|
| 216 |
+
</div>
|
| 217 |
+
</div>
|
| 218 |
+
</section>
|
| 219 |
+
</div>
|
| 220 |
+
<script>
|
| 221 |
+
jQuery(function () {
|
| 222 |
+
SphinxRtdTheme.Navigation.enable(true);
|
| 223 |
+
});
|
| 224 |
+
</script>
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
</body>
|
| 230 |
+
</html>
|
cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ReleaseNotes/topics/library-support-optix.html
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html class="writer-html5" lang="en" >
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
| 5 |
+
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
+
<title>OptiX — NsightCompute 12.4 documentation</title>
|
| 8 |
+
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
| 9 |
+
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
|
| 10 |
+
<link rel="stylesheet" href="../../_static/design-style.b7bb847fb20b106c3d81b95245e65545.min.css" type="text/css" />
|
| 11 |
+
<link rel="stylesheet" href="../../_static/omni-style.css" type="text/css" />
|
| 12 |
+
<link rel="stylesheet" href="../../_static/api-styles.css" type="text/css" />
|
| 13 |
+
<link rel="shortcut icon" href="../../_static/nsight-compute.ico"/>
|
| 14 |
+
<!--[if lt IE 9]>
|
| 15 |
+
<script src="../../_static/js/html5shiv.min.js"></script>
|
| 16 |
+
<![endif]-->
|
| 17 |
+
|
| 18 |
+
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
|
| 19 |
+
<script src="../../_static/jquery.js"></script>
|
| 20 |
+
<script src="../../_static/underscore.js"></script>
|
| 21 |
+
<script src="../../_static/doctools.js"></script>
|
| 22 |
+
<script src="../../_static/mermaid-init.js"></script>
|
| 23 |
+
<script src="../../_static/design-tabs.js"></script>
|
| 24 |
+
<script src="../../_static/version.js"></script>
|
| 25 |
+
<script src="../../_static/social-media.js"></script>
|
| 26 |
+
<script src="../../_static/js/theme.js"></script>
|
| 27 |
+
<link rel="index" title="Index" href="../../genindex.html" />
|
| 28 |
+
<link rel="search" title="Search" href="../../search.html" />
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
</head>
|
| 33 |
+
|
| 34 |
+
<body class="wy-body-for-nav">
|
| 35 |
+
<div class="wy-grid-for-nav">
|
| 36 |
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
| 37 |
+
<div class="wy-side-scroll">
|
| 38 |
+
<div class="wy-side-nav-search" >
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
<a href="../../index.html">
|
| 42 |
+
<img src="../../_static/nsight-compute.png" class="logo" alt="Logo"/>
|
| 43 |
+
</a>
|
| 44 |
+
|
| 45 |
+
<div role="search">
|
| 46 |
+
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
|
| 47 |
+
<input type="text" name="q" placeholder="Search docs" />
|
| 48 |
+
<input type="hidden" name="check_keywords" value="yes" />
|
| 49 |
+
<input type="hidden" name="area" value="default" />
|
| 50 |
+
</form>
|
| 51 |
+
</div>
|
| 52 |
+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
| 53 |
+
<p class="caption" role="heading"><span class="caption-text">Nsight Compute</span></p>
|
| 54 |
+
<ul>
|
| 55 |
+
<li class="toctree-l1"><a class="reference internal" href="../index.html">1. Release Notes</a></li>
|
| 56 |
+
<li class="toctree-l1"><a class="reference internal" href="../../ProfilingGuide/index.html">2. Kernel Profiling Guide</a></li>
|
| 57 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NsightCompute/index.html">3. Nsight Compute</a></li>
|
| 58 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NsightComputeCli/index.html">4. Nsight Compute CLI</a></li>
|
| 59 |
+
</ul>
|
| 60 |
+
<p class="caption" role="heading"><span class="caption-text">Developer Interfaces</span></p>
|
| 61 |
+
<ul>
|
| 62 |
+
<li class="toctree-l1"><a class="reference internal" href="../../CustomizationGuide/index.html">1. Customization Guide</a></li>
|
| 63 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NvRulesAPI/index.html">2. NvRules API</a></li>
|
| 64 |
+
</ul>
|
| 65 |
+
<p class="caption" role="heading"><span class="caption-text">Training</span></p>
|
| 66 |
+
<ul>
|
| 67 |
+
<li class="toctree-l1"><a class="reference internal" href="../../Training/index.html">Training</a></li>
|
| 68 |
+
</ul>
|
| 69 |
+
<p class="caption" role="heading"><span class="caption-text">Release Information</span></p>
|
| 70 |
+
<ul>
|
| 71 |
+
<li class="toctree-l1"><a class="reference internal" href="../../Archives/index.html">Archives</a></li>
|
| 72 |
+
</ul>
|
| 73 |
+
<p class="caption" role="heading"><span class="caption-text">Copyright and Licenses</span></p>
|
| 74 |
+
<ul>
|
| 75 |
+
<li class="toctree-l1"><a class="reference internal" href="../../CopyrightAndLicenses/index.html">Copyright and Licenses</a></li>
|
| 76 |
+
</ul>
|
| 77 |
+
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
</nav>
|
| 81 |
+
|
| 82 |
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
| 83 |
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
| 84 |
+
<a href="../../index.html">NsightCompute</a>
|
| 85 |
+
</nav>
|
| 86 |
+
|
| 87 |
+
<div class="wy-nav-content">
|
| 88 |
+
<div class="rst-content">
|
| 89 |
+
<div role="navigation" aria-label="Page navigation">
|
| 90 |
+
<ul class="wy-breadcrumbs">
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
<li><a href="../../index.html" class="icon icon-home"></a> »</li>
|
| 94 |
+
<li>OptiX</li>
|
| 95 |
+
|
| 96 |
+
<li class="wy-breadcrumbs-aside">
|
| 97 |
+
</li>
|
| 98 |
+
<li class="wy-breadcrumbs-aside">
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
<span>v2024.1.1 |</span>
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
<a href="https://developer.nvidia.com/nsight-compute-history" class="reference external">Archive</a>
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
<span> </span>
|
| 109 |
+
</li>
|
| 110 |
+
|
| 111 |
+
</ul>
|
| 112 |
+
<hr/>
|
| 113 |
+
</div>
|
| 114 |
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
| 115 |
+
<div itemprop="articleBody">
|
| 116 |
+
|
| 117 |
+
<section id="optix">
|
| 118 |
+
<h1>OptiX<a class="headerlink" href="#optix" title="Permalink to this headline"></a></h1>
|
| 119 |
+
<p>NVIDIA Nsight Compute supports profiling of OptiX applications, but with certain restrictions.</p>
|
| 120 |
+
<ul>
|
| 121 |
+
<li><p><strong>Internal Kernels</strong></p>
|
| 122 |
+
<p>Kernels launched by OptiX that contain no user-defined code are given the generic name <em>NVIDIA internal</em>. These kernels show up on the API Stream in the NVIDIA Nsight Compute UI, and can be profiled in both the UI as well as the NVIDIA Nsight Compute CLI. However, no CUDA-C source, PTX or SASS is available for them.</p>
|
| 123 |
+
</li>
|
| 124 |
+
<li><p><strong>User Kernels</strong></p>
|
| 125 |
+
<p>Kernels launched by OptiX can contain user-defined code. OptiX identifies these kernels in the API Stream with a custom name. This name starts with <em>raygen__</em> (for “ray generation”). These kernels show up on the API Stream and can be profiled in the UI as well as the NVIDIA Nsight Compute CLI. The Source page displays CUDA-C source, PTX and SASS defined by the user. Certain parts of the kernel, including device functions that contain OptiX-internal code, will not be available in the Source page.</p>
|
| 126 |
+
</li>
|
| 127 |
+
<li><p><strong>SASS</strong></p>
|
| 128 |
+
<p>When SASS information is available in the profile report, certain instructions might not be available in the Source page and shown as <em>N/A</em>.</p>
|
| 129 |
+
</li>
|
| 130 |
+
</ul>
|
| 131 |
+
<p>The <a class="reference external" href="../NsightCompute/index.html#as-viewer">Acceleration Structure Viewer</a> for OptiX traversable handles currently has the following limitations:</p>
|
| 132 |
+
<ul class="simple">
|
| 133 |
+
<li><p>The <a class="reference external" href="../NsightCompute/index.html#as-viewer">Acceleration Structure Viewer</a> is not supported on MacOSX.</p></li>
|
| 134 |
+
<li><p>Viewing instance acceleration structures using multi-level instancing is not supported.</p></li>
|
| 135 |
+
<li><p>Applying motion traversables to acceleration structures is not supported.</p></li>
|
| 136 |
+
</ul>
|
| 137 |
+
<p>The following feature set is supported per OptiX API version:</p>
|
| 138 |
+
<table class="table-no-stripes docutils align-default">
|
| 139 |
+
<colgroup>
|
| 140 |
+
<col style="width: 26%" />
|
| 141 |
+
<col style="width: 24%" />
|
| 142 |
+
<col style="width: 24%" />
|
| 143 |
+
<col style="width: 26%" />
|
| 144 |
+
</colgroup>
|
| 145 |
+
<tbody>
|
| 146 |
+
<tr class="row-odd"><td><p><strong>OptiX API Version</strong></p></td>
|
| 147 |
+
<td><p><strong>Kernel Profiling</strong></p></td>
|
| 148 |
+
<td><p><strong>API Interception</strong></p></td>
|
| 149 |
+
<td><p><strong>Resource Tracking</strong></p></td>
|
| 150 |
+
</tr>
|
| 151 |
+
<tr class="row-even"><td><p>6.x</p></td>
|
| 152 |
+
<td><p>Yes</p></td>
|
| 153 |
+
<td><p>No</p></td>
|
| 154 |
+
<td><p>No</p></td>
|
| 155 |
+
</tr>
|
| 156 |
+
<tr class="row-odd"><td><p>7.0 - 8.0</p></td>
|
| 157 |
+
<td><p>Yes</p></td>
|
| 158 |
+
<td><p>Yes</p></td>
|
| 159 |
+
<td><p>Yes</p></td>
|
| 160 |
+
</tr>
|
| 161 |
+
</tbody>
|
| 162 |
+
</table>
|
| 163 |
+
</section>
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
</div>
|
| 167 |
+
</div>
|
| 168 |
+
<footer>
|
| 169 |
+
|
| 170 |
+
<hr/>
|
| 171 |
+
|
| 172 |
+
<div role="contentinfo">
|
| 173 |
+
<p>© Copyright 2018-2024, NVIDIA Corporation & Affiliates. All rights reserved.
|
| 174 |
+
<span class="lastupdated">Last updated on Mar 06, 2024.
|
| 175 |
+
</span></p>
|
| 176 |
+
</div>
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
</footer>
|
| 181 |
+
</div>
|
| 182 |
+
</div>
|
| 183 |
+
</section>
|
| 184 |
+
</div>
|
| 185 |
+
<script>
|
| 186 |
+
jQuery(function () {
|
| 187 |
+
SphinxRtdTheme.Navigation.enable(true);
|
| 188 |
+
});
|
| 189 |
+
</script>
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
</body>
|
| 195 |
+
</html>
|
cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ReleaseNotes/topics/library-support.html
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|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|
| 5 |
+
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
+
<title>Library Support — NsightCompute 12.4 documentation</title>
|
| 8 |
+
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
| 9 |
+
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
|
| 10 |
+
<link rel="stylesheet" href="../../_static/design-style.b7bb847fb20b106c3d81b95245e65545.min.css" type="text/css" />
|
| 11 |
+
<link rel="stylesheet" href="../../_static/omni-style.css" type="text/css" />
|
| 12 |
+
<link rel="stylesheet" href="../../_static/api-styles.css" type="text/css" />
|
| 13 |
+
<link rel="shortcut icon" href="../../_static/nsight-compute.ico"/>
|
| 14 |
+
<!--[if lt IE 9]>
|
| 15 |
+
<script src="../../_static/js/html5shiv.min.js"></script>
|
| 16 |
+
<![endif]-->
|
| 17 |
+
|
| 18 |
+
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
|
| 19 |
+
<script src="../../_static/jquery.js"></script>
|
| 20 |
+
<script src="../../_static/underscore.js"></script>
|
| 21 |
+
<script src="../../_static/doctools.js"></script>
|
| 22 |
+
<script src="../../_static/mermaid-init.js"></script>
|
| 23 |
+
<script src="../../_static/design-tabs.js"></script>
|
| 24 |
+
<script src="../../_static/version.js"></script>
|
| 25 |
+
<script src="../../_static/social-media.js"></script>
|
| 26 |
+
<script src="../../_static/js/theme.js"></script>
|
| 27 |
+
<link rel="index" title="Index" href="../../genindex.html" />
|
| 28 |
+
<link rel="search" title="Search" href="../../search.html" />
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
</head>
|
| 33 |
+
|
| 34 |
+
<body class="wy-body-for-nav">
|
| 35 |
+
<div class="wy-grid-for-nav">
|
| 36 |
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
| 37 |
+
<div class="wy-side-scroll">
|
| 38 |
+
<div class="wy-side-nav-search" >
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
<a href="../../index.html">
|
| 42 |
+
<img src="../../_static/nsight-compute.png" class="logo" alt="Logo"/>
|
| 43 |
+
</a>
|
| 44 |
+
|
| 45 |
+
<div role="search">
|
| 46 |
+
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
|
| 47 |
+
<input type="text" name="q" placeholder="Search docs" />
|
| 48 |
+
<input type="hidden" name="check_keywords" value="yes" />
|
| 49 |
+
<input type="hidden" name="area" value="default" />
|
| 50 |
+
</form>
|
| 51 |
+
</div>
|
| 52 |
+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
| 53 |
+
<p class="caption" role="heading"><span class="caption-text">Nsight Compute</span></p>
|
| 54 |
+
<ul>
|
| 55 |
+
<li class="toctree-l1"><a class="reference internal" href="../index.html">1. Release Notes</a></li>
|
| 56 |
+
<li class="toctree-l1"><a class="reference internal" href="../../ProfilingGuide/index.html">2. Kernel Profiling Guide</a></li>
|
| 57 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NsightCompute/index.html">3. Nsight Compute</a></li>
|
| 58 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NsightComputeCli/index.html">4. Nsight Compute CLI</a></li>
|
| 59 |
+
</ul>
|
| 60 |
+
<p class="caption" role="heading"><span class="caption-text">Developer Interfaces</span></p>
|
| 61 |
+
<ul>
|
| 62 |
+
<li class="toctree-l1"><a class="reference internal" href="../../CustomizationGuide/index.html">1. Customization Guide</a></li>
|
| 63 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NvRulesAPI/index.html">2. NvRules API</a></li>
|
| 64 |
+
</ul>
|
| 65 |
+
<p class="caption" role="heading"><span class="caption-text">Training</span></p>
|
| 66 |
+
<ul>
|
| 67 |
+
<li class="toctree-l1"><a class="reference internal" href="../../Training/index.html">Training</a></li>
|
| 68 |
+
</ul>
|
| 69 |
+
<p class="caption" role="heading"><span class="caption-text">Release Information</span></p>
|
| 70 |
+
<ul>
|
| 71 |
+
<li class="toctree-l1"><a class="reference internal" href="../../Archives/index.html">Archives</a></li>
|
| 72 |
+
</ul>
|
| 73 |
+
<p class="caption" role="heading"><span class="caption-text">Copyright and Licenses</span></p>
|
| 74 |
+
<ul>
|
| 75 |
+
<li class="toctree-l1"><a class="reference internal" href="../../CopyrightAndLicenses/index.html">Copyright and Licenses</a></li>
|
| 76 |
+
</ul>
|
| 77 |
+
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
</nav>
|
| 81 |
+
|
| 82 |
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
| 83 |
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
| 84 |
+
<a href="../../index.html">NsightCompute</a>
|
| 85 |
+
</nav>
|
| 86 |
+
|
| 87 |
+
<div class="wy-nav-content">
|
| 88 |
+
<div class="rst-content">
|
| 89 |
+
<div role="navigation" aria-label="Page navigation">
|
| 90 |
+
<ul class="wy-breadcrumbs">
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
<li><a href="../../index.html" class="icon icon-home"></a> »</li>
|
| 94 |
+
<li>Library Support</li>
|
| 95 |
+
|
| 96 |
+
<li class="wy-breadcrumbs-aside">
|
| 97 |
+
</li>
|
| 98 |
+
<li class="wy-breadcrumbs-aside">
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
<span>v2024.1.1 |</span>
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
<a href="https://developer.nvidia.com/nsight-compute-history" class="reference external">Archive</a>
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
<span> </span>
|
| 109 |
+
</li>
|
| 110 |
+
|
| 111 |
+
</ul>
|
| 112 |
+
<hr/>
|
| 113 |
+
</div>
|
| 114 |
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
| 115 |
+
<div itemprop="articleBody">
|
| 116 |
+
|
| 117 |
+
<section id="library-support">
|
| 118 |
+
<h1>Library Support<a class="headerlink" href="#library-support" title="Permalink to this headline"></a></h1>
|
| 119 |
+
<p>NVIDIA Nsight Compute can be used to profile CUDA applications, as well as applications that use CUDA via NVIDIA or third-party libraries. For most such libraries, the behavior is expected to be identical to applications using CUDA directly. However, for certain libraries, NVIDIA Nsight Compute has certain restrictions, alternate behavior, or requires non-default setup steps prior to profiling.</p>
|
| 120 |
+
</section>
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
<footer>
|
| 126 |
+
|
| 127 |
+
<hr/>
|
| 128 |
+
|
| 129 |
+
<div role="contentinfo">
|
| 130 |
+
<p>© Copyright 2018-2024, NVIDIA Corporation & Affiliates. All rights reserved.
|
| 131 |
+
<span class="lastupdated">Last updated on Mar 06, 2024.
|
| 132 |
+
</span></p>
|
| 133 |
+
</div>
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
</footer>
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</section>
|
| 141 |
+
</div>
|
| 142 |
+
<script>
|
| 143 |
+
jQuery(function () {
|
| 144 |
+
SphinxRtdTheme.Navigation.enable(true);
|
| 145 |
+
});
|
| 146 |
+
</script>
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
</body>
|
| 152 |
+
</html>
|
cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ReleaseNotes/topics/platform-support.html
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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writer-html5" lang="en" >
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
| 5 |
+
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
+
<title>Platform Support — NsightCompute 12.4 documentation</title>
|
| 8 |
+
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
| 9 |
+
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
|
| 10 |
+
<link rel="stylesheet" href="../../_static/design-style.b7bb847fb20b106c3d81b95245e65545.min.css" type="text/css" />
|
| 11 |
+
<link rel="stylesheet" href="../../_static/omni-style.css" type="text/css" />
|
| 12 |
+
<link rel="stylesheet" href="../../_static/api-styles.css" type="text/css" />
|
| 13 |
+
<link rel="shortcut icon" href="../../_static/nsight-compute.ico"/>
|
| 14 |
+
<!--[if lt IE 9]>
|
| 15 |
+
<script src="../../_static/js/html5shiv.min.js"></script>
|
| 16 |
+
<![endif]-->
|
| 17 |
+
|
| 18 |
+
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
|
| 19 |
+
<script src="../../_static/jquery.js"></script>
|
| 20 |
+
<script src="../../_static/underscore.js"></script>
|
| 21 |
+
<script src="../../_static/doctools.js"></script>
|
| 22 |
+
<script src="../../_static/mermaid-init.js"></script>
|
| 23 |
+
<script src="../../_static/design-tabs.js"></script>
|
| 24 |
+
<script src="../../_static/version.js"></script>
|
| 25 |
+
<script src="../../_static/social-media.js"></script>
|
| 26 |
+
<script src="../../_static/js/theme.js"></script>
|
| 27 |
+
<link rel="index" title="Index" href="../../genindex.html" />
|
| 28 |
+
<link rel="search" title="Search" href="../../search.html" />
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
</head>
|
| 33 |
+
|
| 34 |
+
<body class="wy-body-for-nav">
|
| 35 |
+
<div class="wy-grid-for-nav">
|
| 36 |
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
| 37 |
+
<div class="wy-side-scroll">
|
| 38 |
+
<div class="wy-side-nav-search" >
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
<a href="../../index.html">
|
| 42 |
+
<img src="../../_static/nsight-compute.png" class="logo" alt="Logo"/>
|
| 43 |
+
</a>
|
| 44 |
+
|
| 45 |
+
<div role="search">
|
| 46 |
+
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
|
| 47 |
+
<input type="text" name="q" placeholder="Search docs" />
|
| 48 |
+
<input type="hidden" name="check_keywords" value="yes" />
|
| 49 |
+
<input type="hidden" name="area" value="default" />
|
| 50 |
+
</form>
|
| 51 |
+
</div>
|
| 52 |
+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
| 53 |
+
<p class="caption" role="heading"><span class="caption-text">Nsight Compute</span></p>
|
| 54 |
+
<ul>
|
| 55 |
+
<li class="toctree-l1"><a class="reference internal" href="../index.html">1. Release Notes</a></li>
|
| 56 |
+
<li class="toctree-l1"><a class="reference internal" href="../../ProfilingGuide/index.html">2. Kernel Profiling Guide</a></li>
|
| 57 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NsightCompute/index.html">3. Nsight Compute</a></li>
|
| 58 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NsightComputeCli/index.html">4. Nsight Compute CLI</a></li>
|
| 59 |
+
</ul>
|
| 60 |
+
<p class="caption" role="heading"><span class="caption-text">Developer Interfaces</span></p>
|
| 61 |
+
<ul>
|
| 62 |
+
<li class="toctree-l1"><a class="reference internal" href="../../CustomizationGuide/index.html">1. Customization Guide</a></li>
|
| 63 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NvRulesAPI/index.html">2. NvRules API</a></li>
|
| 64 |
+
</ul>
|
| 65 |
+
<p class="caption" role="heading"><span class="caption-text">Training</span></p>
|
| 66 |
+
<ul>
|
| 67 |
+
<li class="toctree-l1"><a class="reference internal" href="../../Training/index.html">Training</a></li>
|
| 68 |
+
</ul>
|
| 69 |
+
<p class="caption" role="heading"><span class="caption-text">Release Information</span></p>
|
| 70 |
+
<ul>
|
| 71 |
+
<li class="toctree-l1"><a class="reference internal" href="../../Archives/index.html">Archives</a></li>
|
| 72 |
+
</ul>
|
| 73 |
+
<p class="caption" role="heading"><span class="caption-text">Copyright and Licenses</span></p>
|
| 74 |
+
<ul>
|
| 75 |
+
<li class="toctree-l1"><a class="reference internal" href="../../CopyrightAndLicenses/index.html">Copyright and Licenses</a></li>
|
| 76 |
+
</ul>
|
| 77 |
+
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
</nav>
|
| 81 |
+
|
| 82 |
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
| 83 |
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
| 84 |
+
<a href="../../index.html">NsightCompute</a>
|
| 85 |
+
</nav>
|
| 86 |
+
|
| 87 |
+
<div class="wy-nav-content">
|
| 88 |
+
<div class="rst-content">
|
| 89 |
+
<div role="navigation" aria-label="Page navigation">
|
| 90 |
+
<ul class="wy-breadcrumbs">
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
<li><a href="../../index.html" class="icon icon-home"></a> »</li>
|
| 94 |
+
<li>Platform Support</li>
|
| 95 |
+
|
| 96 |
+
<li class="wy-breadcrumbs-aside">
|
| 97 |
+
</li>
|
| 98 |
+
<li class="wy-breadcrumbs-aside">
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
<span>v2024.1.1 |</span>
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
<a href="https://developer.nvidia.com/nsight-compute-history" class="reference external">Archive</a>
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
<span> </span>
|
| 109 |
+
</li>
|
| 110 |
+
|
| 111 |
+
</ul>
|
| 112 |
+
<hr/>
|
| 113 |
+
</div>
|
| 114 |
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
| 115 |
+
<div itemprop="articleBody">
|
| 116 |
+
|
| 117 |
+
<section id="platform-support">
|
| 118 |
+
<h1>Platform Support<a class="headerlink" href="#platform-support" title="Permalink to this headline"></a></h1>
|
| 119 |
+
<p>Host denotes the UI can run on that platform. Target means that we can instrument applications on that platform for data collection. Applications launched with instrumentation on a target system can be connected to from most host platforms. The reports collected on one system can be opened on any other system.</p>
|
| 120 |
+
<table class="docutils align-default" id="id1">
|
| 121 |
+
<caption><span class="caption-text">Table 1. Platforms supported by NVIDIA Nsight Compute</span><a class="headerlink" href="#id1" title="Permalink to this table"></a></caption>
|
| 122 |
+
<colgroup>
|
| 123 |
+
<col style="width: 31%" />
|
| 124 |
+
<col style="width: 5%" />
|
| 125 |
+
<col style="width: 64%" />
|
| 126 |
+
</colgroup>
|
| 127 |
+
<thead>
|
| 128 |
+
<tr class="row-odd"><th class="head"></th>
|
| 129 |
+
<th class="head"><p>Host</p></th>
|
| 130 |
+
<th class="head"><p>Targets</p></th>
|
| 131 |
+
</tr>
|
| 132 |
+
</thead>
|
| 133 |
+
<tbody>
|
| 134 |
+
<tr class="row-even"><td><p>Windows</p></td>
|
| 135 |
+
<td><p>Yes</p></td>
|
| 136 |
+
<td><p>Windows*, Linux (x86_64)</p></td>
|
| 137 |
+
</tr>
|
| 138 |
+
<tr class="row-odd"><td><p>Windows Subsystem for Linux (WSL2)</p></td>
|
| 139 |
+
<td><p>Yes</p></td>
|
| 140 |
+
<td><p>Windows Subsystem for Linux (WSL2) as part of the Linux (x86_64) package.</p></td>
|
| 141 |
+
</tr>
|
| 142 |
+
<tr class="row-even"><td><p>Linux (x86_64)</p></td>
|
| 143 |
+
<td><p>Yes</p></td>
|
| 144 |
+
<td><p>Windows*, Linux (x86_64), Linux (ppc64le), Linux (aarch64 sbsa)</p></td>
|
| 145 |
+
</tr>
|
| 146 |
+
<tr class="row-odd"><td><p>Linux (ppc64le)</p></td>
|
| 147 |
+
<td><p>No</p></td>
|
| 148 |
+
<td><p>Linux (ppc64le)</p></td>
|
| 149 |
+
</tr>
|
| 150 |
+
<tr class="row-even"><td><p>Linux (aarch64 sbsa)</p></td>
|
| 151 |
+
<td><p>Yes</p></td>
|
| 152 |
+
<td><p>Linux (aarch64 sbsa)</p></td>
|
| 153 |
+
</tr>
|
| 154 |
+
<tr class="row-odd"><td><p>Linux (x86_64) (Drive SDK)</p></td>
|
| 155 |
+
<td><p>Yes</p></td>
|
| 156 |
+
<td><p>Windows*, Linux (x86_64), Linux (aarch64), QNX</p></td>
|
| 157 |
+
</tr>
|
| 158 |
+
<tr class="row-even"><td><p>MacOSX 11+</p></td>
|
| 159 |
+
<td><p>Yes</p></td>
|
| 160 |
+
<td><p>Windows*, Linux (x86_64), Linux (ppc64le)</p></td>
|
| 161 |
+
</tr>
|
| 162 |
+
<tr class="row-odd"><td><p>Linux (aarch64)</p></td>
|
| 163 |
+
<td><p>No</p></td>
|
| 164 |
+
<td><p>Linux (aarch64)</p></td>
|
| 165 |
+
</tr>
|
| 166 |
+
<tr class="row-even"><td><p>QNX</p></td>
|
| 167 |
+
<td><p>No</p></td>
|
| 168 |
+
<td><p>QNX</p></td>
|
| 169 |
+
</tr>
|
| 170 |
+
</tbody>
|
| 171 |
+
</table>
|
| 172 |
+
<p>Target platforms marked with * do not support remote launch from the respective host. Remote launch means that the application can be launched on the target system from the host UI. Instead, the application must be launched from the target system.</p>
|
| 173 |
+
<p>Profiling of 32-bit processes is not supported.</p>
|
| 174 |
+
</section>
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
<footer>
|
| 180 |
+
|
| 181 |
+
<hr/>
|
| 182 |
+
|
| 183 |
+
<div role="contentinfo">
|
| 184 |
+
<p>© Copyright 2018-2024, NVIDIA Corporation & Affiliates. All rights reserved.
|
| 185 |
+
<span class="lastupdated">Last updated on Mar 06, 2024.
|
| 186 |
+
</span></p>
|
| 187 |
+
</div>
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
</footer>
|
| 192 |
+
</div>
|
| 193 |
+
</div>
|
| 194 |
+
</section>
|
| 195 |
+
</div>
|
| 196 |
+
<script>
|
| 197 |
+
jQuery(function () {
|
| 198 |
+
SphinxRtdTheme.Navigation.enable(true);
|
| 199 |
+
});
|
| 200 |
+
</script>
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
</body>
|
| 206 |
+
</html>
|
cuda_toolkit/nsight-compute/nsight-compute/2024.1.1/docs/ReleaseNotes/topics/release-notes-older-versions.html
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html class="writer-html5" lang="en" >
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
| 5 |
+
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
+
<title>Older Versions — NsightCompute 12.4 documentation</title>
|
| 8 |
+
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
| 9 |
+
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
|
| 10 |
+
<link rel="stylesheet" href="../../_static/design-style.b7bb847fb20b106c3d81b95245e65545.min.css" type="text/css" />
|
| 11 |
+
<link rel="stylesheet" href="../../_static/omni-style.css" type="text/css" />
|
| 12 |
+
<link rel="stylesheet" href="../../_static/api-styles.css" type="text/css" />
|
| 13 |
+
<link rel="shortcut icon" href="../../_static/nsight-compute.ico"/>
|
| 14 |
+
<!--[if lt IE 9]>
|
| 15 |
+
<script src="../../_static/js/html5shiv.min.js"></script>
|
| 16 |
+
<![endif]-->
|
| 17 |
+
|
| 18 |
+
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
|
| 19 |
+
<script src="../../_static/jquery.js"></script>
|
| 20 |
+
<script src="../../_static/underscore.js"></script>
|
| 21 |
+
<script src="../../_static/doctools.js"></script>
|
| 22 |
+
<script src="../../_static/mermaid-init.js"></script>
|
| 23 |
+
<script src="../../_static/design-tabs.js"></script>
|
| 24 |
+
<script src="../../_static/version.js"></script>
|
| 25 |
+
<script src="../../_static/social-media.js"></script>
|
| 26 |
+
<script src="../../_static/js/theme.js"></script>
|
| 27 |
+
<link rel="index" title="Index" href="../../genindex.html" />
|
| 28 |
+
<link rel="search" title="Search" href="../../search.html" />
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
</head>
|
| 33 |
+
|
| 34 |
+
<body class="wy-body-for-nav">
|
| 35 |
+
<div class="wy-grid-for-nav">
|
| 36 |
+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
| 37 |
+
<div class="wy-side-scroll">
|
| 38 |
+
<div class="wy-side-nav-search" >
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
<a href="../../index.html">
|
| 42 |
+
<img src="../../_static/nsight-compute.png" class="logo" alt="Logo"/>
|
| 43 |
+
</a>
|
| 44 |
+
|
| 45 |
+
<div role="search">
|
| 46 |
+
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
|
| 47 |
+
<input type="text" name="q" placeholder="Search docs" />
|
| 48 |
+
<input type="hidden" name="check_keywords" value="yes" />
|
| 49 |
+
<input type="hidden" name="area" value="default" />
|
| 50 |
+
</form>
|
| 51 |
+
</div>
|
| 52 |
+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
| 53 |
+
<p class="caption" role="heading"><span class="caption-text">Nsight Compute</span></p>
|
| 54 |
+
<ul>
|
| 55 |
+
<li class="toctree-l1"><a class="reference internal" href="../index.html">1. Release Notes</a></li>
|
| 56 |
+
<li class="toctree-l1"><a class="reference internal" href="../../ProfilingGuide/index.html">2. Kernel Profiling Guide</a></li>
|
| 57 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NsightCompute/index.html">3. Nsight Compute</a></li>
|
| 58 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NsightComputeCli/index.html">4. Nsight Compute CLI</a></li>
|
| 59 |
+
</ul>
|
| 60 |
+
<p class="caption" role="heading"><span class="caption-text">Developer Interfaces</span></p>
|
| 61 |
+
<ul>
|
| 62 |
+
<li class="toctree-l1"><a class="reference internal" href="../../CustomizationGuide/index.html">1. Customization Guide</a></li>
|
| 63 |
+
<li class="toctree-l1"><a class="reference internal" href="../../NvRulesAPI/index.html">2. NvRules API</a></li>
|
| 64 |
+
</ul>
|
| 65 |
+
<p class="caption" role="heading"><span class="caption-text">Training</span></p>
|
| 66 |
+
<ul>
|
| 67 |
+
<li class="toctree-l1"><a class="reference internal" href="../../Training/index.html">Training</a></li>
|
| 68 |
+
</ul>
|
| 69 |
+
<p class="caption" role="heading"><span class="caption-text">Release Information</span></p>
|
| 70 |
+
<ul>
|
| 71 |
+
<li class="toctree-l1"><a class="reference internal" href="../../Archives/index.html">Archives</a></li>
|
| 72 |
+
</ul>
|
| 73 |
+
<p class="caption" role="heading"><span class="caption-text">Copyright and Licenses</span></p>
|
| 74 |
+
<ul>
|
| 75 |
+
<li class="toctree-l1"><a class="reference internal" href="../../CopyrightAndLicenses/index.html">Copyright and Licenses</a></li>
|
| 76 |
+
</ul>
|
| 77 |
+
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
</nav>
|
| 81 |
+
|
| 82 |
+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
| 83 |
+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
| 84 |
+
<a href="../../index.html">NsightCompute</a>
|
| 85 |
+
</nav>
|
| 86 |
+
|
| 87 |
+
<div class="wy-nav-content">
|
| 88 |
+
<div class="rst-content">
|
| 89 |
+
<div role="navigation" aria-label="Page navigation">
|
| 90 |
+
<ul class="wy-breadcrumbs">
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
<li><a href="../../index.html" class="icon icon-home"></a> »</li>
|
| 94 |
+
<li>Older Versions</li>
|
| 95 |
+
|
| 96 |
+
<li class="wy-breadcrumbs-aside">
|
| 97 |
+
</li>
|
| 98 |
+
<li class="wy-breadcrumbs-aside">
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
<span>v2024.1.1 |</span>
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
<a href="https://developer.nvidia.com/nsight-compute-history" class="reference external">Archive</a>
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
<span> </span>
|
| 109 |
+
</li>
|
| 110 |
+
|
| 111 |
+
</ul>
|
| 112 |
+
<hr/>
|
| 113 |
+
</div>
|
| 114 |
+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
| 115 |
+
<div itemprop="articleBody">
|
| 116 |
+
|
| 117 |
+
<section id="older-versions">
|
| 118 |
+
<h1>Older Versions<a class="headerlink" href="#older-versions" title="Permalink to this headline"></a></h1>
|
| 119 |
+
</section>
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
<footer>
|
| 125 |
+
|
| 126 |
+
<hr/>
|
| 127 |
+
|
| 128 |
+
<div role="contentinfo">
|
| 129 |
+
<p>© Copyright 2018-2024, NVIDIA Corporation & Affiliates. All rights reserved.
|
| 130 |
+
<span class="lastupdated">Last updated on Mar 06, 2024.
|
| 131 |
+
</span></p>
|
| 132 |
+
</div>
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
</footer>
|
| 137 |
+
</div>
|
| 138 |
+
</div>
|
| 139 |
+
</section>
|
| 140 |
+
</div>
|
| 141 |
+
<script>
|
| 142 |
+
jQuery(function () {
|
| 143 |
+
SphinxRtdTheme.Navigation.enable(true);
|
| 144 |
+
});
|
| 145 |
+
</script>
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
</body>
|
| 151 |
+
</html>
|