Re: [OMPI users] Segmentation fault in MPI_Init when passing pointers allocated in main()

2013-11-12 Thread Tang, Yu-Hang
l argc/argv > >> couple, you have an additional value to argv which may be NULL. So try > >> allocating 3 additional values, the last being NULL, and it may work. > >> > >> Cheers, > >> > >> Matthieu > >> > >> 2013/11/12 Tang, Yu-

Re: [OMPI users] Segmentation fault in MPI_Init when passing pointers allocated in main()

2013-11-12 Thread Tang, Yu-Hang
+ ) delete [] argv[i]; > delete [] argv; > > Did you mean argc_new and argv_new instead? > Do you have the same error without CUDA? > > Cheers, > > Matthieu > > > 2013/11/12 Tang, Yu-Hang : > > Hi, > > > > I tried to augment the command line argu

[OMPI users] Segmentation fault in MPI_Init when passing pointers allocated in main()

2013-11-12 Thread Tang, Yu-Hang
Hi, I tried to augment the command line argument list by allocating my own list of strings and passing them to MPI_Init, yet I got a segmentation fault for both OpenMPI 1.6.3 and 1.7.2, while the code works fine with MPICH2. The code is: #include "mpi.h" #include "cuda_runtime.h" #include #inclu