Re: [OMPI users] Segmentation fault on master task

2012-05-03 Thread Eduardo Morras
At 12:51 03/05/2012, you wrote: Thanks for the reply. When I modify the code it still fails with segmentation error. You run it on different servers or runs in the same server? If you are testing on one server, perhaps your gpu is out of memory. Check your cudaMalloc calls, perhaps memory is

Re: [OMPI users] Segmentation fault on master task

2012-05-03 Thread Rohan Deshpande
Thanks for the reply. When I modify the code it still fails with segmentation error. my latest code looks like #include "mpi.h" #include #include #include #include #include #include #define MASTER0 #define ARRAYSIZE 4000 int *master

Re: [OMPI users] Segmentation fault on master task

2012-05-02 Thread Eduardo Morras
At 08:51 02/05/2012, you wrote: Hi, I am trying to execute following code on cluster. run_kernel is a cuda call with signature int run_kernel(int array[],int nelements, int taskid, char hostname[]); ... deleted code mysum = run_kernel(&onearray[2000], chunksize, taskid, myname); ...

[OMPI users] Segmentation fault on master task

2012-05-02 Thread Rohan Deshpande
Hi, I am trying to execute following code on cluster. run_kernel is a cuda call with signature int run_kernel(int array[],int nelements, int taskid, char hostname[]); My MPI code is #include "mpi.h" #include #include #include #define MASTER0 int *masterarray; int *onearray; int