Skip to content

Commit

Permalink
Remove MIGRAPHX_STREAM_SYNC guard which does not exists in current ve…
Browse files Browse the repository at this point in the history
…rsion.
  • Loading branch information
xinyazhang committed Oct 24, 2024
1 parent 77ecac5 commit 7c73ec5
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1432,15 +1432,11 @@ Status MIGraphXExecutionProvider::Compile(const std::vector<FusedNodeAndGraph>&
std::vector<int64_t> 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<hipStream_t>(rocm_stream)));
#else
HIP_CALL_THROW(hipMemcpy(output_data, gpu_res.data(), res_shape.bytes(), hipMemcpyDeviceToDevice));
#endif
}
}
};
Expand Down

0 comments on commit 7c73ec5

Please sign in to comment.