| 1 |
! { dg-do compile { target x86_64-*-* } } |
| 2 |
! { dg-additional-options "-foffload=disable" } |
| 3 |
|
| 4 |
program main |
| 5 |
contains |
| 6 |
subroutine f01 () |
| 7 |
end subroutine |
| 8 |
subroutine f02 () |
| 9 |
!$omp declare variant (f01) & |
| 10 |
!$omp& match (device={kind (score(5) : host)}) |
| 11 |
! { dg-error ".score. cannot be specified in traits in the .device. trait-selector-set" "" { target *-*-*} .-1 } |
| 12 |
end subroutine |
| 13 |
subroutine f03 () |
| 14 |
end subroutine |
| 15 |
subroutine f04 () |
| 16 |
!$omp declare variant (f03) & |
| 17 |
!$omp& match (device={kind (host), arch (score(6) : x86_64), isa (avx512f)}) |
| 18 |
! { dg-error ".score. cannot be specified in traits in the .device. trait-selector-set" "" { target *-*-*} .-1 } |
| 19 |
end subroutine |
| 20 |
subroutine f05 () |
| 21 |
end subroutine |
| 22 |
subroutine f06 () |
| 23 |
!$omp declare variant (f05) & |
| 24 |
!$omp& match (device={kind (host), arch (score(6) : x86_64), & |
| 25 |
!$omp& isa (score(7): avx512f)}) |
| 26 |
! { dg-error ".score. cannot be specified in traits in the .device. trait-selector-set" "" { target *-*-*} .-2 } |
| 27 |
end subroutine |
| 28 |
|
| 29 |
end program |
| 30 |
|