@@ -509,7 +509,7 @@ func.func @launch_cluster() {
509
509
// CHECK-NEXT: = memref.load %[[KERNEL_ARG1]][%[[TID]]] : memref<?xf32, 1>
510
510
511
511
// -----
512
- // This test tests the two optional attributes kernelModule and kernelFunc for gpu.launch
512
+ // This test tests the two optional attributes `module` and `function` for gpu.launch
513
513
// CHECK-LABEL: func.func @testKernelAttributes()
514
514
// CHECK: gpu.launch_func @test_module::@test_kernel_func blocks in (%[[GRID_X:.*]], %[[GRID_Y:.*]], %[[GRID_Z:.*]]) threads in (%[[BLOCK_X:.*]], %[[BLOCK_Y:.*]], %[[BLOCK_Z:.*]])
515
515
// CHECK: gpu.module @test_module
@@ -526,12 +526,12 @@ func.func @testKernelAttributes() {
526
526
threads (%tx , %ty , %tz ) in (%block_x = %bDimX , %block_y = %bDimY , %block_z = %bDimZ ) {
527
527
" some_op" (%bx , %tx ) : (index , index ) -> ()
528
528
gpu.terminator
529
- } {kernelModule = @test_module , kernelFunc = @test_kernel_func }
529
+ } {module = @test_module , function = @test_kernel_func }
530
530
return
531
531
}
532
532
533
533
// -----
534
- // This test tests the two optional attributes kernelModule and kernelFunc for gpu.launch, when kernelModule already exists.
534
+ // This test tests the two optional attributes `module` and `function` for gpu.launch, when kernelModule already exists.
535
535
536
536
// CHECK-LABEL: gpu.module @existing_module
537
537
// CHECK: gpu.func @test_kernel_func()
@@ -559,12 +559,12 @@ func.func @testExistingModule() {
559
559
threads (%tx , %ty , %tz ) in (%block_x = %bDimX , %block_y = %bDimY , %block_z = %bDimZ ) {
560
560
" some_op" (%bx , %tx ) : (index , index ) -> ()
561
561
gpu.terminator
562
- } {kernelModule = @existing_module , kernelFunc = @test_kernel_func }
562
+ } {module = @existing_module , function = @test_kernel_func }
563
563
return
564
564
}
565
565
566
566
// -----
567
- // This test tests the optional attribute kernelModule for gpu.launch.
567
+ // This test tests the optional attribute `module` for gpu.launch.
568
568
// CHECK-LABEL: func.func @testKernelModuleOnly()
569
569
// CHECK: gpu.launch_func @test_module::@testKernelModuleOnly_kernel blocks in (%[[GRID_X:.*]], %[[GRID_Y:.*]], %[[GRID_Z:.*]]) threads in (%[[BLOCK_X:.*]], %[[BLOCK_Y:.*]], %[[BLOCK_Z:.*]])
570
570
// CHECK: gpu.module @test_module
@@ -581,12 +581,12 @@ func.func @testKernelModuleOnly() {
581
581
threads (%tx , %ty , %tz ) in (%block_x = %bDimX , %block_y = %bDimY , %block_z = %bDimZ ) {
582
582
" some_op" (%bx , %tx ) : (index , index ) -> ()
583
583
gpu.terminator
584
- } {kernelModule = @test_module }
584
+ } {module = @test_module }
585
585
return
586
586
}
587
587
588
588
// -----
589
- // This test tests the optional attribute kernelFunc for gpu.launch.
589
+ // This test tests the optional attribute `function` for gpu.launch.
590
590
// CHECK-LABEL: func.func @testKernelFuncOnly()
591
591
// CHECK: gpu.launch_func @test_kernel_func::@test_kernel_func blocks in (%[[GRID_X:.*]], %[[GRID_Y:.*]], %[[GRID_Z:.*]]) threads in (%[[BLOCK_X:.*]], %[[BLOCK_Y:.*]], %[[BLOCK_Z:.*]])
592
592
@@ -604,12 +604,12 @@ func.func @testKernelFuncOnly() {
604
604
threads (%tx , %ty , %tz ) in (%block_x = %bDimX , %block_y = %bDimY , %block_z = %bDimZ ) {
605
605
" some_op" (%bx , %tx ) : (index , index ) -> ()
606
606
gpu.terminator
607
- } {kernelFunc = @test_kernel_func }
607
+ } {function = @test_kernel_func }
608
608
return
609
609
}
610
610
611
611
// -----
612
- // This test tests gpu.launch when optional attributes kernelModule and kernelFunc are not specified.
612
+ // This test tests gpu.launch when optional attributes `module` and `function` are not specified.
613
613
// CHECK-LABEL: func.func @testNoAttributes()
614
614
// CHECK: gpu.launch_func @testNoAttributes_kernel::@testNoAttributes_kernel blocks in (%[[GRID_X:.*]], %[[GRID_Y:.*]], %[[GRID_Z:.*]]) threads in (%[[BLOCK_X:.*]], %[[BLOCK_Y:.*]], %[[BLOCK_Z:.*]])
615
615
0 commit comments