chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:17:40 +08:00
commit f1825c8ceb
10096 changed files with 2364182 additions and 0 deletions
@@ -0,0 +1,18 @@
import ray
def main():
"""Requests placement of a GPU actor."""
@ray.remote(num_gpus=1, num_cpus=1)
class GPUActor:
def where_am_i(self):
assert len(ray.get_gpu_ids()) == 1
return "on-a-gpu-node"
GPUActor.options(name="gpu_actor", lifetime="detached").remote()
if __name__ == "__main__":
ray.init("auto", namespace="gpu-test")
main()