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
Commits
8185c3d3
Commit
8185c3d3
authored
Jan 17, 2023
by
guangzlu
Browse files
fixed philox generator
parent
d3577ab3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
19 deletions
+2
-19
example/32_batched_gemm_scale_softmax_gemm/run_batched_gemm_scale_softmax_gemm_permute_train.inc
...emm/run_batched_gemm_scale_softmax_gemm_permute_train.inc
+2
-1
include/ck/utility/philox_rand.hpp
include/ck/utility/philox_rand.hpp
+0
-18
No files found.
example/32_batched_gemm_scale_softmax_gemm/run_batched_gemm_scale_softmax_gemm_permute_train.inc
View file @
8185c3d3
...
...
@@ -179,7 +179,8 @@ int run(int argc, char* argv[])
b1_element_op
,
c_element_op
,
0
,
// dropout ratio
{
0
,
64
});
// dropout random seed and offset
{
0
,
64
});
// dropout random seed and offset, offset should be at least the number of
// elements on a thread
if
(
!
gemm
.
IsSupportedArgument
(
argument
))
{
...
...
include/ck/utility/philox_rand.hpp
View file @
8185c3d3
...
...
@@ -97,24 +97,6 @@ class philox
{
uint4
res
;
// uint4 tmp;
// asm volatile("v_mov_b32 %8 1; \n"
// "v_mov_b32 %9 0; \n"
// "v_mov_b32 %10 0; \n"
// "v_mov_b32 %11 0; \n"
// "v_add_co_u32 %0, %4, %8; "
// "v_addc_co_u32 %1, %5, %9; "
// "v_addc_co_u32 %2, %6, %10; "
// "v_addc_u32 %3, %7, %11; "
// : "=v"(res.x), "=v"(res.y), "=v"(res.z), "=v"(res.w)
// : "v"(ctr.x),
// "v"(ctr.y),
// "v"(ctr.z),
// "v"(ctr.w),
// "v"(tmp.x),
// "v"(tmp.y),
// "v"(tmp.z),
// "v"(tmp.w));
res
.
x
=
ctr
.
x
+
1
;
res
.
y
=
ctr
.
y
;
res
.
z
=
ctr
.
z
;
...
...
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