if i do as follows in fortran
...
integer,allocatable::a(:)
...
allocate(a(n))
...
!dir$ offload target(mic) inout(a)
!$omp parallel do...
inside the do loop a is being passed to subroutines and assigned values. is it ok to put a inside inout as above? or is there anything still needed? Thanks!