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
OpenDAS
apex
Commits
1574c03d
Commit
1574c03d
authored
Jun 10, 2020
by
Sukru Eryilmaz
Browse files
add streamid
parent
16869317
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
apex/contrib/csrc/multihead_attn/softmax.h
apex/contrib/csrc/multihead_attn/softmax.h
+1
-1
No files found.
apex/contrib/csrc/multihead_attn/softmax.h
View file @
1574c03d
...
@@ -494,7 +494,7 @@ bool dispatch_additive_masked_softmax_stream(output_t *dst, const input_t *src,
...
@@ -494,7 +494,7 @@ bool dispatch_additive_masked_softmax_stream(output_t *dst, const input_t *src,
int
blocks
=
(
batch_count
+
batches_per_block
-
1
)
/
batches_per_block
;
int
blocks
=
(
batch_count
+
batches_per_block
-
1
)
/
batches_per_block
;
dim3
threads
(
warp_size
,
warps_per_block
,
1
);
dim3
threads
(
warp_size
,
warps_per_block
,
1
);
// launch
// launch
kernel
<<<
blocks
,
threads
,
streamid
>>>
(
dst
,
src
,
pad_mask
,
batch_count
,
softmax_elements_stride
,
softmax_elements
,
pad_batch_stride
);
kernel
<<<
blocks
,
threads
,
0
,
streamid
>>>
(
dst
,
src
,
pad_mask
,
batch_count
,
softmax_elements_stride
,
softmax_elements
,
pad_batch_stride
);
return
true
;
return
true
;
}
}
return
false
;
return
false
;
...
...
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