-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
The following is currently unsafe:
int p = 0; // patch index
auto prts = mprts.accessor()[p]; // unsafe
// <- result of `mprts.accessor()` may be dropped here
prts.size() // seg fault if drop happenedThe above seg fault happened in #354, and was ostensibly fixed in #355, but that fix was incompatible with CUDA.
For now, the safe alternative is:
auto acc = mprts.accessor();
auto prts = acc[p];
// safe to do whateverMetadata
Metadata
Assignees
Labels
No labels