| 39 | using hip_stream_ptr = MIGRAPHX_MANAGE_PTR(hipStream_t, hipStreamDestroy); |
| 40 | |
| 41 | static hip_stream_ptr create_external_stream() |
| 42 | { |
| 43 | hipStream_t stream; |
| 44 | auto status = hipStreamCreate(&stream); |
| 45 | if(status != hipSuccess) |
| 46 | MIGRAPHX_THROW("Failed to create stream"); |
| 47 | return hip_stream_ptr{stream}; |
| 48 | } |
| 49 | |
| 50 | static void verify_data(const migraphx::argument& result, const migraphx::shape& s, float expected) |
| 51 | { |