Skip to content

Commit

Permalink
Update Stub Files
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l authored and github-actions[bot] committed Feb 27, 2024
1 parent db7c1de commit 15931fd
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 3 deletions.
24 changes: 23 additions & 1 deletion src/amrex/space1d/amrex_1d_pybind/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,29 @@ class AmrMesh:
def verbose(self) -> int: ...

class Arena:
pass
@staticmethod
def finalize() -> None: ...
@staticmethod
def initialize() -> None: ...
@staticmethod
def print_usage() -> None: ...
@staticmethod
def print_usage_to_files(filename: str, message: str) -> None: ...
def has_free_device_memory(self, sz: int) -> bool:
"""
Does the device have enough free memory for allocating this much memory? For CPU builds, this always return true.
"""

@property
def is_device(self) -> bool: ...
@property
def is_device_accessible(self) -> bool: ...
@property
def is_host_accessible(self) -> bool: ...
@property
def is_managed(self) -> bool: ...
@property
def is_pinned(self) -> bool: ...

class Array4_cdouble:
@typing.overload
Expand Down
24 changes: 23 additions & 1 deletion src/amrex/space2d/amrex_2d_pybind/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,29 @@ class AmrMesh:
def verbose(self) -> int: ...

class Arena:
pass
@staticmethod
def finalize() -> None: ...
@staticmethod
def initialize() -> None: ...
@staticmethod
def print_usage() -> None: ...
@staticmethod
def print_usage_to_files(filename: str, message: str) -> None: ...
def has_free_device_memory(self, sz: int) -> bool:
"""
Does the device have enough free memory for allocating this much memory? For CPU builds, this always return true.
"""

@property
def is_device(self) -> bool: ...
@property
def is_device_accessible(self) -> bool: ...
@property
def is_host_accessible(self) -> bool: ...
@property
def is_managed(self) -> bool: ...
@property
def is_pinned(self) -> bool: ...

class Array4_cdouble:
@typing.overload
Expand Down
24 changes: 23 additions & 1 deletion src/amrex/space3d/amrex_3d_pybind/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,29 @@ class AmrMesh:
def verbose(self) -> int: ...

class Arena:
pass
@staticmethod
def finalize() -> None: ...
@staticmethod
def initialize() -> None: ...
@staticmethod
def print_usage() -> None: ...
@staticmethod
def print_usage_to_files(filename: str, message: str) -> None: ...
def has_free_device_memory(self, sz: int) -> bool:
"""
Does the device have enough free memory for allocating this much memory? For CPU builds, this always return true.
"""

@property
def is_device(self) -> bool: ...
@property
def is_device_accessible(self) -> bool: ...
@property
def is_host_accessible(self) -> bool: ...
@property
def is_managed(self) -> bool: ...
@property
def is_pinned(self) -> bool: ...

class Array4_cdouble:
@typing.overload
Expand Down

0 comments on commit 15931fd

Please sign in to comment.