File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,9 @@ template <bool IsCUFKernelDo> class DeviceContextChecker {
321
321
Check (std::get<parser::Block>(c.t ));
322
322
}
323
323
},
324
+ [&](const common::Indirection<parser::CompilerDirective> &x) {
325
+ // TODO(CUDA): Check for unsupported compiler directive here.
326
+ },
324
327
[&](const auto &x) {
325
328
if (auto source{parser::GetSource (x)}) {
326
329
context_.Say (*source,
Original file line number Diff line number Diff line change @@ -18,6 +18,17 @@ module m
18
18
!WARNING: I/O statement might not be supported on device
19
19
write(12,'(10F4.1)'), x
20
20
end
21
+ attributes(global) subroutine devsub3(n)
22
+ implicit none
23
+ integer :: n
24
+ integer :: i, ig, iGrid
25
+ iGrid = gridDim%x*blockDim%x
26
+ ig = (blockIdx%x-1)*blockDim%x + threadIdx%x
27
+
28
+ !dir$ nounroll
29
+ do i = ig, n, iGrid
30
+ end do
31
+ end subroutine
21
32
attributes(global) subroutine hostglobal(a)
22
33
integer :: a(*)
23
34
i = threadIdx%x
You can’t perform that action at this time.
0 commit comments