Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
061bc56e
Commit
061bc56e
authored
Jul 18, 2018
by
wsttiger
Browse files
Added files needed for rocblas integration
parent
c2b24de5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
src/targets/miopen/include/migraph/miopen/rocblas.hpp
src/targets/miopen/include/migraph/miopen/rocblas.hpp
+19
-0
src/targets/miopen/rocblas.cpp
src/targets/miopen/rocblas.cpp
+15
-0
No files found.
src/targets/miopen/include/migraph/miopen/rocblas.hpp
0 → 100644
View file @
061bc56e
#ifndef MIGRAPH_GUARD_MIGRAPHLIB_ROCBLAS_HPP
#define MIGRAPH_GUARD_MIGRAPHLIB_ROCBLAS_HPP
#include <migraph/manage_ptr.hpp>
#include <migraph/operators.hpp>
#include <rocblas.h>
namespace
migraph
{
namespace
miopen
{
using
rocblas_handle_ptr
=
MIGRAPH_MANAGE_PTR
(
rocblas_handle
,
rocblas_destroy_handle
);
rocblas_handle_ptr
create_rocblas_handle_ptr
();
}
// namespace miopen
}
// namespace migraph
#endif
src/targets/miopen/rocblas.cpp
0 → 100644
View file @
061bc56e
#include <migraph/miopen/rocblas.hpp>
namespace
migraph
{
namespace
miopen
{
rocblas_handle_ptr
create_rocblas_handle_ptr
()
{
rocblas_handle
handle
;
rocblas_create_handle
(
&
handle
);
return
rocblas_handle_ptr
{
handle
};
}
}
// namespace miopen
}
// namespace migraph
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment