Dear Nvidia users, I have some doubt about memory transfer from/to GPu using OMP Offload
Suppose I have matrix A on host and is passed to target region. If I understand well, TOFROM clause is implicit if I don’t specify anything, so A is transferred automatically on GPU. If another target region encounter same matrix, is not transferred again because already present on GPU. Now:
- When the matrix is copied FROM GPU? When is modified on GPU itself? Or each time target region ends?
- What happen if A is modified from hostside after target region is done? Is updated on GPU on next target region?
- What happen when GPU memory is full or has low free space? TOFROM still work? Old data are cleaned?
Because I have very huge code memory bound on GPU, and such code use implicit TOFROM everywhere. Maybe I can define better the memory usage.