Skip to content

Commit

Permalink
remove invalid links
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdaily committed Oct 9, 2023
1 parent 4d93107 commit 06c097e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions onnxruntime/core/providers/rocm/rocm_provider_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ struct ProviderInfo_ROCM_Impl final : ProviderInfo_ROCM {
HIP_CALL_THROW(hipMemcpy(dst, src, count, hipMemcpyHostToDevice));

// To ensure that the copy has completed, invoke a stream sync for the default stream.
// https://docs.nvidia.com/rocm/rocm-runtime-api/api-sync-behavior.html#api-sync-behavior__memcpy-sync
// For transfers from pageable host memory to device memory, a stream sync is performed before the copy is initiated.
// The function will return once the pageable buffer has been copied to the staging memory for DMA transfer
// to device memory, but the DMA to final destination may not have completed.
Expand All @@ -142,7 +141,6 @@ struct ProviderInfo_ROCM_Impl final : ProviderInfo_ROCM {

// Used by onnxruntime_pybind_state.cc
void rocmMemcpy_DeviceToHost(void* dst, const void* src, size_t count) override {
// https://docs.nvidia.com/rocm/rocm-runtime-api/api-sync-behavior.html#api-sync-behavior__memcpy-sync
// For transfers from device to either pageable or pinned host memory, the function returns only once the copy has completed.
HIP_CALL_THROW(hipMemcpy(dst, src, count, hipMemcpyDeviceToHost));
}
Expand Down

0 comments on commit 06c097e

Please sign in to comment.