更新obi到7.1

This commit is contained in:
Bob.Song
2025-11-03 11:53:45 +08:00
parent d12e1bc495
commit 7cf7f545bc
1161 changed files with 158924 additions and 37802 deletions

View File

@@ -0,0 +1,16 @@
namespace Obi
{
public static class ComputeMath
{
public static int ThreadGroupCount(int elements, int numThreads)
{
return elements / numThreads + 1;
}
public static int NextMultiple(int baseNumber, int number)
{
return ((baseNumber / number) + 1) * number;
}
}
}