Skip to content

Commit a7a1ae0

Browse files
committed
Update tests to use custom allocator
1 parent ee91fa0 commit a7a1ae0

15 files changed

+32
-34
lines changed

mlir-tensorrt/test/Target/Lua/IntegrationTests/ClusteringDynamicShape/end-to-end-binary.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: stablehlo-clustering-pipeline, \
44
// RUN: post-clustering-pipeline, \
55
// RUN: executor-lowering-pipeline)" \
6-
// RUN: | mlir-tensorrt-translate -mlir-to-runtime-executable -allow-unregistered-dialect | mlir-tensorrt-runner -input-type=rtexe
6+
// RUN: | mlir-tensorrt-translate -mlir-to-runtime-executable -allow-unregistered-dialect | mlir-tensorrt-runner -input-type=rtexe --use-custom-allocator
77

88
#profile = #tensorrt.shape_profile<min = [2], opt = [4], max = [6]>
99
#profile1 = #tensorrt.shape_profile<min = [1], opt = [3], max = [5]>

mlir-tensorrt/test/Target/Lua/IntegrationTests/ClusteringDynamicShape/end-to-end-unary.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: stablehlo-clustering-pipeline, \
44
// RUN: post-clustering-pipeline, \
55
// RUN: executor-lowering-pipeline)" \
6-
// RUN: | mlir-tensorrt-translate -mlir-to-runtime-executable -allow-unregistered-dialect | mlir-tensorrt-runner -input-type=rtexe
6+
// RUN: | mlir-tensorrt-translate -mlir-to-runtime-executable -allow-unregistered-dialect | mlir-tensorrt-runner -input-type=rtexe --use-custom-allocator
77

88
#profile0 = #tensorrt.shape_profile<min = [1], opt = [5], max = [10]>
99
#profile1 = #tensorrt.shape_profile<min = [2], opt = [5], max = [6]>

mlir-tensorrt/test/Target/Lua/IntegrationTests/buffer-ops-bf16.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: host-has-at-least-1-gpus
22
// RUN: mlir-tensorrt-opt %s -convert-memref-to-cuda -convert-plan-to-executor -convert-cuda-to-executor -executor-lowering-pipeline \
33
// RUN: | mlir-tensorrt-translate -mlir-to-runtime-executable \
4-
// RUN: | mlir-tensorrt-runner -input-type=rtexe | FileCheck %s
4+
// RUN: | mlir-tensorrt-runner -input-type=rtexe --use-custom-allocator | FileCheck %s
55

66
!descriptor1D = !executor.table<!executor.ptr<device>, !executor.ptr<device>, index, index, index>
77
!hostMemRef = memref<4xbf16, #plan.memory_space<host_pinned>>

mlir-tensorrt/test/Target/Lua/IntegrationTests/buffer-ops-dynamic.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: host-has-at-least-1-gpus
22
// RUN: mlir-tensorrt-opt %s -convert-memref-to-cuda -convert-cuda-to-executor -executor-lowering-pipeline \
33
// RUN: | mlir-tensorrt-translate -mlir-to-runtime-executable \
4-
// RUN: | mlir-tensorrt-runner -input-type=rtexe | FileCheck %s
4+
// RUN: | mlir-tensorrt-runner -input-type=rtexe --use-custom-allocator | FileCheck %s
55

66
func.func @run_with_shape_2d(%arg0: memref<?xindex>, %arg1: memref<2xindex>) {
77
%c0 = arith.constant 0 : index

mlir-tensorrt/test/Target/Lua/IntegrationTests/buffer-ops-f16.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: host-has-at-least-1-gpus
22
// RUN: mlir-tensorrt-opt %s -convert-memref-to-cuda -convert-plan-to-executor -convert-cuda-to-executor -executor-lowering-pipeline \
33
// RUN: | mlir-tensorrt-translate -mlir-to-runtime-executable \
4-
// RUN: | mlir-tensorrt-runner -input-type=rtexe | FileCheck %s
4+
// RUN: | mlir-tensorrt-runner -input-type=rtexe --use-custom-allocator | FileCheck %s
55

66
!descriptor1D = !executor.table<!executor.ptr<device>, !executor.ptr<device>, index, index, index>
77
!hostMemRef = memref<4xf16, #plan.memory_space<host_pinned>>

mlir-tensorrt/test/Target/Lua/IntegrationTests/buffer-ops-f32.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: host-has-at-least-1-gpus
22
// RUN: mlir-tensorrt-opt %s -convert-memref-to-cuda -convert-plan-to-executor -convert-cuda-to-executor -executor-lowering-pipeline \
33
// RUN: | mlir-tensorrt-translate -mlir-to-runtime-executable \
4-
// RUN: | mlir-tensorrt-runner -input-type=rtexe | FileCheck %s
4+
// RUN: | mlir-tensorrt-runner -input-type=rtexe --use-custom-allocator | FileCheck %s
55

66
!descriptor1D = !executor.table<!executor.ptr<device>, !executor.ptr<device>, index, index, index>
77
!hostMemRef = memref<4xf32, #plan.memory_space<host>>

mlir-tensorrt/test/Target/Lua/IntegrationTests/buffer-ops-f8E4M3FN.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: mlir-tensorrt-opt %s -convert-memref-to-cuda -convert-plan-to-executor -convert-cuda-to-executor -executor-lowering-pipeline \
22
// RUN: | mlir-tensorrt-translate -mlir-to-runtime-executable \
3-
// RUN: | mlir-tensorrt-runner -input-type=rtexe | FileCheck %s
3+
// RUN: | mlir-tensorrt-runner -input-type=rtexe --use-custom-allocator | FileCheck %s
44

55
!descriptor1D = !executor.table<!executor.ptr<device>, !executor.ptr<device>, index, index, index>
66
!hostMemRef = memref<4xf8E4M3FN, #plan.memory_space<host_pinned>>

mlir-tensorrt/test/Target/Lua/IntegrationTests/buffer-ops-i1.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: host-has-at-least-1-gpus
22
// RUN: mlir-tensorrt-opt %s -convert-memref-to-cuda -convert-plan-to-executor -convert-cuda-to-executor -executor-lowering-pipeline \
33
// RUN: | mlir-tensorrt-translate -mlir-to-runtime-executable \
4-
// RUN: | mlir-tensorrt-runner -input-type=rtexe | FileCheck %s
4+
// RUN: | mlir-tensorrt-runner -input-type=rtexe --use-custom-allocator | FileCheck %s
55

66
!descriptor1D = !executor.table<!executor.ptr<device>, !executor.ptr<device>, index, index, index>
77
!hostMemRef = memref<4xi1, #plan.memory_space<host>>

mlir-tensorrt/test/Target/Lua/IntegrationTests/buffer-ops-i4.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: host-has-at-least-1-gpus
22
// RUN: mlir-tensorrt-opt %s -convert-memref-to-cuda -convert-plan-to-executor -convert-cuda-to-executor -executor-lowering-pipeline \
33
// RUN: | mlir-tensorrt-translate -mlir-to-runtime-executable \
4-
// RUN: | mlir-tensorrt-runner -input-type=rtexe | FileCheck %s
4+
// RUN: | mlir-tensorrt-runner -input-type=rtexe --use-custom-allocator | FileCheck %s
55

66
!descriptor1D = !executor.table<!executor.ptr<device>, !executor.ptr<device>, index, index, index>
77
!hostMemRef = memref<4xi4, #plan.memory_space<host_pinned>>

mlir-tensorrt/test/Target/Lua/IntegrationTests/memcpy-strided.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: host-has-at-least-1-gpus
22
// RUN: mlir-tensorrt-opt %s -convert-memref-to-cuda -convert-plan-to-executor -convert-cuda-to-executor -executor-lowering-pipeline \
33
// RUN: | mlir-tensorrt-translate -mlir-to-runtime-executable \
4-
// RUN: | mlir-tensorrt-runner -input-type=rtexe | FileCheck %s
4+
// RUN: | mlir-tensorrt-runner -input-type=rtexe --use-custom-allocator | FileCheck %s
55

66
func.func @main() -> index {
77
%c0 = arith.constant 0 : index

0 commit comments

Comments
 (0)