Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
FlashMLA
Commits
5d8e93f6
Commit
5d8e93f6
authored
Jan 28, 2026
by
zhanghj2
Browse files
判断是否为正无穷
parent
50f07abd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
csrc/utils.h
csrc/utils.h
+14
-0
No files found.
csrc/utils.h
View file @
5d8e93f6
...
@@ -347,5 +347,19 @@ __forceinline__ __device__ auto convert_layout_acc_Aregs(const TiledMma& tiled_m
...
@@ -347,5 +347,19 @@ __forceinline__ __device__ auto convert_layout_acc_Aregs(const TiledMma& tiled_m
return
tSrACC
;
return
tSrACC
;
}
}
__forceinline__
__device__
bool
is_positive_infinity
(
const
float
&
f_val
)
{
union
Fp32
{
uint32_t
as_bits
;
float
as_value
;
};
Fp32
fp32
;
fp32
.
as_value
=
f_val
;
Fp32
inf_tmp
;
inf_tmp
.
as_value
=
INFINITY
;
return
fp32
.
as_bits
==
inf_tmp
.
as_bits
;
}
}
}
\ No newline at end of file
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