-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing cuda_provider_factory.h file in release for windows gpu #1373
Comments
Thanks for reporting this. CC: @pranavsharma @snnn |
resolved by #1461 |
I have the same problem with the release version onnxruntime-win-x64-gpu-1.11.0.zip |
Also absent from |
It is not relevant any more . #include "onnxruntime_c_api.h"
OrtCUDAProviderOptionsV2* cuda_options = nullptr;
api->CreateCUDAProviderOptions(&cuda_options));
std::unique_ptr<OrtCUDAProviderOptionsV2, decltype(&OrtApis::ReleaseCUDAProviderOptions)> rel_cuda_options(
cuda_options, &OrtApis::ReleaseCUDAProviderOptions);
api->SessionOptionsAppendExecutionProvider_CUDA_V2(ortso, cuda_options)); |
What is the type of the variable "api"? I want to run the mnist example (https://github.com/microsoft/onnxruntime-inference-examples/tree/main/c_cxx/MNIST). Do you have an example for using onnxruntime with CUDA in C++? |
|
the examples need to be updated to not include cuda_provider_factory.h |
Describe the bug
Using the release onnxruntime-win-x64-gpu-0.4.0.zip.
Following the example to execute a model using the C API, I couldn't activate the CUDA provider because cuda_provider_factory.h file is missing.
I found a workaround compiling the project myself and copying the generated file into my include folder (also modifying the #include inside the file)
Urgency
No urgency as I found the workaround but it would be easier for future releases.
System information
Thanks and good work
The text was updated successfully, but these errors were encountered: