Unverified Commit b8d029b1 authored by J-shang's avatar J-shang Committed by GitHub
Browse files

[Bugbash] fix pipeline (#4746)

parent 055b42c0
......@@ -102,7 +102,7 @@ jobs:
- script: |
python -m pip install --upgrade pip setuptools wheel twine
python -m pip install jupyter jupyterlab
python -m pip install -r dependencies/develop.txt
python test/vso_tools/build_wheel.py $(NNI_RELEASE)
displayName: Build wheel
......@@ -130,7 +130,7 @@ jobs:
- powershell: |
python -m pip install --upgrade pip setuptools wheel twine
python -m pip install jupyter jupyterlab
python -m pip install -r dependencies/develop.txt
python test/vso_tools/build_wheel.py $(NNI_RELEASE)
displayName: Build wheel
......
......@@ -44,7 +44,7 @@ class WindowsCommands extends OsCommands {
}
public generateGpuStatsScript(scriptFolder: string): string {
return `powershell -command $setEnv = Start-Job -script {$env:Path=If($env:prePath){$env:prePath}Else{$env:Path};$env:METRIC_OUTPUT_DIR='${scriptFolder}'};wait-job $setEnv;$app = Start-Process -FilePath python -NoNewWindow -passthru -ArgumentList '-m nni.tools.gpu_tool.gpu_metrics_collector' -RedirectStandardOutput ${scriptFolder}\\scriptstdout -RedirectStandardError ${scriptFolder}\\scriptstderr;Write $PID ^| Out-File ${scriptFolder}\\pid -NoNewline -encoding utf8;wait-process $app.ID`;
return `powershell -command $env:Path=If($env:prePath){$env:prePath}Else{$env:Path};$env:METRIC_OUTPUT_DIR='${scriptFolder}';$app = Start-Process -FilePath python -NoNewWindow -passthru -ArgumentList '-m nni.tools.gpu_tool.gpu_metrics_collector' -RedirectStandardOutput ${scriptFolder}\\scriptstdout -RedirectStandardError ${scriptFolder}\\scriptstderr;Write $PID ^| Out-File ${scriptFolder}\\pid -NoNewline -encoding utf8;wait-process $app.ID`;
}
public createFolder(folderName: string, sharedFolder: boolean = false): string {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment