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
57914709
Commit
57914709
authored
Mar 01, 2022
by
Shucai Xiao
Browse files
clang format
parent
7da8748c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/targets/gpu/device/gelu.cpp
src/targets/gpu/device/gelu.cpp
+8
-8
No files found.
src/targets/gpu/device/gelu.cpp
View file @
57914709
...
@@ -67,7 +67,6 @@ __global__ void add_gelu_kernel(void* a, void* b, int n_dim, void* r, int n)
...
@@ -67,7 +67,6 @@ __global__ void add_gelu_kernel(void* a, void* b, int n_dim, void* r, int n)
}
}
}
}
void
add_gelu
(
hipStream_t
stream
,
void
add_gelu
(
hipStream_t
stream
,
const
argument
&
result
,
const
argument
&
result
,
const
argument
&
arg1
,
const
argument
&
arg1
,
...
@@ -84,7 +83,8 @@ void add_gelu(hipStream_t stream,
...
@@ -84,7 +83,8 @@ void add_gelu(hipStream_t stream,
auto
last_dim
=
sr
.
lens
().
back
()
/
2
;
auto
last_dim
=
sr
.
lens
().
back
()
/
2
;
int
block_size
=
1024
;
int
block_size
=
1024
;
int
block_num
=
(
elem_num
+
block_size
-
1
)
/
block_size
;
int
block_num
=
(
elem_num
+
block_size
-
1
)
/
block_size
;
add_gelu_kernel
<<<
block_num
,
block_size
>>>
(
arg1
.
data
(),
arg2
.
data
(),
last_dim
,
result
.
data
(),
elem_num
);
add_gelu_kernel
<<<
block_num
,
block_size
>>>
(
arg1
.
data
(),
arg2
.
data
(),
last_dim
,
result
.
data
(),
elem_num
);
}
}
else
else
{
{
...
...
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