【发布时间】:2017-05-05 03:16:16
【问题描述】:
如果我在子例程中创建一个变量以在设备上运行,默认情况下它是本地范围吗?因此只能由每个单独的线程访问?
例如,在以下情况下 y 是否是本地范围?
module exampleMod
contains
attributes(global) subroutine exampleSub(x)
implicit none
real :: x
real :: y
end subroutine exampleSub
end module exampleMod
是否需要另外指定为“设备”?
【问题讨论】: