mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 12:06:42 +08:00
spelling: explicitly
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
dc0661be5a
commit
d1db9479aa
@ -18,7 +18,7 @@ void set_array_buffer(
|
|||||||
auto offset = a.data<char>() -
|
auto offset = a.data<char>() -
|
||||||
static_cast<char*>(const_cast<MTL::Buffer*>(a_buf)->contents());
|
static_cast<char*>(const_cast<MTL::Buffer*>(a_buf)->contents());
|
||||||
enc->setBuffer(a_buf, offset, idx);
|
enc->setBuffer(a_buf, offset, idx);
|
||||||
// MTL::Resource usage through argument buffer needs to be explicity
|
// MTL::Resource usage through argument buffer needs to be explicitly
|
||||||
// flagged to enable hazard tracking
|
// flagged to enable hazard tracking
|
||||||
compute_encoder->useResource(a_buf, MTL::ResourceUsageRead);
|
compute_encoder->useResource(a_buf, MTL::ResourceUsageRead);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user