File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ struct FindHostArray
115115 (details->cudaDataAttr () &&
116116 *details->cudaDataAttr () != common::CUDADataAttr::Device &&
117117 *details->cudaDataAttr () != common::CUDADataAttr::Managed &&
118+ *details->cudaDataAttr () != common::CUDADataAttr::Shared &&
118119 *details->cudaDataAttr () != common::CUDADataAttr::Unified))) {
119120 return &symbol;
120121 }
Original file line number Diff line number Diff line change @@ -35,6 +35,13 @@ module m
3535 i = threadIdx%x
3636 a(i) = i
3737 end subroutine
38+
39+ attributes(global) subroutine sharedarray(a)
40+ integer, device :: a(10)
41+ integer, shared :: s(10)
42+ i = threadIdx%x
43+ a(i) = s(10) ! ok, a is device and s is shared
44+ end subroutine
3845end
3946
4047program main
You can’t perform that action at this time.
0 commit comments