10000 [Vulkan] Don't crash immediately if Vulkan context could not be retri… · pytorch/pytorch@82ed5ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 82ed5ca

Browse files
Akshit Khuranapytorchmergebot
authored andcommitted
[Vulkan] Don't crash immediately if Vulkan context could not be retrieved (#86485)
Test Plan: Internal AIBench test Reviewed By: SS-JIA Differential Revision: D40151818 Pull Request resolved: #86485 Approved by: https://github.com/kimishpatel
1 parent b409d1f commit 82ed5ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

aten/src/ATen/native/vulkan/api/Context.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ Context* context() {
145145
return nullptr;
146146
}());
147147

148-
TORCH_CHECK(
149-
context,
148+
TORCH_WARN(
150149
"Pytorch Vulkan Context: The global context could not be retrieved "
151150
"because it failed to initialize.");
152151

0 commit comments

Comments
 (0)
0