[CPU][CI] Re-enable the CPU CI tests (#19046)

Signed-off-by: jiang.li <jiang1.li@intel.com>
This commit is contained in:
Li, Jiang
2025-06-02 20:46:47 -07:00
committed by GitHub
parent 4ce42f9204
commit 8655f47f37
3 changed files with 29 additions and 26 deletions
+2 -1
View File
@@ -1203,7 +1203,8 @@ def cleanup_dist_env_and_memory(shutdown_ray: bool = False):
if empty_cache is not None:
empty_cache()
try:
torch._C._host_emptyCache()
if not current_platform.is_cpu():
torch._C._host_emptyCache()
except AttributeError:
logger.warning(
"torch._C._host_emptyCache() only available in Pytorch >=2.5")