fix: pack scalar tmem softmax as fp16
This commit is contained in:
@@ -418,7 +418,7 @@ module VX_execute import VX_gpu_pkg::*; #(
|
|||||||
input [31:0] denom_bits;
|
input [31:0] denom_bits;
|
||||||
begin
|
begin
|
||||||
`ifdef SV_DPI
|
`ifdef SV_DPI
|
||||||
scalar_tmem_softmax_prob_pack = 32'(dpi_softmax_prob_to_fp8e4m3x4(1'b1, int'(score_bits), int'(max_bits), int'(denom_bits)));
|
scalar_tmem_softmax_prob_pack = 32'(dpi_softmax_prob_to_f16x2(1'b1, int'(score_bits), int'(max_bits), int'(denom_bits)));
|
||||||
`else
|
`else
|
||||||
scalar_tmem_softmax_prob_pack = '0;
|
scalar_tmem_softmax_prob_pack = '0;
|
||||||
`endif
|
`endif
|
||||||
|
|||||||
Reference in New Issue
Block a user