an error when running NWChem6.3


Clicked A Few Times
hi?NWChem developer:

   I installed NWChem6.3 on my computer, which equipped with two 6-way CPUs(Intel E5-2620)?64G memory and Tesla K20 GPU. 
I was succeed in compiled but when I run it, an error occured.

1. The environment:
1) CUDA6.0 2)mpich3.0.4

2. My configurations in .bashrc:


export USE_MPI=y
export USE_MPIF=y

export MPI_LOC=/opt/mpich
export MPI_LIB=$MPI_LOC/lib
export MPI_INCLUDE=$MPI_LOC/include
export LIBMPI="-lmpich -lopa -lmpl -lrt -lpthread"

export NWCHEM_TOP=/home/tester/nwchem-6.3.revision2-src.2013-10-17
export NWCHEM_TARGET=LINUX64
export ARMCI_NETWORK=MPI2
export NWCHEM_MODULES=all
export LARGE_FILES=TRUE
export USE_NOFSCHECK=TRUE

export TCE_CUDA=Y
export CUDA_LIBS="-L/usr/local/cuda/lib64 -lcudart -lcublas"
export CUDA_FLAGS="-arch sm_35"
export CUDA_INCLUDE="-I. -I/usr/local/cuda/include"
export CUDA=nvcc




3. The compiling step:

cd ~/nwchem-6.3.revision2-src.2013-10-17/src
make nwchem_config
make

4. The run step

cd ~/nwchem-6.3.revision2-src.2013-10-17/examples/qmd
mpirun -np 2 ../../bin/LINUX64/nwchem h2o_scf.nw

5. The error:
...........
Sum of atomic energies: -74.71095592
geom_cart_set: too few centers 0 geometry
Failed to initialize geom 0


There is an error related to the specified geometry



............

1:1:Failed to initialize geom:: -1
(rank:1 hostname:tester-5 pid:2857):ARMCI DASSERT fail.
../../ga-5-2/armci/src/common/armci.c:ARMCI_Error():208 cond:0
Last System Error Message from Task 1:: Illegal seek
application called MPI_Abort(comm=0x8400004, -1) - process 1

Forum Vet
Liuwei
NWChem 6.5 has been out for a while. You might want to use it instead of 6.3

http://nwchemgit.github.io/index.php/Download#Source_Code
http://nwchemgit.github.io/index.php/Compiling_NWChem

By the way ARMCI_NETWORK=MPI2 is not an option that the NWCHem makefile structure will recognize.
Please let ARMCI_NETWORK undefined or set ARMCI_NETWORK=MPI-TS (default value)

Clicked A Few Times
Thanks a lot for your reply.

I compiled NWChem 6.5, set NWCHEM_TOP to my install directory,first I let ARMCI_NETWORK undefined and then set ARMCI_NETWORK=MPI-TS, but errors occured while compiling.

the information is :

gfortran -c -m64 -ffast-math -Wuninitialized -fdefault-interger-8 -O2 -ffast-math -Wuninitialized -O3 -mfpmath=sse -ffast-math -fpreftch-loop-arrays -march=nocona -mtune=nocona -I. -I/opt/mpich/include -I/home/test/Nwchem-6.5.revision26243-src.2014-09-10/src/include -I/home/tester/Nwchem-6.5.revision26243-src.2014-09-10/src/tools/install/include -DGFORTRAN -DCHKUNDFLW -DGCC4 -DEXT_INT -DLINUX -DLINUX64 -DPARALLEL_DIAG -DMPI Parallel-mpi.F

Parallel-mpi.F:1917.49:
   >   pto,msgtype,comm_world,mpierr

?????‘mpierr’??????
?error: symbol 'mpierr' has no implicit type?

Parallel-mpi.F:1961.49:
Parallel-mpi.F:1995.49:
......

make[4]: [/home/tester/Nwchem-6.5.revision26243-src.2014-09-10/lib/LINUX64/libnwpwlib.a(Parallel-mpi.o)]
make[3]:[optimized]
make[2]:[subdirs]
make[1]:[libraries]

Forum Vet
patch
Please apply the patch
http://nwchemgit.github.io/images/Parallelmpi.patch.gz
Recipe:
1) cd $NWCHEM_TOP/src/
2) wget http://nwchemgit.github.io/images/Parallelmpi.patch.gz
3) gzip -d Parallelmpi.patch.gz
4) patch -p0 < Parallelmpi.patch
5) cd nwpw
6) make
7) cd ..
8) make link

More patches available at
http://nwchemgit.github.io/index.php/Download#Patches_for_the_26243_revision_of_NWChem_6.5

Clicked A Few Times
Thanks a lot!

I followed the steps:

8) make link

   there is the error:

/usr/bin/ld: cannot find -ldangchang
collect2: ld returns 1

Forum Vet
cd $NWCHEM_TOP/src/dangchang
make
cd ..
make link

Clicked A Few Times
Thanks a lot!

here is my steps:

cd $NWCHEM_TOP/src/dangchang
make
cd ../nwmd
make
cd ../cafe
make
cd ../space
make
cd ../analyz
make
cd ..
make link

there is an error:
cannot find -lpfft

Thanks again!

Forum Vet
cd $NWCHEM_TOP/src/fft
make
cd ..
make link

Clicked A Few Times
Thanks a lot!

after these steps, I compiled the file nwchem:

cd $NWCHEM_TOP/src
cd fft
make
cd ../dray
make
cd ../vscf
make
cd ../qmmm
make
cd ../qmd
make
cd ../etrans
make
cd ../tce
make

Clicked A Few Times
and it informs me that 'sm_35 is not defined', so I edit ~/.bashrc set CUDA_FLAGS="-arch sm_20"

cd $NWCHEM_TOP/src
cd tce
make
cd ../dntmc
make
cd ../ccca
make
cd ..
make link

yes! I got the file nwchem ($NWCHEM_TOP/bin/LINUX64)

Clicked A Few Times
here are my run steps

cd $NWCHEM_TOP
cd examples/qmd
mpirun -np 2 ../../bin/LINUX64/nwchem h2o_scf.nw

I monitored that my gpu isnot used when nwchem is running

How can I use my gpu

Thanks again

Forum Vet
Quote:Liuwei Nov 12th 1:11 am
here are my run steps

cd $NWCHEM_TOP
cd examples/qmd
mpirun -np 2 ../../bin/LINUX64/nwchem h2o_scf.nw

I monitored that my gpu isnot used when nwchem is running

How can I use my gpu

Thanks again


Only the CCSD(T) method from the TCE module uses GPU
For more information, please visit
http://nwchemgit.github.io/index.php/Release65:TCE#CCSD.28T.29_method_with_CUDA

Clicked A Few Times
Ok,I see. Thanks!


Forum >> NWChem's corner >> Running NWChem