Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
80587d4c
Commit
80587d4c
authored
Aug 24, 2018
by
mei-ye
Browse files
staging
parent
70837f1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/targets/gpu/hip.cpp
src/targets/gpu/hip.cpp
+0
-2
No files found.
src/targets/gpu/hip.cpp
View file @
80587d4c
...
...
@@ -18,8 +18,6 @@ hip_ptr allocate_gpu(std::size_t sz)
hipMalloc
(
&
result
,
sz
);
if
(
result
==
nullptr
)
throw
std
::
runtime_error
(
"can not allocate GPU memory"
);
char
*
ptr
=
reinterpret_cast
<
char
*>
(
result
);
std
::
cout
<<
"MIGraph allocated mem: ["
<<
result
<<
","
<<
ptr
+
sz
-
1
<<
"]"
<<
std
::
endl
;
return
hip_ptr
{
result
};
}
...
...
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