mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-03 22:34:43 +08:00
redesign for faster cpu/gpu synch (#1869)
* redesign for faster cpu/gpu synch * load + more async CPU * use command encoder API and move more ops to use it * make fence back-end generic + CPU only fence * faster build * fix async eval * fixes + handle temporaries * fix / improve cpu conv * remove unused status, fix siblings * fix extensions * fix * fix no cpu build * format * comments * fix perf regression, remove unecessary abort * fix events, task limit cpu * fix waiting * fix donation / temporaries in normalization
This commit is contained in:
@@ -37,8 +37,8 @@ TEST_CASE("test stream management") {
|
||||
}
|
||||
|
||||
TEST_CASE("test asynchronous launch") {
|
||||
auto s1 = default_stream(default_device());
|
||||
auto s2 = new_stream(default_device());
|
||||
auto s1 = default_stream(Device::cpu);
|
||||
auto s2 = new_stream(Device::cpu);
|
||||
|
||||
// Make sure streams execute asynchronously
|
||||
int x = 1;
|
||||
@@ -67,8 +67,8 @@ TEST_CASE("test asynchronous launch") {
|
||||
}
|
||||
|
||||
TEST_CASE("test stream placement") {
|
||||
auto s1 = default_stream(default_device());
|
||||
auto s2 = new_stream(default_device());
|
||||
auto s1 = default_stream(Device::cpu);
|
||||
auto s2 = new_stream(Device::cpu);
|
||||
|
||||
{
|
||||
// Wait on stream 1
|
||||
|
Reference in New Issue
Block a user