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
115
115
(details->cudaDataAttr () &&
116
116
*details->cudaDataAttr () != common::CUDADataAttr::Device &&
117
117
*details->cudaDataAttr () != common::CUDADataAttr::Managed &&
118
+ *details->cudaDataAttr () != common::CUDADataAttr::Shared &&
118
119
*details->cudaDataAttr () != common::CUDADataAttr::Unified))) {
119
120
return &symbol;
120
121
}
Original file line number Diff line number Diff line change @@ -35,6 +35,13 @@ module m
35
35
i = threadIdx%x
36
36
a(i) = i
37
37
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
38
45
end
39
46
40
47
program main
You can’t perform that action at this time.
0 commit comments