mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Fix minimal build
This commit is contained in:
parent
a79227dd0f
commit
49a8b5db0f
2 changed files with 19 additions and 2 deletions
|
|
@ -1837,6 +1837,24 @@ ORT_API_STATUS_IMPL(OrtApis::SessionOptionsAppendExecutionProvider_OpenVINO,
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(ORT_MINIMAL_BUILD)
|
||||
ORT_API_STATUS_IMPL(OrtApis::SessionOptionsAppendExecutionProvider_CUDA, _In_ OrtSessionOptions* options, _In_ const OrtCUDAProviderOptions* provider_options) {
|
||||
ORT_UNUSED_PARAMETER(options);
|
||||
ORT_UNUSED_PARAMETER(provider_options);
|
||||
return CreateStatus(ORT_FAIL, "CUDA execution provider is not enabled.");
|
||||
}
|
||||
|
||||
ORT_API_STATUS_IMPL(OrtApis::GetCurrentGpuDeviceId, _In_ int* device_id) {
|
||||
ORT_UNUSED_PARAMETER(device_id);
|
||||
return CreateStatus(ORT_FAIL, "CUDA execution provider is not enabled.");
|
||||
}
|
||||
|
||||
ORT_API_STATUS_IMPL(OrtApis::SetCurrentGpuDeviceId, _In_ int device_id) {
|
||||
ORT_UNUSED_PARAMETER(device_id);
|
||||
return CreateStatus(ORT_FAIL, "CUDA execution provider is not enabled.");
|
||||
}
|
||||
#endif
|
||||
|
||||
ORT_API_STATUS_IMPL(OrtApis::CreateArenaCfg, _In_ size_t max_mem, int arena_extend_strategy, int initial_chunk_size_bytes,
|
||||
int max_dead_bytes_per_chunk, _Outptr_ OrtArenaCfg** out) {
|
||||
API_IMPL_BEGIN
|
||||
|
|
|
|||
|
|
@ -6,8 +6,7 @@ parameters:
|
|||
|
||||
jobs:
|
||||
- job: 'build'
|
||||
pool: 'RyanWinGPU'
|
||||
# pool: 'Win-GPU-2019'
|
||||
pool: 'Win-GPU-2019'
|
||||
variables:
|
||||
OrtPackageId: 'Microsoft.ML.OnnxRuntime.Gpu'
|
||||
MsbuildArguments: '-maxcpucount'
|
||||
|
|
|
|||
Loading…
Reference in a new issue