rocm.bindings.hipfile#
2026-09-24
28 min read time
Advanced Micro Devices, Inc.
Attributes#
Classes#
hipFile function return codes |
|
Error status returned from hipFile API calls |
|
Filesystems/storage protocols supported by GPU IO on this system |
|
Control flags for passing to the GPU IO driver |
|
GPU IO Transport & Features supported by the system |
|
GPU IO Driver Configuration |
|
GPU IO configuration |
|
Userspace RDMA configuration |
|
Type of remote FS used. If NULL, use fstat to discover. |
|
Get a list of host RDMA addresses. If NULL, use any address. |
|
Get the assigned priority of a RDMA device. If -1, there is no preference. |
|
Read from the remote filesystem. If NULL, use the Linux VFS. |
|
Write to the remote filesystem. If NULL, use the Linux VFS. |
|
IO operations for RDMA filesystems |
|
Type of file handle being used |
|
(No short description) |
|
Top-level structure for performing GPU IO |
|
The direction of data movement in a batch IO request |
|
The status of a batch IO operation |
|
Mode of a batch IO operation |
|
(No short description) |
|
(No short description) |
|
Input parameters for a batch IO request |
|
Status of a batch IO operation |
|
size_t configuration parameters |
|
Boolean configuration parameters |
|
String configuration parameters |
Functions#
|
|
|
Return a descriptive string for a hipFile error |
|
Registers an open file for GPU IO |
Deregisters a file from GPU IO |
|
|
Registers a GPU memory region to be used with GPU IO |
|
Deregisters a GPU memory region from being used with GPU IO |
|
Synchronously read data from a file into a GPU buffer. |
|
Synchronously write data from a GPU buffer to a file. |
Initialize the GPU IO driver for this process |
|
Close the GPU IO driver for this process |
|
Obtain the current reference count for the library |
|
|
Get a list of GPU IO driver properties |
|
Enable/disable polling mode for GPU IO |
|
Set the maximum IO chunk size |
|
Set the maximum amount of GPU memory that can be used for bounce buffers |
|
Set the maximum amount of GPU memory that can be pinned |
|
Prepare the system to perform a batch IO operation |
|
Enqueue a batch of IO requests for the GPU to complete asynchronously |
|
Poll for the status of completed batch IO operations |
|
Cancels all pending batch IO operations |
|
Destroys the batch IO handle and frees the associated resources |
|
Perform an asynchronous read from a stream |
|
Perform an asynchronous write to a stream |
|
Register a stream to be used by for asynchronous GPU IO |
|
Deregister a stream and free the associated resources |
Get the version of the hipFile library |
|
|
Get the value of a size_t configuration parameter |
|
Get the value of a Boolean configuration parameter |
|
Get the value of a string configuration parameter |
|
Set the value of a size_t configuration parameter |
|
Set the value of a Boolean configuration parameter |
|
Set the value of a string configuration parameter |
Module Contents#
- rocm.bindings.hipfile.HIPFILE_VERSION_MAJOR: Any#
- rocm.bindings.hipfile.HIPFILE_VERSION_MINOR: Any#
- rocm.bindings.hipfile.HIPFILE_VERSION_PATCH: Any#
- rocm.bindings.hipfile.HIPFILE_BASE_ERR: Any#
- class rocm.bindings.hipfile.hipFileOpError#
Bases:
enum.IntEnumhipFile function return codes
An error code of -1 indicates a that a C or POSIX error has occurred and errno is likely to have been set.
- Note:
HIPFILE_BASE_ERR + 21 and 32 are intentionally omitted.
- rocm.bindings.hipfile.hipFileOpError_t#
- rocm.bindings.hipfile.hipFileGetOpErrorString(status)#
Return a descriptive string for a hipFile error
- Args:
- status (
hipFileOpError) – IN: Return code provided by hipFile
- status (
- Returns:
A
tupleof size 1 that contains (in that order):bytes: Description of the error encountered
C signature
const char * hipFileGetOpErrorString(hipFileOpError_t status)
- class rocm.bindings.hipfile.hipFileError(*args, **kwargs)#
Bases:
rocm.bindings.util.types.PointerError status returned from hipFile API calls
- Note:
This struct has the
[[nodiscard]]attribute in C++ >= 17 and C >= 23 so unhandled return values will generate warnings
- err: Any#
- hip_drv_err: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- rocm.bindings.hipfile.hipFileError_t#
- class rocm.bindings.hipfile.hipFileDriverStatusFlags#
Bases:
enum.IntEnumFilesystems/storage protocols supported by GPU IO on this system
- Note:
Value 10 is reserved for YRCloudFile
- rocm.bindings.hipfile.hipFileDriverStatusFlags_t#
- class rocm.bindings.hipfile.hipFileDriverControlFlags#
Bases:
enum.IntEnumControl flags for passing to the GPU IO driver
- rocm.bindings.hipfile.hipFileDriverControlFlags_t#
- class rocm.bindings.hipfile.hipFileFeatureFlags#
Bases:
enum.IntEnumGPU IO Transport & Features supported by the system
- rocm.bindings.hipfile.hipFileFeatureFlags_t#
- class rocm.bindings.hipfile.hipFileDriverProps_struct_0(*args, **kwargs)#
Bases:
rocm.bindings.util.types.PointerGPU IO Driver Configuration
- major_version: Any#
- minor_version: Any#
- poll_thresh_size: Any#
- max_direct_io_size: Any#
- driver_status_flags: Any#
- driver_control_flags: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class rocm.bindings.hipfile.hipFileDriverProps(*args, **kwargs)#
Bases:
rocm.bindings.util.types.PointerGPU IO configuration
- nvfs: Any#
- feature_flags: Any#
- max_device_cache_size: Any#
- per_buffer_cache_size: Any#
- max_device_pinned_mem_size: Any#
- max_batch_io_count: Any#
- max_batch_io_timeout_msecs: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- rocm.bindings.hipfile.hipFileDriverProps_t#
- class rocm.bindings.hipfile.hipFileRDMAInfo(*args, **kwargs)#
Bases:
rocm.bindings.util.types.PointerUserspace RDMA configuration
- version: Any#
- desc_len: Any#
- desc_str: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- rocm.bindings.hipfile.hipFileRDMAInfo_t#
- class rocm.bindings.hipfile.hipFileFSOps_anon_funptr_0(*args, **kwargs)#
Bases:
rocm.bindings.util.types.PointerType of remote FS used. If NULL, use fstat to discover.
- class rocm.bindings.hipfile.hipFileFSOps_anon_funptr_1(*args, **kwargs)#
Bases:
rocm.bindings.util.types.PointerGet a list of host RDMA addresses. If NULL, use any address.
- class rocm.bindings.hipfile.hipFileFSOps_anon_funptr_2(*args, **kwargs)#
Bases:
rocm.bindings.util.types.PointerGet the assigned priority of a RDMA device. If -1, there is no preference.
- class rocm.bindings.hipfile.hipFileFSOps_anon_funptr_3(*args, **kwargs)#
Bases:
rocm.bindings.util.types.PointerRead from the remote filesystem. If NULL, use the Linux VFS.
- class rocm.bindings.hipfile.hipFileFSOps_anon_funptr_4(*args, **kwargs)#
Bases:
rocm.bindings.util.types.PointerWrite to the remote filesystem. If NULL, use the Linux VFS.
- class rocm.bindings.hipfile.hipFileFSOps(*args, **kwargs)#
Bases:
rocm.bindings.util.types.PointerIO operations for RDMA filesystems
- fs_type: Any#
- getRDMADeviceList: Any#
- getRDMADevicePriority: Any#
- read: Any#
- write: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- rocm.bindings.hipfile.hipFileFSOps_t#
- class rocm.bindings.hipfile.hipFileFileHandleType#
Bases:
enum.IntEnumType of file handle being used
- rocm.bindings.hipfile.hipFileFileHandleType_t#
- class rocm.bindings.hipfile.hipFileDescr_union_0(*args, **kwargs)#
Bases:
rocm.bindings.util.types.Pointer(No short description)
- fd: Any#
- hFile: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class rocm.bindings.hipfile.hipFileDescr(*args, **kwargs)#
Bases:
rocm.bindings.util.types.PointerTop-level structure for performing GPU IO
hipFileHandleTypeOpaqueFD -> handle.fd non-negative, fs_ops ignored hipFileHandleTypeOpaqueWin32 -> handle.hFile non-NULL, fs_ops ignored hipFileHandleTypeUserspaceFS -> handle.fd non-negative, fs_ops non-NULL
- type: Any#
- handle: Any#
- fs_ops: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- rocm.bindings.hipfile.hipFileDescr_t#
- rocm.bindings.hipfile.hipFileHandleRegister(descr)#
Registers an open file for GPU IO
- Note:
If the library has not already been initialized, the first call to
hipFileHandleRegister()will initialize the library and increment the reference count.- Args:
- descr (
hipFileDescr/object) – IN: Parameters for opening the file
- descr (
- Returns:
A
tupleof size 2 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileHandleRegister(hipFileHandle_t * fh, hipFileDescr_t * descr)
- rocm.bindings.hipfile.hipFileHandleDeregister(fh)#
Deregisters a file from GPU IO
C signature
void hipFileHandleDeregister(hipFileHandle_t fh)
- rocm.bindings.hipfile.hipFileBufRegister(buffer_base, length, flags)#
Registers a GPU memory region to be used with GPU IO
The memory region should be allocated by the user before being passed to the API call
- Note:
If the library has not already been initialized, the first call to
hipFileBufRegister()will initialize the library and increment the reference count.- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileBufRegister(const void * buffer_base, size_t length, int flags)
- rocm.bindings.hipfile.hipFileBufDeregister(buffer_base)#
Deregisters a GPU memory region from being used with GPU IO
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileBufDeregister(const void * buffer_base)
- rocm.bindings.hipfile.hipFileRead(fh, buffer_base, size, file_offset, buffer_offset)#
Synchronously read data from a file into a GPU buffer.
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):int: The rawssize_tresult. One of:if >= 0: Number of bytes transferred
if -1: POSIX system error (see the
errnoelement)- else: Negated
hipFileOpError_t; when it equals -hipFileHipDriverErrorthe HIP driver error is carried in thehip_drv_errelement
- else: Negated
int:errno, snapshotted inside thewith nogilblockright after the call (meaningful only when the result is -1).
int: thehipError_tvalue fromhipPeekAtLastError(), snapshotted inside the samewith nogilblock (meaningful only when the result is-hipFileHipDriverError).
- rocm.bindings.hipfile.hipFileWrite(fh, buffer_base, size, file_offset, buffer_offset)#
Synchronously write data from a GPU buffer to a file.
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):int: The rawssize_tresult. One of:if >= 0: Number of bytes transferred
if -1: POSIX system error (see the
errnoelement)- else: Negated
hipFileOpError_t; when it equals -hipFileHipDriverErrorthe HIP driver error is carried in thehip_drv_errelement
- else: Negated
int:errno, snapshotted inside thewith nogilblockright after the call (meaningful only when the result is -1).
int: thehipError_tvalue fromhipPeekAtLastError(), snapshotted inside the samewith nogilblock (meaningful only when the result is-hipFileHipDriverError).
- rocm.bindings.hipfile.hipFileDriverOpen()#
Initialize the GPU IO driver for this process
Each call to
hipFileDriverOpen()increments the library’s reference count. If a call tohipFileDriverOpen()results in the reference count transitioning from zero to one, the library’s state will be initialized.Calling
hipFileDriverOpen()is optional. The first call tohipFileBufRegister()orhipFileHandleRegister()will trigger library initialization and increment the library’s reference count.- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileDriverOpen()
- rocm.bindings.hipfile.hipFileDriverClose()#
Close the GPU IO driver for this process
Each call to
hipFileDriverClose()decrements the library’s reference count. If a call tohipFileDriverClose()results in the reference count transitioning from one to zero, the library’s state will be destroyed.Explicitly closing the library is not required; the library’s state will be destroyed automatically at program exit.
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileDriverClose()
- rocm.bindings.hipfile.hipFileUseCount()#
Obtain the current reference count for the library
- See:
- See:
- Returns:
A
tupleof size 1 that contains (in that order):int: The library’s reference count
C signature
int64_t hipFileUseCount()
- rocm.bindings.hipfile.hipFileDriverGetProperties(props)#
Get a list of GPU IO driver properties
warn_not_implemented
- Args:
- props (
hipFileDriverProps/object) – OUT: See
hipFileDriverProps_tfor what properties are reported
- props (
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileDriverGetProperties(hipFileDriverProps_t * props)
- rocm.bindings.hipfile.hipFileDriverSetPollMode(poll, poll_threshold_size)#
Enable/disable polling mode for GPU IO
warn_not_implemented
- Args:
- poll (
bint) – IN: trueto enable polling,falseto disable- poll_threshold_size (
int) – IN: Maximum IO size (in KiB) for which polling is used when enabled
- poll (
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileDriverSetPollMode(_Bool poll, size_t poll_threshold_size)
- rocm.bindings.hipfile.hipFileDriverSetMaxDirectIOSize(max_direct_io_size)#
Set the maximum IO chunk size
warn_not_implemented
- Args:
- max_direct_io_size (
int) – IN: Maximum IO chunk size (in KiB) for each IO request
- max_direct_io_size (
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileDriverSetMaxDirectIOSize(size_t max_direct_io_size)
- rocm.bindings.hipfile.hipFileDriverSetMaxCacheSize(max_cache_size)#
Set the maximum amount of GPU memory that can be used for bounce buffers
warn_not_implemented
- Args:
- max_cache_size (
int) – IN: Maximum GPU memory (in KiB) that can be reserved for bounce buffers
- max_cache_size (
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileDriverSetMaxCacheSize(size_t max_cache_size)
- rocm.bindings.hipfile.hipFileDriverSetMaxPinnedMemSize(max_pinned_size)#
Set the maximum amount of GPU memory that can be pinned
warn_not_implemented
- Args:
- max_pinned_size (
int) – IN: Maximum GPU memory (in KiB) that can be pinned
- max_pinned_size (
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileDriverSetMaxPinnedMemSize(size_t max_pinned_size)
- class rocm.bindings.hipfile.hipFileOpcode#
Bases:
enum.IntEnumThe direction of data movement in a batch IO request
- rocm.bindings.hipfile.hipFileOpcode_t#
- class rocm.bindings.hipfile.hipFileStatus#
Bases:
enum.IntEnumThe status of a batch IO operation
- rocm.bindings.hipfile.hipFileStatus_t#
- class rocm.bindings.hipfile.hipFileBatchMode#
Bases:
enum.IntEnumMode of a batch IO operation
- rocm.bindings.hipfile.hipFileBatchMode_t#
- class rocm.bindings.hipfile.hipFileIOParams_union_0_struct_0(*args, **kwargs)#
Bases:
rocm.bindings.util.types.Pointer(No short description)
- devPtr_base: Any#
- file_offset: Any#
- devPtr_offset: Any#
- size: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class rocm.bindings.hipfile.hipFileIOParams_union_0(*args, **kwargs)#
Bases:
rocm.bindings.util.types.Pointer(No short description)
- batch: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- class rocm.bindings.hipfile.hipFileIOParams(*args, **kwargs)#
Bases:
rocm.bindings.util.types.PointerInput parameters for a batch IO request
- mode: Any#
- u: Any#
- fh: Any#
- opcode: Any#
- cookie: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- rocm.bindings.hipfile.hipFileIOParams_t#
- class rocm.bindings.hipfile.hipFileIOEvents(*args, **kwargs)#
Bases:
rocm.bindings.util.types.PointerStatus of a batch IO operation
- cookie: Any#
- status: Any#
- ret: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- rocm.bindings.hipfile.hipFileIOEvents_t#
- rocm.bindings.hipfile.hipFileBatchIOSetUp(max_nr)#
Prepare the system to perform a batch IO operation
- Args:
- max_nr (
int) – IN: Maximum number of requests that can be submitted to this batch handle
- max_nr (
- Returns:
A
tupleof size 2 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileBatchIOSetUp(hipFileBatchHandle_t * batch_idp, unsigned int max_nr)
- rocm.bindings.hipfile.hipFileBatchIOSubmit(batch_idp, nr, iocbp, flags)#
Enqueue a batch of IO requests for the GPU to complete asynchronously
- Args:
- batch_idp (
Pointer/object) – IN: batch_handle_param
- nr (
int) – IN: Number of batch IO requests to submit
- iocbp (
hipFileIOParams/object) – IN: An array of
nrbatch IO requests to submit to the GPU. Data will be read into or written from the buffer specified in each request.- flags (
int) – IN: Control Flags for the batch IO. Currently unused.
- batch_idp (
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileBatchIOSubmit(hipFileBatchHandle_t batch_idp, unsigned int nr, hipFileIOParams_t * iocbp, unsigned int flags)
- rocm.bindings.hipfile.hipFileBatchIOGetStatus(batch_idp, min_nr, nr, iocbp, timeout)#
Poll for the status of completed batch IO operations
warn_not_implemented
- Args:
- batch_idp (
Pointer/object) – IN: batch_handle_param
- min_nr (
int) – IN: Minimum number of batch operation statuses that should be returned. If
timeoutis exceeded, fewer statuses may be returned.- nr (
PointerToUnsigned/object) – IN,OUT: Maximum number of batch operation statuses that can be returned. This is parameter is modified to return the number of statuses returned in
iocbp.- iocbp (
hipFileIOEvents/object) – OUT: An array containing up to
nrstatuses from the overall batch operation- timeout (
Pointer/object) – IN: Maximum amount of time this function should poll for status updates
- batch_idp (
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileBatchIOGetStatus(hipFileBatchHandle_t batch_idp, unsigned int min_nr, unsigned int * nr, hipFileIOEvents_t * iocbp, struct timespec * timeout)
- rocm.bindings.hipfile.hipFileBatchIOCancel(batch_idp)#
Cancels all pending batch IO operations
warn_not_implemented
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileBatchIOCancel(hipFileBatchHandle_t batch_idp)
- rocm.bindings.hipfile.hipFileBatchIODestroy(batch_idp)#
Destroys the batch IO handle and frees the associated resources
warn_not_implemented_void
C signature
void hipFileBatchIODestroy(hipFileBatchHandle_t batch_idp)
- rocm.bindings.hipfile.hipFileReadAsync(fh, buffer_base, size_p, file_offset_p, buffer_offset_p, bytes_read_p, stream)#
Perform an asynchronous read from a stream
max_io_size_note
- Args:
- fh (
Pointer/object) – IN: hipfile_handle_param
- buffer_base (
Pointer/object) – IN: buffer_base_param
- size_p (
PointerToUInt64/object) – IN: Number of bytes that should be read
- file_offset_p (
PointerToInt64/object) – IN: Offset into the file that should be read from
- buffer_offset_p (
PointerToInt64/object) – IN: Offset of the GPU buffer that that the data should be written to
- bytes_read_p (
PointerToInt64/object) – OUT: Number of bytes read
- stream (
Pointer/object) – IN: hipstream_param. hipstream_if_null.
- fh (
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileReadAsync(hipFileHandle_t fh, void * buffer_base, size_t * size_p, hoff_t * file_offset_p, hoff_t * buffer_offset_p, ssize_t * bytes_read_p, hipStream_t stream)
- rocm.bindings.hipfile.hipFileWriteAsync(fh, buffer_base, size_p, file_offset_p, buffer_offset_p, bytes_written_p, stream)#
Perform an asynchronous write to a stream
max_io_size_note
- Args:
- fh (
Pointer/object) – IN: hipfile_handle_param
- buffer_base (
Pointer/object) – IN: buffer_base_param
- size_p (
PointerToUInt64/object) – IN: Number of bytes that should be written
- file_offset_p (
PointerToInt64/object) – IN: Offset into the file that should be written to
- buffer_offset_p (
PointerToInt64/object) – IN: Offset of the GPU buffer that that the data should be read from
- bytes_written_p (
PointerToInt64/object) – OUT: Number of bytes written
- stream (
Pointer/object) – IN: hipstream_param. hipstream_if_null.
- fh (
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileWriteAsync(hipFileHandle_t fh, void * buffer_base, size_t * size_p, hoff_t * file_offset_p, hoff_t * buffer_offset_p, ssize_t * bytes_written_p, hipStream_t stream)
- rocm.bindings.hipfile.hipFileStreamRegister(stream, flags)#
Register a stream to be used by for asynchronous GPU IO
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileStreamRegister(hipStream_t stream, unsigned int flags)
- rocm.bindings.hipfile.hipFileStreamDeregister(stream)#
Deregister a stream and free the associated resources
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileStreamDeregister(hipStream_t stream)
- rocm.bindings.hipfile.hipFileGetVersion()#
Get the version of the hipFile library
- Note:
Parameters can be set to NULL to ignore that part of the version
- Returns:
A
tupleof size 4 that contains (in that order):hipFileError: hipfile_error_returnint:The major version
int:The minor version
int:The patch version
C signature
hipFileError_t hipFileGetVersion(unsigned int * major, unsigned int * minor, unsigned int * patch)
- class rocm.bindings.hipfile.hipFileSizeTConfigParameter_t#
Bases:
enum.IntEnumsize_t configuration parameters
- class rocm.bindings.hipfile.hipFileBoolConfigParameter_t#
Bases:
enum.IntEnumBoolean configuration parameters
- class rocm.bindings.hipfile.hipFileStringConfigParameter_t#
Bases:
enum.IntEnumString configuration parameters
- rocm.bindings.hipfile.hipFileGetParameterSizeT(param)#
Get the value of a size_t configuration parameter
warn_not_implemented
- Note:
If the driver is open, the value returned is the value currently in use by the driver.
- Note:
If the driver is closed, the value returned is the value that was last set by hipFileSetParameter*.
- Args:
- param (
hipFileSizeTConfigParameter_t): The configuration parameter
- param (
- Returns:
A
tupleof size 2 that contains (in that order):hipFileError: hipfile_error_returnint:The location to store the value of the configuration parameter
C signature
hipFileError_t hipFileGetParameterSizeT(hipFileSizeTConfigParameter_t param, size_t * value)
- rocm.bindings.hipfile.hipFileGetParameterBool(param)#
Get the value of a Boolean configuration parameter
warn_not_implemented
- Note:
If the driver is open, the value returned is the value currently in use by the driver.
- Note:
If the driver is closed, the value returned is the value that was last set by hipFileSetParameter*.
- Args:
- param (
hipFileBoolConfigParameter_t): The configuration parameter
- param (
- Returns:
A
tupleof size 2 that contains (in that order):hipFileError: hipfile_error_returnbool:The location to store the value of the configuration parameter
C signature
hipFileError_t hipFileGetParameterBool(hipFileBoolConfigParameter_t param, _Bool * value)
- rocm.bindings.hipfile.hipFileGetParameterString(param, len)#
Get the value of a string configuration parameter
warn_not_implemented
- Note:
If the driver is open, the value returned is the value currently in use by the driver.
- Note:
If the driver is closed, the value returned is the value that was last set by hipFileSetParameter*.
- Args:
- param (
hipFileStringConfigParameter_t): The configuration parameter
- len (
int): The length of the desc_str parameter
- param (
- Returns:
A
tupleof size 2 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileGetParameterString(hipFileStringConfigParameter_t param, char * desc_str, int len)
- rocm.bindings.hipfile.hipFileSetParameterSizeT(param, value)#
Set the value of a size_t configuration parameter
warn_not_implemented
- Note:
Configuration parameter values may only be set when the driver is closed. Values are applied when the driver is opened.
- Args:
- param (
hipFileSizeTConfigParameter_t): The configuration parameter
- value (
int): The value of the configuration parameter
- param (
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileSetParameterSizeT(hipFileSizeTConfigParameter_t param, size_t value)
- rocm.bindings.hipfile.hipFileSetParameterBool(param, value)#
Set the value of a Boolean configuration parameter
warn_not_implemented
- Note:
Configuration parameter values may only be set when the driver is closed. Values are applied when the driver is opened.
- Args:
- param (
hipFileBoolConfigParameter_t): The configuration parameter
- value (
bint): The value of the configuration parameter
- param (
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileSetParameterBool(hipFileBoolConfigParameter_t param, _Bool value)
- rocm.bindings.hipfile.hipFileSetParameterString(param, desc_str)#
Set the value of a string configuration parameter
warn_not_implemented
- Note:
Configuration parameter values may only be set when the driver is closed. Values are applied when the driver is opened.
- Args:
- param (
hipFileStringConfigParameter_t): The configuration parameter
- desc_str (
CStr/object): The value of the configuration parameter
- param (
- Returns:
A
tupleof size 1 that contains (in that order):hipFileError: hipfile_error_return
C signature
hipFileError_t hipFileSetParameterString(hipFileStringConfigParameter_t param, const char * desc_str)