Runtime tests: the global tiles' scratch is held by a named binding the compiler does not warn of
The scratch buffer of the global-tile multiply is held until the work completes; its binding now begins with an underscore, so the build of the runtime's tests carries no unused-variable warning (lavapipe build, job m3-max-76603).
This commit is contained in:
1 parent
c39fca99c0
commit
63ecd16bab
1 file changed
+2
-1
@@ -640,7 +640,8 @@ exit:
|
||||
encoder.set_buffer(Some(&b), 0, 4).expect("b");
|
||||
encoder.set_bytes(&N.to_le_bytes(), 6).expect("n");
|
||||
encoder.set_bytes(&K.to_le_bytes(), 7).expect("k");
|
||||
let scratch = match tiles {
|
||||
// Held until the work is done.
|
||||
let _scratch = match tiles {
|
||||
Tiles::Local => {
|
||||
(encoder.set_threadgroup_memory_length(tile, 0)).expect("at");
|
||||
(encoder.set_threadgroup_memory_length(tile, 1)).expect("bt");
|
||||
|
||||
Reference in new issue
Block a user