Skip to content

Commit

Permalink
use cudaStreamCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
chilo-ms committed Oct 23, 2023
1 parent acea41c commit d962f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/test/shared_lib/test_inference.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2844,7 +2844,7 @@ TEST(CApiTest, TestExternalCUDAStreamWithIOBinding) {
// updating provider option with user provided compute stream
cudaStream_t compute_stream = nullptr;
void* user_compute_stream = nullptr;
cudaStreamCreateWithFlags(&compute_stream, cudaStreamNonBlocking);
cudaStreamCreate(&compute_stream);
ASSERT_TRUE(api.UpdateTensorRTProviderOptionsWithValue(rel_trt_options.get(), "user_compute_stream", compute_stream) == nullptr);

Check warning on line 2848 in onnxruntime/test/shared_lib/test_inference.cc

View workflow job for this annotation

GitHub Actions / cpplint

[cpplint] onnxruntime/test/shared_lib/test_inference.cc#L2848

Lines should be <= 120 characters long [whitespace/line_length] [2]
Raw output
onnxruntime/test/shared_lib/test_inference.cc:2848:  Lines should be <= 120 characters long  [whitespace/line_length] [2]
ASSERT_TRUE(api.GetTensorRTProviderOptionsByName(rel_trt_options.get(), "user_compute_stream", &user_compute_stream) == nullptr);

Check warning on line 2849 in onnxruntime/test/shared_lib/test_inference.cc

View workflow job for this annotation

GitHub Actions / cpplint

[cpplint] onnxruntime/test/shared_lib/test_inference.cc#L2849

Lines should be <= 120 characters long [whitespace/line_length] [2]
Raw output
onnxruntime/test/shared_lib/test_inference.cc:2849:  Lines should be <= 120 characters long  [whitespace/line_length] [2]
ASSERT_TRUE(user_compute_stream == (void*)compute_stream);
Expand Down

0 comments on commit d962f33

Please sign in to comment.