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
1529608b
Commit
1529608b
authored
Aug 18, 2025
by
PanZezhong
Browse files
issue/6/fix type convertion
parent
a23c4d13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/infiniop/ops/rms_norm/cuda/kernel.cuh
src/infiniop/ops/rms_norm/cuda/kernel.cuh
+1
-1
No files found.
src/infiniop/ops/rms_norm/cuda/kernel.cuh
View file @
1529608b
...
@@ -22,7 +22,7 @@ __device__ void rmsnormBlock(
...
@@ -22,7 +22,7 @@ __device__ void rmsnormBlock(
// Thread_0 computes RMS=1/sqrt(ss/dim+epsilon) and stores in shared memory
// Thread_0 computes RMS=1/sqrt(ss/dim+epsilon) and stores in shared memory
__shared__
Tcompute
rms
;
__shared__
Tcompute
rms
;
if
(
threadIdx
.
x
==
0
)
{
if
(
threadIdx
.
x
==
0
)
{
rms
=
T
data
(
rsqrtf
(
ss
/
Tcompute
(
dim
)
+
epsilon
));
rms
=
T
compute
(
rsqrtf
(
ss
/
Tcompute
(
dim
)
+
epsilon
));
}
}
__syncthreads
();
__syncthreads
();
...
...
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