[llvm] [Offload] Add framework for math conformance tests (PR #149242)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 24 09:29:01 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 {
----------------
jhuber6 wrote:
We don't need to test 2/3d kernel launches. Just keep it as an integer and use the offload library struct definition at launch.
https://github.com/llvm/llvm-project/pull/149242
More information about the llvm-commits
mailing list