[Mlir-commits] [mlir] [Func][GPU] Create func::ConstantOp using parents with SymbolTable trait (PR #107748)

Guray Ozen llvmlistbot at llvm.org
Sun Sep 8 03:20:16 PDT 2024


================
@@ -0,0 +1,34 @@
+// RUN: mlir-opt %s \
+// RUN: | mlir-opt -gpu-lower-to-nvvm-pipeline="cubin-format=%gpu_compilation_format" \
+// RUN: | mlir-cpu-runner \
+// RUN:   --shared-libs=%mlir_cuda_runtime \
+// RUN:   --shared-libs=%mlir_runner_utils \
+// RUN:   --entry-point-result=void \
+// RUN: | FileCheck %s
+
+// CHECK: Hello from 0, 1, 3.000000
+module attributes {gpu.container_module} {
----------------
grypp wrote:

Thanks for your work. 
I see that you added an integration test. However, we prefer using lit testing for several reasons: 1) it allows us to see the transformations happening in your code, and 2) we don't need to run the code, making it faster.

https://github.com/llvm/llvm-project/pull/107748


More information about the Mlir-commits mailing list