Skip to content

Commit

Permalink
Bump LLVM (#941)
Browse files Browse the repository at this point in the history
Updates memref.subviews after upstream fix.
  • Loading branch information
adam-smnk authored Jul 2, 2024
1 parent 6fa15b3 commit 385bbc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build_tools/llvm_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ca7dc895cea44c80263c969302fa2f202751aa9c
1846523bb77275de954ac573110171bd39bfa930
6 changes: 3 additions & 3 deletions test/GPU/gpu-data-transfer.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -358,15 +358,15 @@ module attributes {gpu.container_module} {

%0 = memref.alloc() : memref<32x32xf32>
%cast = memref.cast %0 : memref<32x32xf32> to memref<?x?xf32>
%subview = memref.subview %cast[0, 0] [8, 8] [1, 1] : memref<?x?xf32> to memref<8x8xf32, strided<[?, 1], offset: ?>>
%subview = memref.subview %cast[0, 0] [8, 8] [1, 1] : memref<?x?xf32> to memref<8x8xf32, strided<[?, 1]>>
gpu.launch_func @entry_kernel::@entry_kernel blocks in (%c1, %c1, %c1) threads in (%c1, %c1, %c1)
args(%subview : memref<8x8xf32, strided<[?, 1], offset: ?>>)
args(%subview : memref<8x8xf32, strided<[?, 1]>>)
memref.dealloc %0 : memref<32x32xf32>

return
}
gpu.module @entry_kernel {
gpu.func @entry_kernel(%arg0: memref<8x8xf32, strided<[?, 1], offset: ?>>) kernel attributes {known_block_size = array<i32: 1, 1, 1>, known_grid_size = array<i32: 1, 1, 1>} {
gpu.func @entry_kernel(%arg0: memref<8x8xf32, strided<[?, 1]>>) kernel attributes {known_block_size = array<i32: 1, 1, 1>, known_grid_size = array<i32: 1, 1, 1>} {
gpu.return
}
}
Expand Down

0 comments on commit 385bbc4

Please sign in to comment.