[llvm] [Offload] Add framework for math conformance tests (PR #149242)
Leandro Lacerda via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 29 08:58:44 PDT 2025
================
@@ -0,0 +1,61 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// This file contains the definition of the Dim class, which is used to
+/// represent 1D, 2D, or 3D dimensions.
+///
+/// This class is used by DeviceContext to specify the number of thread groups
+/// (NumGroups) and the size of each group (GroupSize) for a kernel launch.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef MATHTEST_DIM_HPP
+#define MATHTEST_DIM_HPP
+
+#include <cassert>
+#include <cstddef>
+#include <cstdint>
+#include <initializer_list>
+
+namespace mathtest {
+
+class Dim {
----------------
leandrolcampos wrote:
Done, thanks!
https://github.com/llvm/llvm-project/pull/149242
More information about the llvm-commits
mailing list