rocblas.cpp 444 Bytes
Newer Older
Paul's avatar
Paul committed
1
#include <migraph/gpu/rocblas.hpp>
2
3

namespace migraph {
Paul's avatar
Paul committed
4
namespace gpu {
5
6
7
8
9
10
11
12

rocblas_handle_ptr create_rocblas_handle_ptr()
{
    rocblas_handle handle;
    rocblas_create_handle(&handle);
    return rocblas_handle_ptr{handle};
}

Paul's avatar
Paul committed
13
14
15
16
17
18
19
rocblas_handle_ptr create_rocblas_handle_ptr(hipStream_t s)
{
    rocblas_handle_ptr rb = create_rocblas_handle_ptr();
    rocblas_set_stream(rb.get(), s);
    return rb;
}

Paul's avatar
Paul committed
20
} // namespace gpu
21
22

} // namespace migraph