Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

US15 Simple procedures #161

Open
zjibben opened this issue Feb 28, 2020 · 1 comment
Open

US15 Simple procedures #161

zjibben opened this issue Feb 28, 2020 · 1 comment
Labels
Fortran 2023 Proposal targeting the next Fortran standard F2023 (previously called F202X) in progress J3 is moving forward

Comments

@zjibben
Copy link
Member

zjibben commented Feb 28, 2020

A procedure that does not reference outside variables is easier to offload to a device, or other off-chip processor.

PURE procedures operate without writing to global variables beyond their arguments, SIMPLE procedures would be further restricted from referencing global variables beyond their arguments.

@klausler
Copy link

klausler commented Mar 2, 2020

Another subtle benefit from using SIMPLE procedures is that SIMPLE procedure pointers don't need to waste space for a "static link" to potential host-associated objects; mere code address(es) suffice.

@zjibben zjibben changed the title Simple procedures US15 Simple procedures Mar 2, 2020
@zjibben zjibben added Fortran 2023 Proposal targeting the next Fortran standard F2023 (previously called F202X) in progress J3 is moving forward labels Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fortran 2023 Proposal targeting the next Fortran standard F2023 (previously called F202X) in progress J3 is moving forward
Projects
None yet
Development

No branches or pull requests

2 participants