File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -928,7 +928,9 @@ void CheckHelper::CheckObjectEntity(
928
928
details.cudaDataAttr ().value_or (common::CUDADataAttr::Device) !=
929
929
common::CUDADataAttr::Device &&
930
930
details.cudaDataAttr ().value_or (common::CUDADataAttr::Device) !=
931
- common::CUDADataAttr::Managed) {
931
+ common::CUDADataAttr::Managed &&
932
+ details.cudaDataAttr ().value_or (common::CUDADataAttr::Device) !=
933
+ common::CUDADataAttr::Shared) {
932
934
Warn (common::UsageWarning::CUDAUsage,
933
935
" Dummy argument '%s' may not have ATTRIBUTES(%s) in a device subprogram" _warn_en_US,
934
936
symbol.name (),
Original file line number Diff line number Diff line change @@ -55,13 +55,14 @@ module m
55
55
real, unified :: um
56
56
57
57
contains
58
- attributes(device) subroutine devsubr(n,da)
58
+ attributes(device) subroutine devsubr(n,da,rs )
59
59
integer, intent(in) :: n
60
60
real, device :: da(*) ! ok
61
61
real, managed :: ma(n) ! ok
62
62
!WARNING: Pointer 'dp' may not be associated in a device subprogram
63
63
real, device, pointer :: dp
64
64
real, constant :: rc ! ok
65
+ real, shared :: rs ! ok
65
66
!ERROR: Object 'u' with ATTRIBUTES(UNIFIED) must be declared in a host subprogram
66
67
real, unified :: u
67
68
end subroutine
You can’t perform that action at this time.
0 commit comments