1
如果我在子例程中創建一個變量以在設備上運行,默認情況下它是本地範圍嗎?因此只能由每個單獨的線程訪問?Cuda Fortran設備變量初始化範圍
例如,在下列情況下y是否是本地範圍?
module exampleMod
contains
attributes(global) subroutine exampleSub(x)
implicit none
real :: x
real :: y
end subroutine exampleSub
end module exampleMod
我需要另外指定它爲「設備」嗎?
您知道有哪些常見原因或錯誤導致cuda fortran中的變量突然切換爲設備上的值爲零? –
不會。如果您發現了錯誤,請進行演示並向PGI報告 – talonmies