[CPU Stream] Add noop for CPU stream record_event() and wait_event() (#145935)

Summary: Adds wait_event and record_event endpoints to CPU stream in order to facilitate device-agnostic code. Both methods are noops.

Test Plan: CI

Differential Revision: D68833927

Pull Request resolved: https://github.com/pytorch/pytorch/pull/145935
Approved by: https://github.com/Skylion007
This commit is contained in:
Jessica Vandebon 2025-02-20 18:50:55 +00:00 committed by PyTorch MergeBot
parent 863ac20659
commit 6971b77510

View File

@ -95,6 +95,12 @@ class Stream:
def wait_stream(self, stream) -> None:
pass
def record_event(self) -> None:
pass
def wait_event(self, event) -> None:
pass
class Event:
def query(self) -> bool: