Skip to content

Commit

Permalink
AMD supports avx512bf16
Browse files Browse the repository at this point in the history
  • Loading branch information
dd86k committed Oct 13, 2023
1 parent 756400f commit 90d1b00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ddcpuid.d
Original file line number Diff line number Diff line change
Expand Up @@ -1685,11 +1685,12 @@ void ddcpuid_leaf7sub1(ref CPUINFO cpu, ref REGISTERS regs) {
switch (cpu.vendor.id) with (Vendor) {
case Intel:
// a
cpu.avx512_bf16 = bit(regs.eax, 5);
cpu.lam = bit(regs.eax, 26);
break;
default:
}

cpu.avx512_bf16 = bit(regs.eax, 5);
}

private
Expand Down

0 comments on commit 90d1b00

Please sign in to comment.