mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-07 01:22:59 +08:00
[Serving][backend]serving support multi stream and backend support external stream (#431)
* serving support multi stream * pybind add external stream Co-authored-by: Jason <jiangjiajun@baidu.com>
This commit is contained in:
@@ -63,6 +63,10 @@ void OrtBackend::BuildOption(const OrtBackendOption& option) {
|
||||
} else {
|
||||
OrtCUDAProviderOptions cuda_options;
|
||||
cuda_options.device_id = option.gpu_id;
|
||||
if(option.external_stream_) {
|
||||
cuda_options.has_user_compute_stream = 1;
|
||||
cuda_options.user_compute_stream = option.external_stream_;
|
||||
}
|
||||
session_options_.AppendExecutionProvider_CUDA(cuda_options);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user