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

shmem_team_reduce fails with 32 PEs per node #50

Open
markbrown314 opened this issue Feb 13, 2025 · 0 comments
Open

shmem_team_reduce fails with 32 PEs per node #50

markbrown314 opened this issue Feb 13, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@markbrown314
Copy link
Collaborator

There is a limit of 32 PEs per node on shmem_team_reduce.

This is due PEs being hardcoded. We should make the allocation of PE dynamic

#define MAX_NPES 32
...
    static TYPE src[MAX_NPES]; 
    static TYPE dest[MAX_NPES];
...
    if (npes > MAX_NPES) {
        if (mype == 0)
            fprintf(stderr, "ERR - Requires less than %d PEs\n", MAX_NPES);
        shmem_global_exit(1);
    }

Originally posted on Sandia-OpenSHMEM Github:
Sandia-OpenSHMEM/SOS#1084

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant