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
jerrrrry
infinicore
Commits
62b7dd01
Unverified
Commit
62b7dd01
authored
Apr 24, 2025
by
PanZezhong1725
Committed by
GitHub
Apr 24, 2025
Browse files
Merge pull request #198 from InfiniTensor/issue/197
issue/197/fix 修复rope cuda算子中dimx使用uint32_t代替unsigned int
parents
b6bc8a23
ad7124c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/infiniop/ops/rope/cuda/rope_cuda.cu
src/infiniop/ops/rope/cuda/rope_cuda.cu
+2
-2
No files found.
src/infiniop/ops/rope/cuda/rope_cuda.cu
View file @
62b7dd01
...
@@ -46,8 +46,8 @@ infiniStatus_t calculateRoPE(const RoPEInfo &info,
...
@@ -46,8 +46,8 @@ infiniStatus_t calculateRoPE(const RoPEInfo &info,
const
Tdata
*
sin_table
,
const
Tdata
*
sin_table
,
const
Tdata
*
cos_table
,
const
Tdata
*
cos_table
,
cudaStream_t
stream
)
{
cudaStream_t
stream
)
{
auto
dimx
=
u
nsigned
in
t
(
info
.
seqlen
),
auto
dimx
=
u
int32_
t
(
info
.
seqlen
),
dimy
=
u
nsigned
in
t
(
info
.
nhead
);
dimy
=
u
int32_
t
(
info
.
nhead
);
int
nthreads
=
std
::
max
(
int
(
info
.
table_dim
),
block_size
);
int
nthreads
=
std
::
max
(
int
(
info
.
table_dim
),
block_size
);
ropeThreadPerItem
<<<
dim3
(
dimx
,
dimy
),
nthreads
,
0
,
stream
>>>
(
ropeThreadPerItem
<<<
dim3
(
dimx
,
dimy
),
nthreads
,
0
,
stream
>>>
(
...
...
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