Add initial support for intel Gaudi accelerators (#2121)

This commit is contained in:
Ankur Neog
2024-11-23 09:52:23 +05:30
committed by GitHub
parent 66d4859acf
commit 865233e256
4 changed files with 10 additions and 7 deletions

View File

@@ -278,10 +278,7 @@ def correctness_test(
def synchronize(device):
if device == "cuda":
torch.cuda.synchronize()
elif device == "xpu":
torch.xpu.synchronize()
torch.get_device_module(device).synchronize()
def latency_test_run_once(