Skip to content

Commit c0f4a1e

Browse files
Small fix
Signed-off-by: Oleg Goncharov <[email protected]>
1 parent 2688064 commit c0f4a1e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

transformer_engine/common/cast/nvfp4/core_nvfp4.cuh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ __device__ __forceinline__ nvfp4_scale_t compute_decoding_scaling_factor(const f
5050
const float S_dec_b = block_amax / fp4_max * S_enc;
5151
return static_cast<nvfp4_scale_t>(fminf(S_dec_b, TypeExtrema<float>::max));
5252
}
53-
#else
54-
NVTE_ERROR("FP4 support requires CUDA 12.8+, but compile-time CUDA version is ", CUDA_VERSION);
5553
#endif // FP4_TYPE_SUPPORTED
5654
} // namespace quantization_and_transposition_SF
5755

@@ -67,8 +65,6 @@ __device__ __forceinline__ fp8e4m3 compute_decoding_scaling_factor(const float b
6765
// return S_dec_b_fp8;
6866
return static_cast<fp8e4m3>(block_amax * rcp_6f * S_enc);
6967
}
70-
#else
71-
NVTE_ERROR("FP4 support requires CUDA 12.8+, but compile-time CUDA version is ", CUDA_VERSION);
7268
#endif // FP4_TYPE_SUPPORTED
7369
} // namespace quantization_SF
7470

0 commit comments

Comments
 (0)