I see. It compiled and linked on the frontend quickly. although with a warning
/global/homes/a/apbhalla/softwares/PETSc-BitBucket/PETSc/linux-opt/lib/libpetsc.a(send.o): In function `PetscOpenSocket': send.c:(.text+0x346): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/bin/rm -f ex3.o Not sure how to get rid of this. However, the executable is stuck in the interactive session. I wonder if something is up with the interactive session itself. I am using the command salloc -N 1 -q debug -L SCRATCH to create one, and running the example is apbhalla@nid00108: ~/softwares/PETSc-BitBucket/PETSc/src/snes/examples/tutorials$ srun -n 3 ./ex3 On Mon, Jan 29, 2018 at 9:01 PM, Satish Balay <[email protected]> wrote: > You should be able to compile/link on the frontend - and then run on the > interactive node. > > Satish > > On Tue, 30 Jan 2018, Amneet Bhalla wrote: > > > It's way too long. The interactive session expired :-(. I think the > default > > time is ~30 minutes. > > I will let it link in a new session and see if that works. > > > > On Mon, Jan 29, 2018 at 8:55 PM, Satish Balay <[email protected]> wrote: > > > > > On Tue, 30 Jan 2018, Amneet Bhalla wrote: > > > > > > > The configure and build worked. When I do make test, it asks to run > > > > snes examples manually as nersc does not > > > > provide mpiexec command. I tried an interactive session and tried > > > building > > > > snes/examples/tutorials/ex3 > > > > > > > > % make VERBOSE=1 ex3 > > > > > > > > I am getting stuck at > > > > > > Perhaps its taking a long time to link - and you need to wait for it > [to > > > complete]? > > > > > > Satish > > > > > > > > apbhalla@nid03377: > > > > ~/softwares/PETSc-BitBucket/PETSc/src/snes/examples/tutorials$ make > > > > VERBOSE=1 ex3 > > > > > > > > cc -O3 -o ex3 ex3.o > > > > -L/global/homes/a/apbhalla/softwares/PETSc-BitBucket/ > PETSc/linux-opt/lib > > > > -Wl,-rpath,/global/homes/a/apbhalla/softwares/PETSc- > > > BitBucket/PETSc/linux-opt/lib > > > > -lpetsc -lHYPRE -ldl -lstdc++ > > > > > > > > I am not sure what's going on as there is no return after that. > > > > > > > > On Mon, Jan 29, 2018 at 8:27 PM, Satish Balay <[email protected]> > wrote: > > > > > > > > > On Tue, 30 Jan 2018, Smith, Barry F. wrote: > > > > > > > > > > > Master now should not require this horrible flags. Could you > do a > > > > > > test build with master on edison without these flags and see what > > > > > > happens? > > > > > > > > > > It does not work. Will move this thread (with logs) to petsc-maint. > > > > > > > > > > Satish > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- --Amneet
