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
422c825b
"git@developer.sourcefind.cn:orangecat/ollama.git" did not exist on "9ec7e375347d913b30bc066aae684463b6722995"
Commit
422c825b
authored
Aug 24, 2018
by
Paul
Browse files
Formatting
parent
905dbf49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
src/targets/gpu/device/add.cpp
src/targets/gpu/device/add.cpp
+1
-2
src/targets/gpu/lowering.cpp
src/targets/gpu/lowering.cpp
+1
-2
No files found.
src/targets/gpu/device/add.cpp
View file @
422c825b
...
@@ -7,8 +7,7 @@ namespace device {
...
@@ -7,8 +7,7 @@ namespace device {
void
add
(
argument
result
,
argument
arg1
,
argument
arg2
)
void
add
(
argument
result
,
argument
arg1
,
argument
arg2
)
{
{
nary
(
std
::
move
(
result
),
std
::
move
(
arg1
),
std
::
move
(
arg2
))(
nary
(
std
::
move
(
result
),
std
::
move
(
arg1
),
std
::
move
(
arg2
))([](
auto
x
,
auto
y
)
{
return
x
+
y
;
});
[](
auto
x
,
auto
y
)
{
return
x
+
y
;
});
}
}
}
// namespace device
}
// namespace device
...
...
src/targets/gpu/lowering.cpp
View file @
422c825b
...
@@ -178,8 +178,7 @@ struct hip_add
...
@@ -178,8 +178,7 @@ struct hip_add
return
inputs
.
at
(
0
);
return
inputs
.
at
(
0
);
}
}
argument
argument
compute
(
context
&
,
const
shape
&
,
const
std
::
vector
<
argument
>&
args
)
const
compute
(
context
&
,
const
shape
&
,
const
std
::
vector
<
argument
>&
args
)
const
{
{
device
::
add
(
args
[
2
],
args
[
0
],
args
[
1
]);
device
::
add
(
args
[
2
],
args
[
0
],
args
[
1
]);
return
args
[
2
];
return
args
[
2
];
...
...
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