rocm.hipfile.driver#

2026-09-24

4 min read time

Applies to Linux and Windows

Advanced Micro Devices, Inc.

Classes#

Driver

Lifecycle manager for the hipFile driver.

Module Contents#

class rocm.hipfile.driver.Driver#

Lifecycle manager for the hipFile driver.

Each instance brackets one hipFileDriverOpen / hipFileDriverClose pair. The driver is reference-counted by the library; multiple Driver instances coexist safely.

Use as a context manager:

with Driver():

…

or call open / close explicitly.

static use_count()#

Return the current driver reference count.

close()#
open()#