cuda-driver: the copy ring asks its arena for the stage slot count by static dispatch, not through a dyn view (STRA-338)
admitted_slots coerced the read lease to &dyn RingArena only to call stage_slots on it. RingArena::stage_slots(read) is the same method of the same impl without the vtable; the Ring keeps its own dyn field, which has its exception entry.
This commit is contained in:
+1
-2
@@ -59,8 +59,7 @@ impl<'read, 'ctx> Ring<'read, 'ctx> {
|
||||
schedule: &OriginalMmqCopySchedule<'ctx>,
|
||||
layer: usize,
|
||||
) -> Result<usize> {
|
||||
let admitted: &dyn RingArena = read;
|
||||
let count = admitted.stage_slots()?;
|
||||
let count = RingArena::stage_slots(read)?;
|
||||
schedule.validate_context(context)?;
|
||||
if !schedule_serves_ring(schedule.ring_slots(), count) {
|
||||
let e = Error::InvalidProjectionShape;
|
||||
|
||||
Reference in New Issue
Block a user