CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
90 lines
2.2 KiB
MLIR
90 lines
2.2 KiB
MLIR
// RUN: mlir-opt %s -split-input-file -convert-gpu-to-rocdl='use-bare-ptr-memref-call-conv=0' | FileCheck %s --check-prefixes=CHECK,ROCDL
|
|
// RUN: mlir-opt %s -split-input-file -convert-gpu-to-nvvm='use-bare-ptr-memref-call-conv=0' | FileCheck %s --check-prefixes=CHECK,NVVM
|
|
|
|
gpu.module @kernel {
|
|
gpu.func @test_func_readonly(%arg0 : memref<f32> {llvm.readonly} ) {
|
|
gpu.return
|
|
}
|
|
}
|
|
|
|
// CHECK-LABEL: llvm.func @test_func_readonly
|
|
// ROCDL-SAME: !llvm.ptr {llvm.readonly}
|
|
// NVVM-SAME: !llvm.ptr {llvm.readonly}
|
|
|
|
|
|
// -----
|
|
|
|
gpu.module @kernel {
|
|
gpu.func @test_func_writeonly(%arg0 : memref<f32> {llvm.writeonly} ) {
|
|
gpu.return
|
|
}
|
|
}
|
|
|
|
// CHECK-LABEL: llvm.func @test_func_writeonly
|
|
// ROCDL-SAME: !llvm.ptr {llvm.writeonly}
|
|
// NVVM-SAME: !llvm.ptr {llvm.writeonly}
|
|
|
|
// -----
|
|
|
|
gpu.module @kernel {
|
|
gpu.func @test_func_readonly_ptr(%arg0 : !llvm.ptr {llvm.readonly} ) {
|
|
gpu.return
|
|
}
|
|
}
|
|
|
|
// CHECK-LABEL: llvm.func @test_func_readonly_ptr
|
|
// ROCDL-SAME: !llvm.ptr {llvm.readonly}
|
|
// NVVM-SAME: !llvm.ptr {llvm.readonly}
|
|
|
|
// -----
|
|
|
|
gpu.module @kernel {
|
|
gpu.func @test_func_nonnull(%arg0 : memref<f32> {llvm.nonnull} ) {
|
|
gpu.return
|
|
}
|
|
}
|
|
|
|
// CHECK-LABEL: llvm.func @test_func_nonnull
|
|
// ROCDL-SAME: !llvm.ptr {llvm.nonnull}
|
|
// NVVM-SAME: !llvm.ptr {llvm.nonnull}
|
|
|
|
|
|
// -----
|
|
|
|
gpu.module @kernel {
|
|
gpu.func @test_func_dereferenceable(%arg0 : memref<f32> {llvm.dereferenceable = 4 : i64} ) {
|
|
gpu.return
|
|
}
|
|
}
|
|
|
|
// CHECK-LABEL: llvm.func @test_func_dereferenceable
|
|
// ROCDL-SAME: !llvm.ptr {llvm.dereferenceable = 4 : i64}
|
|
// NVVM-SAME: !llvm.ptr {llvm.dereferenceable = 4 : i64}
|
|
|
|
|
|
// -----
|
|
|
|
gpu.module @kernel {
|
|
gpu.func @test_func_dereferenceable_or_null(%arg0 : memref<f32> {llvm.dereferenceable_or_null = 4 : i64} ) {
|
|
gpu.return
|
|
}
|
|
}
|
|
|
|
// CHECK-LABEL: llvm.func @test_func_dereferenceable_or_null
|
|
// ROCDL-SAME: !llvm.ptr {llvm.dereferenceable_or_null = 4 : i64}
|
|
// NVVM-SAME: !llvm.ptr {llvm.dereferenceable_or_null = 4 : i64}
|
|
|
|
// -----
|
|
|
|
gpu.module @kernel {
|
|
gpu.func @test_func_noundef(%arg0 : memref<f32> {llvm.noundef} ) {
|
|
gpu.return
|
|
}
|
|
}
|
|
|
|
// CHECK-LABEL: llvm.func @test_func_noundef
|
|
// ROCDL-SAME: !llvm.ptr {llvm.noundef}
|
|
// ROCDL-SAME: i64 {llvm.noundef}
|
|
// NVVM-SAME: !llvm.ptr {llvm.noundef}
|
|
// NVVM-SAME: i64 {llvm.noundef}
|