File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- from hipfile ._hipfile import * # noqa: F401,F403
21from hipfile ._hipfile import (
32 # Constants
4- VERSION_MAJOR ,
5- VERSION_MINOR ,
6- VERSION_PATCH ,
7- BASE_ERR ,
8- # Error Macros
9- is_hipfile_err ,
10- hipfile_errstr ,
11- is_hip_drv_err ,
12- hip_drv_err ,
3+ VERSION_MAJOR as _VERSION_MAJOR ,
4+ VERSION_MINOR as _VERSION_MINOR ,
5+ VERSION_PATCH as _VERSION_PATCH
136)
14- from hipfile .buffer import (
7+ from hipfile .buffer import (
158 Buffer
169)
1710from hipfile .driver import (
3225 get_version
3326)
3427
35- __version__ = f"{ VERSION_MAJOR } .{ VERSION_MINOR } .{ VERSION_PATCH } "
28+ __all__ = [
29+ "__version__" ,
30+ "Driver" ,
31+ "FileHandle" ,
32+ "Buffer" ,
33+ "HipFileException" ,
34+ "FileHandleType" ,
35+ "OpError" ,
36+ "driver_get_properties" ,
37+ "get_version"
38+ ]
39+ __version__ = f"{ _VERSION_MAJOR } .{ _VERSION_MINOR } .{ _VERSION_PATCH } "
Original file line number Diff line number Diff line change 33import pathlib
44import stat
55
6- from hipfile .buffer import Buffer
7- from hipfile .driver import Driver
8- from hipfile .enums import FileHandleType
9- from hipfile .file import FileHandle
10- from hipfile .properties import driver_get_properties , get_version
116from hipfile .hipMalloc import hipFree , hipMalloc
127
8+ from hipfile import (
9+ Driver ,
10+ FileHandle ,
11+ Buffer ,
12+ FileHandleType ,
13+ driver_get_properties ,
14+ get_version
15+ )
16+
1317hipfile_version = get_version ()
1418
1519input_path = pathlib .Path ("/mnt/ais/ext4/random_2MiB.bin" )
You can’t perform that action at this time.
0 commit comments