Skip to content

set_device in the C binding causes the Cuda context to be invalidated. #3

@cianciosa

Description

@cianciosa

The current method of resetting the device number causes the cuda context to be invalided.

d->work = workflow::manager<float, true> (num);

Causes the destructor for the cuda context to get called which destroys the primary context. It would be better to make a set device method to avoid this. This method would need to reconstruct all the buffers if they exist.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions