HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
webgpu_provider_factory.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License.
3 
4 // Dummy file to provide a signal in the ONNX Runtime C cocoapod as to whether the WebGPU EP was included in the build.
5 // If it was, this file will be included in the cocoapod, and a test like this can be used:
6 //
7 // #if __has_include(<onnxruntime/webgpu_provider_factory.h>)
8 // #define WEBGPU_EP_AVAILABLE 1
9 // #else
10 // #define WEBGPU_EP_AVAILABLE 0
11 // #endif
12 
13 // The WebGPU EP can be enabled via the generic SessionOptionsAppendExecutionProvider method, so no direct usage of
14 // the provider factory is required.