Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
cupti_target.h44 linesDownload Raw Back to include
1#if !defined(_CUPTI_TARGET_H_)
2#define _CUPTI_TARGET_H_
3
4/*
5CUPTI profiler target API's
6This file contains the CUPTI profiling API's.
7*/
8#include <cupti_result.h>
9#include <stddef.h>
10#include <stdint.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#if defined(__GNUC__) && defined(CUPTI_LIB)
17    #pragma GCC visibility push(default)
18#endif
19
20#ifndef CUPTI_PROFILER_STRUCT_SIZE
21#define CUPTI_PROFILER_STRUCT_SIZE(type_, lastfield_)                     (offsetof(type_, lastfield_) + sizeof(((type_*)0)->lastfield_))
22#endif
23
24typedef struct CUpti_Device_GetChipName_Params
25{
26    size_t structSize;                                      //!< [in]
27    void* pPriv;                                            //!< [in] assign to NULL
28
29    size_t deviceIndex;                                     //!< [in]
30    const char* pChipName;                                  //!< [out]
31} CUpti_Device_GetChipName_Params;
32
33#define CUpti_Device_GetChipName_Params_STRUCT_SIZE                  CUPTI_PROFILER_STRUCT_SIZE(CUpti_Device_GetChipName_Params, pChipName)
34CUptiResult CUPTIAPI cuptiDeviceGetChipName(CUpti_Device_GetChipName_Params *pParams);
35
36#if defined(__GNUC__) && defined(CUPTI_LIB)
37    #pragma GCC visibility pop
38#endif
39
40#ifdef __cplusplus
41} /* extern "C" */
42#endif
43#endif
44 
codekingpro/portable-devtools · Team Ai