mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-25 23:38:10 +08:00
Add set_threadgroup_memory_length to CommandEncoder (#2183)
This commit is contained in:
@@ -95,6 +95,10 @@ struct CommandEncoder {
|
|||||||
return enc_->setBytes(&v, sizeof(T), idx);
|
return enc_->setBytes(&v, sizeof(T), idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void set_threadgroup_memory_length(size_t length, int idx) {
|
||||||
|
enc_->setThreadgroupMemoryLength(length, idx);
|
||||||
|
}
|
||||||
|
|
||||||
ConcurrentContext start_concurrent() {
|
ConcurrentContext start_concurrent() {
|
||||||
return ConcurrentContext(*this);
|
return ConcurrentContext(*this);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user