inducer / inducer/pyopencl

SVM `bind_to_queue` and `unbind_queue` cannot be safely used

Open
#645 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
1.2k
Forks
247
Avg merge
7h 2m
Merged PRs (30d)
6

Description

Since they modify the allocation in place, they're unusable e.g. in the array. Consider the expression `ary2 = ary.with_queue(None)`, which one might think should unbind underlying SVM from the queue. But `ary` is still ailve, and both `ary` and `ary2` refer to the same allocation.

Instead, we need some sort of "holder" object that inserts a queue into a list of queues that need to be synchronized with when freeing the SVM.

cc @matthiasdiener

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.