Validate Windows native M FP8 and reduce operand packing cost
This commit is contained in:
1 parent
74aad12938
commit
0c18df6253
20 files changed
+486
-33
No files matched your search
@@ -0,0 +1,9 @@
|
||||
// Diagnostic only: all finite OCP e4m3 encodings, including signed zero.
|
||||
#include "../../kernels/m/swin_common.h"
|
||||
struct PackParams { const half_t* input; uint32_t* output; };
|
||||
extern "C" __global__ void fp8_pack_probe(PackParams p) {
|
||||
const unsigned lane = blockIdx.x * 32 + threadIdx.x;
|
||||
if (lane >= 32) return;
|
||||
const auto packed = to_fp8(*(const sop*)(p.input + lane * 8));
|
||||
p.output[lane * 2] = packed[0]; p.output[lane * 2 + 1] = packed[1];
|
||||
}
|
||||
Reference in new issue
Block a user