Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/external/onnx-tensorrt
Original file line number Diff line number Diff line change
Expand Up @@ -1337,6 +1337,7 @@ common::Status TensorrtExecutionProvider::Provider_Compile(const std::vector<onn
}
return ORT_MAKE_STATUS(ONNXRUNTIME, FAIL, "TensorRT EP execution context enqueue failed.");
}
cudaDeviceSynchronize();

// Cast INT64 input to INT32 because TensorRT doesn't fully support INT64
for (int i = 0, end = output_binding_names.size(); i < end; ++i) {
Expand All @@ -1355,7 +1356,6 @@ common::Status TensorrtExecutionProvider::Provider_Compile(const std::vector<onn
}
}

cudaDeviceSynchronize();
for (const auto& binding_index : binding_buffers_to_freeup) {
cudaFree(buffers[binding_index]);
}
Expand Down