File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -901,7 +901,6 @@ template <typename Ty> class StaticLoopChunker {
901
901
Ty ThreadChunk = 0 ;
902
902
Ty NumThreads = 1 ;
903
903
Ty TId = 0 ;
904
- ASSERT (TId == mapping::getThreadIdInBlock (), " Bad thread id" );
905
904
906
905
// All teams need to participate.
907
906
Ty NumBlocks = mapping::getNumberOfBlocksInKernel ();
Original file line number Diff line number Diff line change
1
+ ! REQUIRES: flang, amdgpu
2
+
3
+ ! RUN: %libomptarget-compile-fortran-generic
4
+ ! RUN: %libomptarget-run-generic 2>&1 | %fcheck-generic
5
+ program main
6
+ integer :: array(10 ) = 0
7
+ integer :: x, y, z
8
+ ! $omp target
9
+ ! $omp teams distribute private(x, y)
10
+ OuterLoopOne: do x= 1 ,1
11
+ array(2 ) = 42
12
+ OuterLoopTwo: do y= 1 ,1
13
+ ! $omp parallel do private(z)
14
+ InnerLoopOne: do z= 1 ,10
15
+ array(z) = 20
16
+ enddo InnerLoopOne
17
+ ! $omp end parallel do
18
+ enddo OuterLoopTwo
19
+ enddo OuterLoopOne
20
+ ! $omp end teams distribute
21
+ ! $omp end target
22
+ ! Expected to print all 20's
23
+ print * , array
24
+ end program main
25
+
26
+ ! CHECK: 20 20 20 20 20 20 20 20 20 20
You can’t perform that action at this time.
0 commit comments