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
vllm_cscc
Commits
c9a9db0e
Unverified
Commit
c9a9db0e
authored
Apr 01, 2026
by
Wentao Ye
Committed by
GitHub
Apr 01, 2026
Browse files
[Compile] Fix nvfp4 compile warning (#38573)
Signed-off-by:
yewentao256
<
zhyanwentao@126.com
>
parent
cbe7d180
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
csrc/libtorch_stable/quantization/fp4/nvfp4_quant_entry.cu
csrc/libtorch_stable/quantization/fp4/nvfp4_quant_entry.cu
+7
-4
No files found.
csrc/libtorch_stable/quantization/fp4/nvfp4_quant_entry.cu
View file @
c9a9db0e
...
@@ -58,16 +58,19 @@ void silu_and_mul_scaled_fp4_experts_quant_sm1xxa(
...
@@ -58,16 +58,19 @@ void silu_and_mul_scaled_fp4_experts_quant_sm1xxa(
torch
::
stable
::
Tensor
const
&
output_scale_offset_by_experts
);
torch
::
stable
::
Tensor
const
&
output_scale_offset_by_experts
);
#endif
#endif
#if (defined(ENABLE_NVFP4_SM100) && ENABLE_NVFP4_SM100) || \
(defined(ENABLE_NVFP4_SM120) && ENABLE_NVFP4_SM120)
static
bool
nvfp4_quant_sm_supported
()
{
static
bool
nvfp4_quant_sm_supported
()
{
const
int32_t
sm
=
get_sm_version_num
();
const
int32_t
sm
=
get_sm_version_num
();
#if defined(ENABLE_NVFP4_SM100) && ENABLE_NVFP4_SM100
#if defined(ENABLE_NVFP4_SM100) && ENABLE_NVFP4_SM100
if
(
sm
>=
100
&&
sm
<
120
)
return
true
;
if
(
sm
>=
100
&&
sm
<
120
)
return
true
;
#endif
#endif
#if defined(ENABLE_NVFP4_SM120) && ENABLE_NVFP4_SM120
#if defined(ENABLE_NVFP4_SM120) && ENABLE_NVFP4_SM120
if
(
sm
>=
120
&&
sm
<
130
)
return
true
;
if
(
sm
>=
120
&&
sm
<
130
)
return
true
;
#endif
#endif
return
false
;
return
false
;
}
}
#endif
void
scaled_fp4_quant_out
(
torch
::
stable
::
Tensor
const
&
input
,
void
scaled_fp4_quant_out
(
torch
::
stable
::
Tensor
const
&
input
,
torch
::
stable
::
Tensor
const
&
input_sf
,
torch
::
stable
::
Tensor
const
&
input_sf
,
...
...
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