onnxruntime/cmake
Chi Lo affdeb53c2
Add Python API for specifying device options. (#4205)
* Add python API for specifying CUDA device id

* Modification for providing session based python api for specifying
device id

* When include header file pybind11/stl.h, conversion between c++
containers and Python list, vector and dict data structure are
automatically enabled.

https://pybind11.readthedocs.io/en/stable/advanced/cast/stl.html#

Therefore, refactor the code for better leverage this advantage.

* Make struct CudaDeviceOptions as default cuda device options

* Implement sess.set_providers(list_of_providers, list_of_provider_option_dicts)

But still stay consistent with existing sess.set_providers(list_of_provider)

* Add cuda provider option default setting

* Add support for setting cuda cuda_mem_limit and arena_extend_strategy.
Also resolved the merge conflict on session.py

* Use python ctypes to call cuda library to help python unittest

* Refine the code with reviewer's suggestions

* Add the capability of getting execution provider's configuration

- Once we introduced the capability to set execution provider's
configuration, it makes sense to add capability of getting ep's configuration.

* Modify the code with reviewer's suggestions.

* Using stoull() and stoul() depends on 32/64-bits architecture.

* Rewrite the testcases for testing setting CUDA device id

Note: We need to make sure every ORT process be run on one CUDA device
at a time.

* Make sure old session object is destroyed by python gc before new
session object is being created

* Move testcases to original onnxruntime_test_python.py

* Fix bugs to pass CI build

* Make it pass CI build (cont.)

* Make it pass CI build (cont.)
2020-07-21 07:28:13 -07:00
..
external Onnxruntime fuzzing (#4341) 2020-07-06 16:34:34 -07:00
horovod Address PR comments and clean up. (#3536) 2020-04-15 15:51:52 -07:00
onnx Merge windowsai (winml layering) into master (#2956) 2020-02-04 17:12:19 -08:00
patches OpenVINO EP v2.0 (#3585) 2020-04-24 04:06:02 -07:00
tensorboard Introduce training changes. 2020-03-11 14:39:03 -07:00
CMakeLists.txt Fix code sign validation errors in nuget and nodejs pipeline (#4527) 2020-07-20 14:18:47 -07:00
CMakeSettings.json Fork the WinML APIs into the Microsoft namespace (#3503) 2020-04-17 06:18:54 -07:00
codeconv.runsettings CMake changes (#2961) 2020-02-03 19:33:14 -08:00
ConfigureVisualStudioCodeAnalysis.props
EnableVisualStudioCodeAnalysis.props
flake8.cmake Older flake8 versions report false positives and don't handle the same things in the config file. (#3983) 2020-05-20 07:29:22 +10:00
onnxruntime.cmake Add ArmNN Execution Provider (#3714) 2020-06-03 22:57:51 +05:30
onnxruntime_codegen.cmake Put safeint_interface include directory into onnxruntime_common interface include directories to simplify usage by other targets. (#3546) 2020-04-16 10:34:32 -07:00
onnxruntime_common.cmake The initial PR for NNAPI EP (#4287) 2020-06-26 00:02:39 -07:00
onnxruntime_config.h.in Thread pool changes (#3153) 2020-03-30 12:18:40 -07:00
onnxruntime_csharp.cmake Add amd migraphx execution provider to onnx runtime (#2929) 2020-05-27 04:24:59 +08:00
onnxruntime_framework.cmake Put safeint_interface include directory into onnxruntime_common interface include directories to simplify usage by other targets. (#3546) 2020-04-16 10:34:32 -07:00
onnxruntime_fuzz_test.cmake Onnxruntime fuzzing (#4341) 2020-07-06 16:34:34 -07:00
onnxruntime_graph.cmake Remove openmp and scipy from build pipelines (#4305) 2020-06-23 20:18:16 -07:00
onnxruntime_ios.toolchain.cmake iOS cross build on MacOS (#3699) 2020-04-28 17:09:31 -07:00
onnxruntime_java.cmake The initial PR for NNAPI EP (#4287) 2020-06-26 00:02:39 -07:00
onnxruntime_java_unittests.cmake [java] Adds a CUDA test (#3956) 2020-05-18 12:05:51 -07:00
onnxruntime_language_interop_ops.cmake Replace GSL with GSL-LITE submodule and fix up refs (#1920) 2019-10-01 12:43:29 -07:00
onnxruntime_mlas.cmake Build new AVX file with /ARCH:AVX (#4442) 2020-07-07 12:00:12 -07:00
onnxruntime_nodejs.cmake build: split nodejs binding build and test to avoid timeout issue (#4188) 2020-06-10 19:16:32 -07:00
onnxruntime_nuphar_extern.cmake Weba/merge ngemm (#2021) 2019-10-05 12:09:22 -07:00
onnxruntime_optimizer.cmake Put safeint_interface include directory into onnxruntime_common interface include directories to simplify usage by other targets. (#3546) 2020-04-16 10:34:32 -07:00
onnxruntime_providers.cmake Refactor TensorRT EP code to better handle dynamic shape subgraphs (#4504) 2020-07-15 02:35:42 -07:00
onnxruntime_pyop.cmake Update python packaging pipelines (#2167) 2019-10-19 07:42:54 -07:00
onnxruntime_python.cmake Add Python API for specifying device options. (#4205) 2020-07-21 07:28:13 -07:00
onnxruntime_session.cmake Training Python package fixes (#4063) 2020-06-01 09:30:56 -07:00
onnxruntime_training.cmake Enable ORT with CUDA 11 toolkit (#4168) 2020-06-15 08:47:03 -07:00
onnxruntime_unittests.cmake Fix code sign validation errors in nuget and nodejs pipeline (#4527) 2020-07-20 14:18:47 -07:00
onnxruntime_util.cmake Create Utils for Adding Range and Marker (#4013) 2020-05-24 22:55:24 -07:00
precompiled_header.cmake Merge windowsai (winml layering) into master (#2956) 2020-02-04 17:12:19 -08:00
protobuf_function.cmake
set_winapi_family_desktop.h Fix WCOS/Win32 linking bugs (#3126) 2020-03-19 08:52:40 -07:00
target_delayload.cmake Refactor delayloading (#4019) 2020-05-24 23:26:30 -07:00
wcos_toolchain.cmake Fix WCOS/Win32 linking bugs (#3126) 2020-03-19 08:52:40 -07:00
wil.cmake Merge windowsai (winml layering) into master (#2956) 2020-02-04 17:12:19 -08:00
winml.cmake Hardcode WinML umbrella lib to windowsapp.lib (#4133) 2020-06-08 11:04:44 -07:00
winml_cppwinrt.cmake Fork the WinML APIs into the Microsoft namespace (#3503) 2020-04-17 06:18:54 -07:00
winml_sdk_helpers.cmake Merge windowsai (winml layering) into master (#2956) 2020-02-04 17:12:19 -08:00
winml_unittests.cmake Hardcode WinML tests umbrella lib (#4161) 2020-06-08 15:24:08 -07:00