Skip to content

Commit 87891f3

Browse files
authored
Make failure to initialize a device a warning (#206)
This change allows devices like VMs that don't have a working Vulkan device to still execute D3D tests even if the offloader tool was built to enable Vulkan support.
1 parent 198e13e commit 87891f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/offloader/offloader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ int main(int ArgC, char **ArgV) {
8080

8181
int run() {
8282
const ExitOnError ExitOnErr("gpu-exec: error: ");
83-
ExitOnErr(Device::initialize());
83+
logAllUnhandledErrors(Device::initialize(), errs(), "gpu-exec: warning: ");
8484

8585
const std::unique_ptr<MemoryBuffer> PipelineBuf = readFile(InputPipeline);
8686
Pipeline PipelineDesc;

0 commit comments

Comments
 (0)