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_ctx_putmem() spits assertion fail error #128

Open
ShunyuYao515 opened this issue Jul 7, 2021 · 0 comments
Open

shmem_ctx_putmem() spits assertion fail error #128

ShunyuYao515 opened this issue Jul 7, 2021 · 0 comments

Comments

@ShunyuYao515
Copy link

ShunyuYao515 commented Jul 7, 2021

I am doing a simple code test on oshmpi using shmem_ctx_putmem(), it keeps giving me this error:

OSHMPI assert fail in [./src/internal/rma_impl.h:140]: "sobj_attr && ictx"
Abort(-1)` on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, -1) - process 0

And the code I am using:

    int main(void){
            int total_pe;
            struct utsname node;
            int this_pe;
            int ctx_crt_ret;
            shmem_ctx_t ctx;
            int *source, *dest;
            shmem_init();
            total_pe = shmem_n_pes();
            this_pe = shmem_my_pe();
            ctx_crt_ret = shmem_ctx_create(SHMEM_CTX_PRIVATE, &ctx);
            uname(&node);
            shmem_barrier_all();

            source = shmem_malloc(sizeof(int)*256*1024);
            dest = shmem_malloc(sizeof(int)*256*1024);
            if(this_pe==0){
                    for(int i=0; i<256*1024; i++){
                            source[i]=i+1;
                    }
            }

            if (this_pe==0){
                    shmem_ctx_putmem(ctx, dest, source, 4, 1);
            }
            shmem_free(source);
            shmem_free(dest);

            shmem_barrier_all();

        shmem_ctx_destroy(ctx);
        shmem_finalize();

        return 0;

    }

It is replicable on multiple environment.

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

No branches or pull requests

1 participant