Skip to content

fix some test issues caused by bad merging on browser #254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cuda_core/tests/test_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ def __init__(self, device):
self.device = device

def allocate(self, size, stream=None) -> Buffer:
ptr = handle_return(cuda.cuMemAlloc(size))
ptr = handle_return(driver.cuMemAlloc(size))
return Buffer(ptr=ptr, size=size, mr=self)

def deallocate(self, ptr, size, stream=None):
handle_return(cuda.cuMemFree(ptr))
handle_return(driver.cuMemFree(ptr))

@property
def is_device_accessible(self) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion cuda_core/tests/test_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_stream_context(init_cuda):
context = stream.context
assert context is not None

def test_stream_from_foreign_stream():
def test_stream_from_foreign_stream(init_cuda):
device = Device()
other_stream = device.create_stream(options=StreamOptions())
stream = device.create_stream(obj=other_stream)
Expand Down