Skip to content

Commit d7eb4aa

Browse files
committed
Prevent bluescreen
1 parent 088e20f commit d7eb4aa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

install.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ function install(kernel)
66

77
if (platform === 'linux' && gpu === 'amd')
88
{
9-
return 'python install.py --onnxruntime rocm';
9+
return 'python install.py --onnxruntime rocm || exit 0';
1010
}
1111
if (platform === 'win32' && gpu === 'amd')
1212
{
13-
return 'python install.py --onnxruntime directml';
13+
return 'python install.py --onnxruntime directml || exit 0';
1414
}
1515
if ((platform === 'linux' || platform === 'win32') && gpu === 'intel')
1616
{
17-
return 'python install.py --onnxruntime openvino';
17+
return 'python install.py --onnxruntime openvino || exit 0';
1818
}
1919
if ((platform === 'linux' || platform === 'win32') && gpu === 'nvidia')
2020
{
21-
return 'python install.py --onnxruntime cuda';
21+
return 'python install.py --onnxruntime cuda || exit 0';
2222
}
23-
return 'python install.py --onnxruntime default';
23+
return 'python install.py --onnxruntime default || exit 0';
2424
}
2525

2626
module.exports = async kernel =>

0 commit comments

Comments
 (0)