Software Archive
Read-only legacy content
17061 Discussions

OpenMP 4.0 Copying partial arrays to the device - weird behavior

Paulius_V_1
Beginner
442 Views

Hello all.  I am trying to reduce my offload costs by only copying the data that I need.

!original copy
!$omp target update from(my_array)

!this works
!$omp target update from(1:1000,1)
!$omp target update from(1:1000,2)
!$omp target update from(1:1000,3)



!this doesn't
!$omp target update from(my_array(var1:var2, 1))
!$omp target update from(my_array(var1:var2, 2))
!$omp target update from(my_array(var1:var2, 3))
!starts coping gigabytes(????) of data or just seg faults

 

Any idea?

0 Kudos
1 Reply
Rajiv_D_Intel
Employee
442 Views

This could be an error in the source code or a compiler defect.

It is hard to say unless you post a complete executable example.

0 Kudos
Reply