From cb8c4bd03dab1e4e5569dab3e63e9dfa6630987b Mon Sep 17 00:00:00 2001 From: Xinya Zhang Date: Thu, 24 Oct 2024 19:49:34 +0000 Subject: [PATCH] Remove MIGRAPHX_STREAM_SYNC guard --- .../core/providers/migraphx/migraphx_execution_provider.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc b/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc index 16e7ea005e0a8..dca38480434fe 100644 --- a/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc +++ b/onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc @@ -1445,15 +1445,11 @@ Status MIGraphXExecutionProvider::Compile(const std::vector& std::vector ort_shape{res_lens.begin(), res_lens.end()}; auto output_tensor = ctx.GetOutput(i, ort_shape.data(), ort_shape.size()); void* output_data = output_tensor.GetTensorMutableRawData(); -#ifdef MIGRAPHX_STREAM_SYNC HIP_CALL_THROW(hipMemcpyWithStream(output_data, gpu_res.data(), res_shape.bytes(), hipMemcpyDeviceToDevice, static_cast(rocm_stream))); -#else - HIP_CALL_THROW(hipMemcpy(output_data, gpu_res.data(), res_shape.bytes(), hipMemcpyDeviceToDevice)); -#endif } } };