rocm.hipfile.driver#
2026-09-24
4 min read time
Applies to Linux and Windows
Advanced Micro Devices, Inc.
Classes#
Lifecycle manager for the hipFile driver. |
Module Contents#
- class rocm.hipfile.driver.Driver#
Lifecycle manager for the hipFile driver.
Each instance brackets one
hipFileDriverOpen/hipFileDriverClosepair. The driver is reference-counted by the library; multipleDriverinstances coexist safely.Use as a context manager:
- with Driver():
…
or call
open/closeexplicitly.- static use_count()#
Return the current driver reference count.
- close()#
- open()#