Skip to content

Fix Stream.device and Stream.context with respect to _util.device.from_ctx #202

@ksimpson-work

Description

@ksimpson-work

The obvious issue is that both of these call get_device_from_ctx which references the unimported Device(). Importing it would cause a circular dependency. This does not appear to be the root of the issue, as per the logic of the Stream class, and the cuda model, self._device_id can never be None. In short, we can get rid of util.device_from_ctx

Metadata

Metadata

Assignees

Labels

P1Medium priority - Should dobugSomething isn't workingcuda.coreEverything related to the cuda.core module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions