Skip to content

OpenACC GPU porting #149

Description

@sangallidavide

I open a second issue for discussion on OpenACC GPU porting.
Another one is here: #79

Sometimes the code calls a "memory free" before doing allocations
This is done via the macro YAMBO_FREE, where the deallocate/devxlib_unmap calls are protected by if allocated.

Example here in https://github.com/yambo-code/yambo/blob/tech-gpu/src/pol_function/X_irredux.F#L250
This call specifically leads to the following line:
https://github.com/yambo-code/yambo/blob/tech-gpu/src/Ymodules/mod_collision_el.F#L102
!DEV_ACC exit data delete(ggw)

With gfortran and Openacc this leads to an error.
From what I understand, there is no data to be deleted if ggw was not allocated. Although here the logic is not super clear to me.

What is the opposite of !DEV_ACC exit data delete(ggw)? Is it !DEV_ACC enter data create(ggw) ?
Why is this not handled via devxlib? Probably because gww is a type ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions