From 537b989b812dd5068c3a7b1eada3c3e48a336239 Mon Sep 17 00:00:00 2001 From: "Zhong, Ruijie" Date: Thu, 26 Dec 2024 04:17:34 +0000 Subject: [PATCH] update torch-xpu-ops replace --- .github/workflows/_windows_ut.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/_windows_ut.yml b/.github/workflows/_windows_ut.yml index ee5c540b1..73535fcff 100644 --- a/.github/workflows/_windows_ut.yml +++ b/.github/workflows/_windows_ut.yml @@ -75,13 +75,6 @@ jobs: git status git show -s git submodule sync && git submodule update --init --recursive - cd ../torch-xpu-ops - git rev-parse HEAD >> commit.txt - for /F %%i in ('type commit.txt') do ( set commit=%%i) - echo %commit% >> ..\pytorch\third_party\xpu_tmp.txt - echo %commit% - type ..\pytorch\third_party\xpu_tmp.txt - cd ../pytorch if ${{ inputs.keep_torch_xpu_ops }} == 'true' ( echo "Don't replace torch-xpu-ops!" ) else ( @@ -92,8 +85,7 @@ jobs: ) cd .. Xcopy ..\torch-xpu-ops third_party\torch-xpu-ops /E/H/Y/F/I - move third_party\xpu_tmp.txt third_party\xpu.txt - type third_party\xpu.txt + powershell -Command "(Get-Content caffe2/CMakeLists.txt) -replace 'checkout --quiet \${TORCH_XPU_OPS_COMMIT}', 'log -n 1' | Set-Content caffe2/CMakeLists.txt" ) - name: Build Pytorch XPU shell: cmd