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
composable_kernel_ROCM
Commits
5ddc62ef
Commit
5ddc62ef
authored
Oct 30, 2024
by
rocking
Browse files
refine type
parent
00b1a7e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
example/ck_tile/12_smoothquant/example_smoothquant.cpp
example/ck_tile/12_smoothquant/example_smoothquant.cpp
+5
-5
No files found.
example/ck_tile/12_smoothquant/example_smoothquant.cpp
View file @
5ddc62ef
...
...
@@ -63,7 +63,7 @@ bool run(const ck_tile::ArgParser& arg_parser)
using
XDataType
=
DataType
;
using
XScaleDataType
=
float
;
using
YScaleDataType
=
DataType
;
using
YScaleDataType
=
float
;
using
QYDataType
=
ck_tile
::
int8_t
;
using
ComputeDataType
=
float
;
...
...
@@ -88,7 +88,7 @@ bool run(const ck_tile::ArgParser& arg_parser)
x_buf
.
ToDevice
(
x_host
.
data
());
xscale_buf
.
ToDevice
(
xscale_host
.
data
());
constexpr
bool
kTwoPass
=
fals
e
;
constexpr
bool
kTwoPass
=
tru
e
;
using
BlockWarps
=
ck_tile
::
sequence
<
2
,
2
>
;
using
BlockTile
=
ck_tile
::
sequence
<
2
,
128
>
;
...
...
@@ -123,7 +123,7 @@ bool run(const ck_tile::ArgParser& arg_parser)
const
dim3
grids
=
Kernel
::
GridSize
(
args
);
constexpr
dim3
blocks
=
Kernel
::
BlockSize
();
constexpr
ck_tile
::
index_t
kBlockPerCu
=
1
;
auto
s
=
ck_tile
::
stream_config
{
nullptr
,
true
,
0
,
warmup
,
repeat
};
auto
s
=
ck_tile
::
stream_config
{
nullptr
,
true
,
1
,
warmup
,
repeat
};
ck_tile
::
launch_kernel
(
s
,
ck_tile
::
make_kernel
<
blocks
.
x
,
kBlockPerCu
>
(
Kernel
{},
grids
,
blocks
,
0
,
kargs
));
...
...
@@ -228,10 +228,10 @@ int main(int argc, char* argv[])
{
return
run
<
ck_tile
::
half_t
>
(
arg_parser
)
?
0
:
-
2
;
}
else
if
(
data_type
==
"bf16"
)
/*
else if(data_type == "bf16")
{
return run<ck_tile::bf16_t>(arg_parser) ? 0 : -2;
}
}
*/
return
-
3
;
}
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