rocprofiler-sdk/hipfile/details/hipfile.h File Reference

rocprofiler-sdk/hipfile/details/hipfile.h File Reference#

ROCprofiler-SDK developer API: rocprofiler-sdk/hipfile/details/hipfile.h File Reference
ROCprofiler-SDK developer API 1.4.1
ROCm Profiling API and tools
hipfile.h File Reference
#include <hip/hip_runtime_api.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
+ Include dependency graph for hipfile.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  hipFileError_t
 Error status returned from hipFile API calls. More...
 
struct  hipFileDriverProps_t
 GPU IO configuration. More...
 
struct  hipFileRDMAInfo_t
 Userspace RDMA configuration. More...
 
struct  hipFileFSOps_t
 IO operations for RDMA filesystems. More...
 
struct  hipFileDescr_t
 Top-level structure for performing GPU IO. More...
 
struct  hipFileIOParams_t
 Input parameters for a batch IO request. More...
 
struct  hipFileIOEvents_t
 Status of a batch IO operation. More...
 
struct  hipFileOpCounter_t
 Counter tracking successful and failed occurrences of an operation. More...
 
struct  hipFileStatsLevel1_t
 Level 1 statistics: basic I/O and operation counters. More...
 
struct  hipFileStatsLevel2_t
 Level 2 statistics: includes Level 1 plus I/O size histograms. More...
 
struct  hipFilePerGpuStats_t
 Per-GPU statistics used in Level 3. More...
 
struct  hipFileStatsLevel3_t
 Level 3 statistics: includes Level 2 plus per-GPU statistics. More...
 
struct  hipFileDriverProps_t.nvfs
 GPU IO Driver Configuration. More...
 

Macros

#define HIPFILE_API
 
#define HIPFILE_VERSION_MAJOR   0
 hipFile major version number
 
#define HIPFILE_VERSION_MINOR   3
 hipFile minor version number
 
#define HIPFILE_VERSION_PATCH   0
 hipFile patch version number
 
#define HIPFILE_BASE_ERR   5000
 The base value for hipFile error codes.
 
#define __HIPFILE_NODISCARD
 
#define IS_HIPFILE_ERR(hip_op_err)
 Determine if an error code is a hipFile error.
 
#define HIPFILE_ERRSTR(hip_op_err)
 Get an error string for a hipFile error.
 
#define IS_HIP_DRV_ERR(hip_err)
 Determine if an error is a hipFile driver error.
 
#define HIP_DRV_ERR(hip_err)
 Get the driver error from a hipFileError_t.
 
#define HIPFILE_RDMA_REGISTER   1
 Flag for if the RDMA operation is registered.
 
#define HIPFILE_RDMA_RELAXED_ORDERING   (1 << 1)
 Flag for if the RDMA operation has relaxed ordering.
 
#define HIPFILE_STREAM_FIXED_BUF_OFFSET   1
 Buffer offset is fixed at time of submission.
 
#define HIPFILE_STREAM_FIXED_FILE_OFFSET   (1 << 1)
 File offset is fixed at time of submission.
 
#define HIPFILE_STREAM_FIXED_FILE_SIZE   (1 << 2)
 File size is fixed at time of submission.
 
#define HIPFILE_STREAM_PAGE_ALIGNED_INPUTS   (1 << 3)
 Offsets and size are 4k aligned.
 
#define HIPFILE_STREAM_FLAGS_MASK   0xf
 Mask for selecting flag bits.
 
#define HIPFILE_MAX_GPUS   16
 Maximum number of GPUs tracked by the stats API.
 
#define HIPFILE_GPU_UUID_LEN   16
 Length of the GPU UUID field in hipFilePerGpuStats_t.
 

Typedefs

typedef off_t hoff_t
 Platform-independent offset type.
 
typedef void * hipFileHandle_t
 Opaque file handle used by the GPU IO driver/library.
 
typedef void * hipFileBatchHandle_t
 Opaque batch operations handle.
 

Enumerations

enum  hipFileOpError_t {
  hipFileSuccess = 0 ,
  hipFileDriverNotInitialized = 5000 + 1 ,
  hipFileDriverInvalidProps = 5000 + 2 ,
  hipFileDriverUnsupportedLimit = 5000 + 3 ,
  hipFileDriverVersionMismatch = 5000 + 4 ,
  hipFileDriverVersionReadError = 5000 + 5 ,
  hipFileDriverClosing = 5000 + 6 ,
  hipFilePlatformNotSupported = 5000 + 7 ,
  hipFileIONotSupported = 5000 + 8 ,
  hipFileDeviceNotSupported = 5000 + 9 ,
  hipFileDriverError = 5000 + 10 ,
  hipFileHipDriverError = 5000 + 11 ,
  hipFileHipPointerInvalid = 5000 + 12 ,
  hipFileHipMemoryTypeInvalid = 5000 + 13 ,
  hipFileHipPointerRangeError = 5000 + 14 ,
  hipFileHipContextMismatch = 5000 + 15 ,
  hipFileInvalidMappingSize = 5000 + 16 ,
  hipFileInvalidMappingRange = 5000 + 17 ,
  hipFileInvalidFileType = 5000 + 18 ,
  hipFileInvalidFileOpenFlag = 5000 + 19 ,
  hipFileDIONotSet = 5000 + 20 ,
  hipFileInvalidValue = 5000 + 22 ,
  hipFileMemoryAlreadyRegistered = 5000 + 23 ,
  hipFileMemoryNotRegistered = 5000 + 24 ,
  hipFilePermissionDenied = 5000 + 25 ,
  hipFileDriverAlreadyOpen = 5000 + 26 ,
  hipFileHandleNotRegistered = 5000 + 27 ,
  hipFileHandleAlreadyRegistered = 5000 + 28 ,
  hipFileDeviceNotFound = 5000 + 29 ,
  hipFileInternalError = 5000 + 30 ,
  hipFileGetNewFDFailed = 5000 + 31 ,
  hipFileDriverSetupError = 5000 + 33 ,
  hipFileIODisabled = 5000 + 34 ,
  hipFileBatchSubmitFailed = 5000 + 35 ,
  hipFileGPUMemoryPinningFailed = 5000 + 36 ,
  hipFileBatchFull = 5000 + 37 ,
  hipFileAsyncNotSupported = 5000 + 38 ,
  hipFileIOMaxError = 5000 + 39
}
 hipFile function return codes More...
 
enum  hipFileDriverStatusFlags_t {
  hipFileLustreSupported = 0 ,
  hipFileWekaFSSupported = 1 ,
  hipFileNFSSupported = 2 ,
  hipFileGPFSSupported = 3 ,
  hipFileNVMeSupported = 4 ,
  hipFileNVMeoFSupported = 5 ,
  hipFileSCSISupported = 6 ,
  hipFileScaleFluxCSDSupported = 7 ,
  hipFileNVMeshSupported = 8 ,
  hipFileBeeGFSSupported = 9 ,
  hipFileNVMeP2PSupported = 11 ,
  hipFileScatefsSupported = 12
}
 Filesystems/storage protocols supported by GPU IO on this system. More...
 
enum  hipFileDriverControlFlags_t {
  hipFileUsePollMode = 0 ,
  hipFileAllowCompatMode = 1
}
 Control flags for passing to the GPU IO driver. More...
 
enum  hipFileFeatureFlags_t {
  hipFileDynRoutingSupported = 0 ,
  hipFileBatchIOSupported = 1 ,
  hipFileStreamsSupported = 2 ,
  hipFileParallelIOSupported = 3
}
 GPU IO Transport & Features supported by the system. More...
 
enum  hipFileFileHandleType_t {
  hipFileHandleTypeOpaqueFD = 1 ,
  hipFileHandleTypeOpaqueWin32 = 2 ,
  hipFileHandleTypeUserspaceFS = 3
}
 Type of file handle being used. More...
 
enum  hipFileOpcode_t {
  hipFileBatchRead = 0 ,
  hipFileBatchWrite = 1
}
 The direction of data movement in a batch IO request. More...
 
enum  hipFileStatus_t {
  hipFileWaiting = 1 << 0 ,
  hipFilePending = 1 << 1 ,
  hipFileInvalid = 1 << 2 ,
  hipFileCanceled = 1 << 3 ,
  hipFileComplete = 1 << 4 ,
  hipFileTimeout = 1 << 5 ,
  hipFileFailed = 1 << 6
}
 The status of a batch IO operation. More...
 
enum  hipFileBatchMode_t { hipFileBatch = 1 }
 Mode of a batch IO operation. More...
 
enum  hipFileSizeTConfigParameter_t {
  hipFileParamProfileStats ,
  hipFileParamExecutionMaxIOQueueDepth ,
  hipFileParamExecutionMaxIOThreads ,
  hipFileParamExecutionMinIOThresholdSizeKB ,
  hipFileParamExecutionMaxRequestParallelism ,
  hipFileParamPropertiesMaxDirectIOSizeKB ,
  hipFileParamPropertiesMaxDeviceCacheSizeKB ,
  hipFileParamPropertiesPerBufferCacheSizeKB ,
  hipFileParamPropertiesMaxDevicePinnedMemSizeKB ,
  hipFileParamPropertiesIOBatchsize ,
  hipFileParamPollthresholdSizeKB ,
  hipFileParamPropertiesBatchIOTimeoutMs
}
 size_t configuration parameters More...
 
enum  hipFileBoolConfigParameter_t {
  hipFileParamPropertiesUsePollMode ,
  hipFileParamPropertiesAllowCompatMode ,
  hipFileParamForceCompatMode ,
  hipFileParamFsMiscApiCheckAggressive ,
  hipFileParamExecutionParallelIO ,
  hipFileParamProfileNvtx ,
  hipFileParamPropertiesAllowSystemMemory ,
  hipFileParamUsePcip2pdma ,
  hipFileParamPreferIOUring ,
  hipFileParamForceOdirectMode ,
  hipFileParamSkipTopologyDetection ,
  hipFileParamStreamMemopsBypass
}
 Boolean configuration parameters. More...
 
enum  hipFileStringConfigParameter_t {
  hipFileParamLoggingLevel ,
  hipFileParamEnvLogfilePath ,
  hipFileParamLogDir
}
 String configuration parameters. More...
 

Functions

const char * hipFileGetOpErrorString (hipFileOpError_t status)
 Return a descriptive string for a hipFile error.
 
hipFileError_t hipFileHandleRegister (hipFileHandle_t *fh, hipFileDescr_t *descr)
 Registers an open file for GPU IO.
 
void hipFileHandleDeregister (hipFileHandle_t fh)
 Deregisters a file from GPU IO.
 
hipFileError_t hipFileBufRegister (const void *buffer_base, unsigned long length, int flags)
 Registers a GPU memory region to be used with GPU IO.
 
hipFileError_t hipFileBufDeregister (const void *buffer_base)
 Deregisters a GPU memory region from being used with GPU IO.
 
ssize_t hipFileRead (hipFileHandle_t fh, void *buffer_base, unsigned long size, hoff_t file_offset, hoff_t buffer_offset)
 Synchronously read data from a file into a GPU buffer.
 
ssize_t hipFileWrite (hipFileHandle_t fh, const void *buffer_base, unsigned long size, hoff_t file_offset, hoff_t buffer_offset)
 Synchronously write data from a GPU buffer to a file.
 
hipFileError_t hipFileDriverOpen (void)
 Initialize the GPU IO driver for this process.
 
hipFileError_t hipFileDriverClose (void)
 Close the GPU IO driver for this process.
 
int64_t hipFileUseCount (void)
 Obtain the current reference count for the library.
 
hipFileError_t hipFileDriverGetProperties (hipFileDriverProps_t *props)
 Get a list of GPU IO driver properties.
 
hipFileError_t hipFileDriverSetPollMode (bool poll, unsigned long poll_threshold_size)
 Enable/disable polling mode for GPU IO.
 
hipFileError_t hipFileDriverSetMaxDirectIOSize (unsigned long max_direct_io_size)
 Set the maximum IO chunk size.
 
hipFileError_t hipFileDriverSetMaxCacheSize (unsigned long max_cache_size)
 Set the maximum amount of GPU memory that can be used for bounce buffers.
 
hipFileError_t hipFileDriverSetMaxPinnedMemSize (unsigned long max_pinned_size)
 Set the maximum amount of GPU memory that can be pinned.
 
hipFileError_t hipFileBatchIOSetUp (hipFileBatchHandle_t *batch_idp, unsigned max_nr)
 Prepare the system to perform a batch IO operation.
 
hipFileError_t hipFileBatchIOSubmit (hipFileBatchHandle_t batch_idp, unsigned nr, hipFileIOParams_t *iocbp, unsigned flags)
 Enqueue a batch of IO requests for the GPU to complete asynchronously.
 
hipFileError_t hipFileBatchIOGetStatus (hipFileBatchHandle_t batch_idp, unsigned min_nr, unsigned *nr, hipFileIOEvents_t *iocbp, struct timespec *timeout)
 Poll for the status of completed batch IO operations.
 
hipFileError_t hipFileBatchIOCancel (hipFileBatchHandle_t batch_idp)
 Cancels all pending batch IO operations.
 
void hipFileBatchIODestroy (hipFileBatchHandle_t batch_idp)
 Destroys the batch IO handle and frees the associated resources.
 
hipFileError_t hipFileReadAsync (hipFileHandle_t fh, void *buffer_base, unsigned long *size_p, hoff_t *file_offset_p, hoff_t *buffer_offset_p, ssize_t *bytes_read_p, hipStream_t stream)
 Perform an asynchronous read from a stream.
 
hipFileError_t hipFileWriteAsync (hipFileHandle_t fh, void *buffer_base, unsigned long *size_p, hoff_t *file_offset_p, hoff_t *buffer_offset_p, ssize_t *bytes_written_p, hipStream_t stream)
 Perform an asynchronous write to a stream.
 
hipFileError_t hipFileStreamRegister (hipStream_t stream, unsigned flags)
 Register a stream to be used by for asynchronous GPU IO.
 
hipFileError_t hipFileStreamDeregister (hipStream_t stream)
 Deregister a stream and free the associated resources.
 
hipFileError_t hipFileGetVersion (unsigned *major, unsigned *minor, unsigned *patch)
 Get the version of the hipFile library.
 
hipFileError_t hipFileGetParameterSizeT (hipFileSizeTConfigParameter_t param, unsigned long *value)
 Get the value of a size_t configuration parameter.
 
hipFileError_t hipFileGetParameterBool (hipFileBoolConfigParameter_t param, bool *value)
 Get the value of a Boolean configuration parameter.
 
hipFileError_t hipFileGetParameterString (hipFileStringConfigParameter_t param, char *desc_str, int len)
 Get the value of a string configuration parameter.
 
hipFileError_t hipFileSetParameterSizeT (hipFileSizeTConfigParameter_t param, unsigned long value)
 Set the value of a size_t configuration parameter.
 
hipFileError_t hipFileSetParameterBool (hipFileBoolConfigParameter_t param, bool value)
 Set the value of a Boolean configuration parameter.
 
hipFileError_t hipFileSetParameterString (hipFileStringConfigParameter_t param, const char *desc_str)
 Set the value of a string configuration parameter.
 
hipFileError_t hipFileGetStatsL1 (hipFileStatsLevel1_t *stats)
 Get Level 1 hipFile statistics.
 
hipFileError_t hipFileGetStatsL2 (hipFileStatsLevel2_t *stats)
 Get Level 2 hipFile statistics.
 
hipFileError_t hipFileGetStatsL3 (hipFileStatsLevel3_t *stats)
 Get Level 3 hipFile statistics.
 

Data Structure Documentation

◆ hipFileOpCounter_t

struct hipFileOpCounter_t

Counter tracking successful and failed occurrences of an operation.

Definition at line 1091 of file hipfile.h.

+ Collaboration diagram for hipFileOpCounter_t:
Data Fields
uint64_t err Number of failed operations.
uint64_t ok Number of successful operations.

◆ hipFileStatsLevel1_t

struct hipFileStatsLevel1_t

Level 1 statistics: basic I/O and operation counters.

Fields that hipFile does not track are zero-filled. Calculated fields (bandwidth, average latency) are derived from the counters that are tracked.

Definition at line 1103 of file hipfile.h.

+ Collaboration diagram for hipFileStatsLevel1_t:
Data Fields
hipFileOpCounter_t batch_aio_submit_ops AIO batch submit operation counters (zero-filled)
hipFileOpCounter_t batch_cancel_ops Batch cancel operation counters (zero-filled)
hipFileOpCounter_t batch_complete_ops Batch complete operation counters (zero-filled)
uint64_t batch_complete_ops_per_sec Batch complete operations per second (zero-filled)
uint64_t batch_completion_lat_avg_us Average batch completion latency (zero-filled)
uint64_t batch_completion_lat_sum_us Sum of batch completion latencies (zero-filled)
hipFileOpCounter_t batch_destroy_ops Batch destroy operation counters (zero-filled)
hipFileOpCounter_t batch_enqueued_ops Batch enqueue operation counters (zero-filled)
hipFileOpCounter_t batch_iouring_submit_ops io_uring batch submit operation counters (zero-filled)
hipFileOpCounter_t batch_mixed_io_submit_ops Mixed IO batch submit operation counters (zero-filled)
hipFileOpCounter_t batch_nvfs_submit_ops NVFS batch submit operation counters (zero-filled)
hipFileOpCounter_t batch_p2p_submit_ops P2P batch submit operation counters (zero-filled)
hipFileOpCounter_t batch_posix_enqueued_ops POSIX batch enqueue operation counters (zero-filled)
hipFileOpCounter_t batch_posix_processed_ops POSIX batch process operation counters (zero-filled)
hipFileOpCounter_t batch_processed_ops Batch process operation counters (zero-filled)
uint64_t batch_read_bw_bytes Batch read bandwidth (zero-filled)
uint64_t batch_read_bytes Total batch read bytes (zero-filled)
hipFileOpCounter_t batch_setup_ops Batch setup operation counters (zero-filled)
uint64_t batch_submit_lat_avg_us Average batch submit latency (zero-filled)
uint64_t batch_submit_lat_sum_us Sum of batch submit latencies (zero-filled)
hipFileOpCounter_t batch_submit_ops Batch submit operation counters (zero-filled)
uint64_t batch_submit_ops_per_sec Batch submit operations per second (zero-filled)
hipFileOpCounter_t batch_total_submit_ops Total batch submit operation counters (zero-filled)
uint64_t batch_write_bw_bytes Batch write bandwidth (zero-filled)
uint64_t batch_write_bytes Total batch write bytes (zero-filled)
hipFileOpCounter_t buf_deregister_ops Buffer deregister operation counters (zero-filled)
hipFileOpCounter_t buf_register_ops Buffer register operation counters.
hipFileOpCounter_t hdl_deregister_ops File handle deregister operation counters (zero-filled)
hipFileOpCounter_t hdl_register_ops File handle register operation counters.
uint64_t last_batch_read_bytes Last batch read bytes (zero-filled)
uint64_t last_batch_write_bytes Last batch write bytes (zero-filled)
uint64_t read_bw_bytes_per_sec Read bandwidth (bytes/sec), derived from bytes and latency sum.
uint64_t read_bytes Total bytes read.
uint64_t read_lat_avg_us Average read latency (us), derived from latency sum and op count.
uint64_t read_lat_sum_us Sum of read latencies (us)
hipFileOpCounter_t read_ops Read operation counters.
uint64_t read_ops_per_sec Read operations per second (zero-filled)
uint64_t write_bw_bytes_per_sec Write bandwidth (bytes/sec), derived from bytes and latency sum.
uint64_t write_bytes Total bytes written.
uint64_t write_lat_avg_us Average write latency (us), derived from latency sum and op count.
uint64_t write_lat_sum_us Sum of write latencies (us)
hipFileOpCounter_t write_ops Write operation counters.
uint64_t write_ops_per_sec Write operations per second (zero-filled)

◆ hipFileStatsLevel2_t

struct hipFileStatsLevel2_t

Level 2 statistics: includes Level 1 plus I/O size histograms.

The size histograms are zero-filled; hipFile tracks histograms with different bucket boundaries that are not directly mappable to this format.

Definition at line 1161 of file hipfile.h.

+ Collaboration diagram for hipFileStatsLevel2_t:
Data Fields
hipFileStatsLevel1_t basic Level 1 statistics.
uint64_t read_size_kb_hist[32] Histogram of read sizes in KiB (zero-filled)
uint64_t write_size_kb_hist[32] Histogram of write sizes in KiB (zero-filled)

◆ hipFilePerGpuStats_t

struct hipFilePerGpuStats_t

Per-GPU statistics used in Level 3.

Fields that hipFile does not track are zero-filled. The fastpath backend maps to n_nvfs_reads / n_nvfs_writes, and the fallback backend maps to n_posix_reads / n_posix_writes.

Definition at line 1175 of file hipfile.h.

+ Collaboration diagram for hipFilePerGpuStats_t:
Data Fields
uint64_t n_dr_reads Number of dynamic-routing reads (zero-filled)
uint64_t n_dr_writes Number of dynamic-routing writes (zero-filled)
uint64_t n_inline_regions Number of inline regions (zero-filled)
uint64_t n_mmap Number of buffer registrations (global counter, not per-GPU)
uint64_t n_mmap_err Failed buffer registrations (zero-filled)
uint64_t n_mmap_free Number of buffer deregistrations (zero-filled)
uint64_t n_mmap_ok Successful buffer registrations (same as n_mmap)
uint64_t n_nvfs_reads Number of fastpath reads.
uint64_t n_nvfs_writes Number of fastpath writes.
uint64_t n_p2p_reads Number of PCIe P2P DMA reads (zero-filled)
uint64_t n_p2p_writes Number of PCIe P2P DMA writes (zero-filled)
uint64_t n_posix_reads Number of fallback (POSIX) reads.
uint64_t n_posix_writes Number of fallback (POSIX) writes.
uint64_t n_reads_err Number of read errors.
uint64_t n_sparse_regions Number of sparse regions (zero-filled)
uint64_t n_total_reads Total number of reads across all backends.
uint64_t n_total_writes Total number of writes across all backends.
uint64_t n_unaligned_reads Number of unaligned reads.
uint64_t n_unaligned_writes Number of unaligned writes.
uint64_t n_writes_err Number of write errors.
uint64_t read_bw_bytes_per_sec Read bandwidth (bytes/sec), derived from bytes and duration.
uint64_t read_bytes Total bytes read.
uint64_t read_duration_us Total read duration (us)
uint64_t read_utilization Read utilization percentage (zero-filled)
uint64_t reg_bytes Total bytes registered (zero-filled)
char uuid[16] GPU UUID (zero-filled)
uint64_t write_bw_bytes_per_sec Write bandwidth (bytes/sec), derived from bytes and duration.
uint64_t write_bytes Total bytes written.
uint64_t write_duration_us Total write duration (us)
uint64_t write_utilization Write utilization percentage (zero-filled)

◆ hipFileStatsLevel3_t

struct hipFileStatsLevel3_t

Level 3 statistics: includes Level 2 plus per-GPU statistics.

per_gpu_stats is indexed by GPU ordinal, not packed: entry i holds the stats for GPU i, and slots for inactive GPUs are zero-filled. num_gpus is the count of active GPUs, not the largest populated index. Consumers must iterate all HIPFILE_MAX_GPUS slots rather than 0..num_gpus-1.

Definition at line 1220 of file hipfile.h.

+ Collaboration diagram for hipFileStatsLevel3_t:
Data Fields
hipFileStatsLevel2_t detailed Level 2 statistics.
uint32_t num_gpus Count of active GPUs.
hipFilePerGpuStats_t per_gpu_stats[16] Per-GPU statistics, indexed by GPU ordinal.

Macro Definition Documentation

◆ __HIPFILE_NODISCARD

#define __HIPFILE_NODISCARD

Definition at line 197 of file hipfile.h.

◆ HIPFILE_API

#define HIPFILE_API

Definition at line 26 of file hipfile.h.

◆ HIPFILE_GPU_UUID_LEN

#define HIPFILE_GPU_UUID_LEN   16

Length of the GPU UUID field in hipFilePerGpuStats_t.

Definition at line 1085 of file hipfile.h.

◆ HIPFILE_MAX_GPUS

#define HIPFILE_MAX_GPUS   16

Maximum number of GPUs tracked by the stats API.

Definition at line 1079 of file hipfile.h.

Function Documentation

◆ hipFileGetStatsL1()

hipFileError_t hipFileGetStatsL1 ( hipFileStatsLevel1_t *  stats)

Get Level 1 hipFile statistics.

Parameters
[out]statsPointer to a hipFileStatsLevel1_t structure to be filled
Returns
\hipfile_error_return

◆ hipFileGetStatsL2()

hipFileError_t hipFileGetStatsL2 ( hipFileStatsLevel2_t *  stats)

Get Level 2 hipFile statistics.

Parameters
[out]statsPointer to a hipFileStatsLevel2_t structure to be filled
Returns
\hipfile_error_return

◆ hipFileGetStatsL3()

hipFileError_t hipFileGetStatsL3 ( hipFileStatsLevel3_t *  stats)

Get Level 3 hipFile statistics.

Parameters
[out]statsPointer to a hipFileStatsLevel3_t structure to be filled
Returns
\hipfile_error_return