mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
Ready queue refactor to make Dispatching tasks more efficient (#3324)
* put queues outside * working version, still needs to be optimized * implement round robin * proper round robin * fix spillback * update * fix * cleanup * more cleanups * fix * fix * add documentation * explanation for hash combiner * speed it up * cleanup and linting * linting * comments * Update scheduling_queue.h * temp commit * fixes * update * fix * cleanup * cleanup * lint * more prints * more prints * increase sleep * documentation * sleep * fix * fix * sleep longer * update * fix * fix * fix * Add ordered_set container. * Fix * Linting * Constructors * Remove O(n) call to list.size(). * fixes * use ordered set * Fix. * Add documentation. * Add iterators to ordered_set container implementation. * iterator_type -> iterator * Make typedefs private * Add const_iterator * fix * fix test * linting * lint * update * add documentation * linting
This commit is contained in:
+2
-2
@@ -1020,7 +1020,7 @@ def test_actors_and_tasks_with_gpus(shutdown_only):
|
||||
@ray.remote(num_gpus=1)
|
||||
def f1():
|
||||
t1 = time.monotonic()
|
||||
time.sleep(0.1)
|
||||
time.sleep(0.2)
|
||||
t2 = time.monotonic()
|
||||
gpu_ids = ray.get_gpu_ids()
|
||||
assert len(gpu_ids) == 1
|
||||
@@ -1031,7 +1031,7 @@ def test_actors_and_tasks_with_gpus(shutdown_only):
|
||||
@ray.remote(num_gpus=2)
|
||||
def f2():
|
||||
t1 = time.monotonic()
|
||||
time.sleep(0.1)
|
||||
time.sleep(0.2)
|
||||
t2 = time.monotonic()
|
||||
gpu_ids = ray.get_gpu_ids()
|
||||
assert len(gpu_ids) == 2
|
||||
|
||||
Reference in New Issue
Block a user