Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Accept pointer or array for deviceState #222

Open
wants to merge 1 commit into
base: aomp11
Choose a base branch
from

Conversation

JonChesterfield
Copy link
Contributor

nvptx and trunk amdgcn use a global array for deviceState. aomp and rocm use a void *, allocated and initialized by the runtime.

This change restructures the setup of that deviceState by assuming that a symbol greater in size than a void * is already an appropriate global array.

Checked against a deviceRTL that uses the global array - still works, still slower than the alloc+zero strategy.

@JonChesterfield
Copy link
Contributor Author

Gerrit 451651

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant