Skip to content

Commit c1e3e18

Browse files
committed
CPU: tweak device score
1 parent 2a507f9 commit c1e3e18

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

devices/cpu/cpu_device.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,19 @@ OIDN_NAMESPACE_BEGIN
5151
if (arch == CPUArch::Unknown)
5252
return {};
5353

54-
// Prefer the CPU over some low-power integrated GPUs
55-
int score = (1 << 16) + 61;
54+
int score = 0;
55+
switch (arch)
56+
{
57+
case CPUArch::AVX512_AMXFP16:
58+
score = (15 << 16);
59+
break;
60+
61+
default:
62+
// Prefer the CPU over some low-power integrated GPUs
63+
score = (1 << 16) + 61;
64+
break;
65+
}
66+
5667
return {makeRef<CPUPhysicalDevice>(score)};
5768
}
5869

0 commit comments

Comments
 (0)