compiling MPI and CUDA C

I am restating my problem http://forums.nvidia.com/index.php?s=&…&p=961269,I have fortran and CUDA C codes which I want to run with MPI.What is the way to do that? I compile my fortran codes with mpif90 and CUDA C with nvcc,but how should I link them,which lib I should include?

From .cu files generate .o with nvcc
From .f90 files generate .0 with mpif90
Link with mpif90 adding the runtime (cudart) and sdtc++.

It is not working,I don’t know why?I have set up the environment keys and my makefile looks like this:

COP = mpif90 -O3 -axW
#FC =g95

DOTO = mod.o
create.o
displace.o
coulomb.o
lj.o
ee.o
erf.o
erfc.o
fourier.o
lrc.o
main.o
newmaxima.o
outfold.o
ran2.o
read.o
real.o
self.o
size.o
store.o
surf.o
weights.o
writedata.o
writehist.o
writeresults.o

cuda_ptee:(DOTO) host.o [b](COP) -L /usr/local/cuda-2.2/cuda/lib -lcudart -lstdc++ host.o $(DOTO) -o cuda_ptee [/b]

host.o: host.cu
nvcc -c host.cu -o host.o -I /u/ac/vkumar/nvidia_samples/NVIDIA_CUDA-2.2_SDK/common/inc -L /u/ac/vkumar/nvidia_samples/NVIDIA_CUDA-2.2_SDK/lib -lcutil

mod.o: mod.f90
$(COP) -c mod.f90

coulomb.o: coulomb.f90
$(COP) -c coulomb.f90

create.o: create.f90
$(COP) -c create.f90

displace.o: displace.f90
$(COP) -c displace.f90

ee.o: ee.f90
$(COP) -c ee.f90

erf.o: erf.f90
$(COP) -c erf.f90

erfc.o: erfc.f90
$(COP) -c erfc.f90

fourier.o: fourier.f90
$(COP) -c fourier.f90

lj.o: lj.f90
$(COP) -c lj.f90

lrc.o: lrc.f90
$(COP) -c lrc.f90

main.o: main.f90
$(COP) -c main.f90

newmaxima.o: newmaxima.f90
$(COP) -c newmaxima.f90

outfold.o: outfold.f90
$(COP) -c outfold.f90

ran2.o: ran2.f90
$(COP) -c ran2.f90

read.o: read.f90
$(COP) -c read.f90

real.o: real.f90
$(COP) -c real.f90

self.o: self.f90
$(COP) -c self.f90

size.o: size.f90
$(COP) -c size.f90

store.o: store.f90
$(COP) -c store.f90

surf.o: surf.f90
$(COP) -c surf.f90

weights.o: weights.f90
$(COP) -c weights.f90

writedata.o: writedata.f90
$(COP) -c writedata.f90

writehist.o: writehist.f90
$(COP) -c writehist.f90

writeresults.o: writeresults.f90
$(COP) -c writeresults.f90

clean:
rm cudaptee *.o

You keep saying it “doesn’t work”, but what it is problem, specified with some precision?

I had stated the errors in my post for which I have given the link:After make,errors are

Looking for an implicit rule for `writeresults.f90’.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.o'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.c'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.cc'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.C'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.cpp'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.p'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.f'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.F'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.r'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.s'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.S'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.mod'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.sh'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90,v'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `RCS/writeresults.f90,v'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `RCS/writeresults.f90'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `s.writeresults.f90'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `SCCS/s.writeresults.f90'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.o'.

 Looking for a rule with intermediate file `writeresults.f90.o'.

  Avoiding implicit rule recursion.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.c'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.cc'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.C'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.cpp'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.p'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.f'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.F'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.r'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.s'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.S'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.mod'.

  Trying pattern rule with stem `writeresults.f90.o'.

  Trying implicit prerequisite `writeresults.f90.o,v'.

  Trying pattern rule with stem `writeresults.f90.o'.

  Trying implicit prerequisite `RCS/writeresults.f90.o,v'.

  Trying pattern rule with stem `writeresults.f90.o'.

  Trying implicit prerequisite `RCS/writeresults.f90.o'.

  Trying pattern rule with stem `writeresults.f90.o'.

  Trying implicit prerequisite `s.writeresults.f90.o'.

  Trying pattern rule with stem `writeresults.f90.o'.

  Trying implicit prerequisite `SCCS/s.writeresults.f90.o'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.c'.

  Looking for a rule with intermediate file `writeresults.f90.c'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.y'.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.l'.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.w'.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.w'.

   Trying pattern rule with stem `writeresults.f90.c'.

   Trying implicit prerequisite `writeresults.f90.c,v'.

   Trying pattern rule with stem `writeresults.f90.c'.

   Trying implicit prerequisite `RCS/writeresults.f90.c,v'.

   Trying pattern rule with stem `writeresults.f90.c'.

   Trying implicit prerequisite `RCS/writeresults.f90.c'.

   Trying pattern rule with stem `writeresults.f90.c'.

   Trying implicit prerequisite `s.writeresults.f90.c'.

   Trying pattern rule with stem `writeresults.f90.c'.

   Trying implicit prerequisite `SCCS/s.writeresults.f90.c'.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.y'.

   Looking for a rule with intermediate file `writeresults.f90.y'.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Trying pattern rule with stem `writeresults.f90.y'.

    Trying implicit prerequisite `writeresults.f90.y,v'.

    Trying pattern rule with stem `writeresults.f90.y'.

    Trying implicit prerequisite `RCS/writeresults.f90.y,v'.

    Trying pattern rule with stem `writeresults.f90.y'.

    Trying implicit prerequisite `RCS/writeresults.f90.y'.

    Trying pattern rule with stem `writeresults.f90.y'.

    Trying implicit prerequisite `s.writeresults.f90.y'.

    Trying pattern rule with stem `writeresults.f90.y'.

    Trying implicit prerequisite `SCCS/s.writeresults.f90.y'.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.l'.

   Looking for a rule with intermediate file `writeresults.f90.l'.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Trying pattern rule with stem `writeresults.f90.l'.

    Trying implicit prerequisite `writeresults.f90.l,v'.

    Trying pattern rule with stem `writeresults.f90.l'.

    Trying implicit prerequisite `RCS/writeresults.f90.l,v'.

    Trying pattern rule with stem `writeresults.f90.l'.

    Trying implicit prerequisite `RCS/writeresults.f90.l'.

    Trying pattern rule with stem `writeresults.f90.l'.

    Trying implicit prerequisite `s.writeresults.f90.l'.

    Trying pattern rule with stem `writeresults.f90.l'.

    Trying implicit prerequisite `SCCS/s.writeresults.f90.l'.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.w'.

   Looking for a rule with intermediate file `writeresults.f90.w'.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Trying pattern rule with stem `writeresults.f90.w'.

    Trying implicit prerequisite `writeresults.f90.w,v'.

    Trying pattern rule with stem `writeresults.f90.w'.

    Trying implicit prerequisite `RCS/writeresults.f90.w,v'.

    Trying pattern rule with stem `writeresults.f90.w'.

    Trying implicit prerequisite `RCS/writeresults.f90.w'.

    Trying pattern rule with stem `writeresults.f90.w'.

    Trying implicit prerequisite `s.writeresults.f90.w'.

    Trying pattern rule with stem `writeresults.f90.w'.

    Trying implicit prerequisite `SCCS/s.writeresults.f90.w'.

   Trying pattern rule with stem `writeresults.f90'.

   Rejecting impossible implicit prerequisite `writeresults.f90.w'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.cc'.

  Looking for a rule with intermediate file `writeresults.f90.cc'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `writeresults.f90.cc'.

   Trying implicit prerequisite `writeresults.f90.cc,v'.

   Trying pattern rule with stem `writeresults.f90.cc'.

   Trying implicit prerequisite `RCS/writeresults.f90.cc,v'.

   Trying pattern rule with stem `writeresults.f90.cc'.

   Trying implicit prerequisite `RCS/writeresults.f90.cc'.

   Trying pattern rule with stem `writeresults.f90.cc'.

   Trying implicit prerequisite `s.writeresults.f90.cc'.

   Trying pattern rule with stem `writeresults.f90.cc'.

   Trying implicit prerequisite `SCCS/s.writeresults.f90.cc'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.C'.

  Looking for a rule with intermediate file `writeresults.f90.C'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `writeresults.f90.C'.

   Trying implicit prerequisite `writeresults.f90.C,v'.

   Trying pattern rule with stem `writeresults.f90.C'.

   Trying implicit prerequisite `RCS/writeresults.f90.C,v'.

   Trying pattern rule with stem `writeresults.f90.C'.

   Trying implicit prerequisite `RCS/writeresults.f90.C'.

   Trying pattern rule with stem `writeresults.f90.C'.

   Trying implicit prerequisite `s.writeresults.f90.C'.

   Trying pattern rule with stem `writeresults.f90.C'.

   Trying implicit prerequisite `SCCS/s.writeresults.f90.C'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.cpp'.

  Looking for a rule with intermediate file `writeresults.f90.cpp'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `writeresults.f90.cpp'.

   Trying implicit prerequisite `writeresults.f90.cpp,v'.

   Trying pattern rule with stem `writeresults.f90.cpp'.

   Trying implicit prerequisite `RCS/writeresults.f90.cpp,v'.

   Trying pattern rule with stem `writeresults.f90.cpp'.

   Trying implicit prerequisite `RCS/writeresults.f90.cpp'.

   Trying pattern rule with stem `writeresults.f90.cpp'.

   Trying implicit prerequisite `s.writeresults.f90.cpp'.

   Trying pattern rule with stem `writeresults.f90.cpp'.

   Trying implicit prerequisite `SCCS/s.writeresults.f90.cpp'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.p'.

  Looking for a rule with intermediate file `writeresults.f90.p'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.web'.

   Trying pattern rule with stem `writeresults.f90.p'.

   Trying implicit prerequisite `writeresults.f90.p,v'.

   Trying pattern rule with stem `writeresults.f90.p'.

   Trying implicit prerequisite `RCS/writeresults.f90.p,v'.

   Trying pattern rule with stem `writeresults.f90.p'.

   Trying implicit prerequisite `RCS/writeresults.f90.p'.

   Trying pattern rule with stem `writeresults.f90.p'.

   Trying implicit prerequisite `s.writeresults.f90.p'.

   Trying pattern rule with stem `writeresults.f90.p'.

   Trying implicit prerequisite `SCCS/s.writeresults.f90.p'.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.web'.

   Looking for a rule with intermediate file `writeresults.f90.web'.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Trying pattern rule with stem `writeresults.f90.web'.

    Trying implicit prerequisite `writeresults.f90.web,v'.

    Trying pattern rule with stem `writeresults.f90.web'.

    Trying implicit prerequisite `RCS/writeresults.f90.web,v'.

    Trying pattern rule with stem `writeresults.f90.web'.

    Trying implicit prerequisite `RCS/writeresults.f90.web'.

    Trying pattern rule with stem `writeresults.f90.web'.

    Trying implicit prerequisite `s.writeresults.f90.web'.

    Trying pattern rule with stem `writeresults.f90.web'.

    Trying implicit prerequisite `SCCS/s.writeresults.f90.web'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.f'.

  Looking for a rule with intermediate file `writeresults.f90.f'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.F'.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.r'.

   Trying pattern rule with stem `writeresults.f90.f'.

   Trying implicit prerequisite `writeresults.f90.f,v'.

   Trying pattern rule with stem `writeresults.f90.f'.

   Trying implicit prerequisite `RCS/writeresults.f90.f,v'.

   Trying pattern rule with stem `writeresults.f90.f'.

   Trying implicit prerequisite `RCS/writeresults.f90.f'.

   Trying pattern rule with stem `writeresults.f90.f'.

   Trying implicit prerequisite `s.writeresults.f90.f'.

   Trying pattern rule with stem `writeresults.f90.f'.

   Trying implicit prerequisite `SCCS/s.writeresults.f90.f'.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.F'.

   Looking for a rule with intermediate file `writeresults.f90.F'.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Trying pattern rule with stem `writeresults.f90.F'.

    Trying implicit prerequisite `writeresults.f90.F,v'.

    Trying pattern rule with stem `writeresults.f90.F'.

    Trying implicit prerequisite `RCS/writeresults.f90.F,v'.

    Trying pattern rule with stem `writeresults.f90.F'.

    Trying implicit prerequisite `RCS/writeresults.f90.F'.

    Trying pattern rule with stem `writeresults.f90.F'.

    Trying implicit prerequisite `s.writeresults.f90.F'.

    Trying pattern rule with stem `writeresults.f90.F'.

    Trying implicit prerequisite `SCCS/s.writeresults.f90.F'.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.r'.

   Looking for a rule with intermediate file `writeresults.f90.r'.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Trying pattern rule with stem `writeresults.f90'.

    Rejecting impossible implicit prerequisite `writeresults.f90.l'.

    Trying pattern rule with stem `writeresults.f90.r'.

    Trying implicit prerequisite `writeresults.f90.r,v'.

    Trying pattern rule with stem `writeresults.f90.r'.

    Trying implicit prerequisite `RCS/writeresults.f90.r,v'.

    Trying pattern rule with stem `writeresults.f90.r'.

    Trying implicit prerequisite `RCS/writeresults.f90.r'.

    Trying pattern rule with stem `writeresults.f90.r'.

    Trying implicit prerequisite `s.writeresults.f90.r'.

    Trying pattern rule with stem `writeresults.f90.r'.

    Trying implicit prerequisite `SCCS/s.writeresults.f90.r'.

  Trying pattern rule with stem `writeresults.f90'.

  Rejecting impossible implicit prerequisite `writeresults.f90.F'.

  Trying pattern rule with stem `writeresults.f90'.

  Rejecting impossible implicit prerequisite `writeresults.f90.r'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.s'.

  Looking for a rule with intermediate file `writeresults.f90.s'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.S'.

   Trying pattern rule with stem `writeresults.f90.s'.

   Trying implicit prerequisite `writeresults.f90.s,v'.

   Trying pattern rule with stem `writeresults.f90.s'.

   Trying implicit prerequisite `RCS/writeresults.f90.s,v'.

   Trying pattern rule with stem `writeresults.f90.s'.

   Trying implicit prerequisite `RCS/writeresults.f90.s'.

   Trying pattern rule with stem `writeresults.f90.s'.

   Trying implicit prerequisite `s.writeresults.f90.s'.

   Trying pattern rule with stem `writeresults.f90.s'.

   Trying implicit prerequisite `SCCS/s.writeresults.f90.s'.

   Trying pattern rule with stem `writeresults.f90'.

   Trying implicit prerequisite `writeresults.f90.S'.

   Looking for a rule with intermediate file `writeresults.f90.S'.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Trying pattern rule with stem `writeresults.f90.S'.

    Trying implicit prerequisite `writeresults.f90.S,v'.

    Trying pattern rule with stem `writeresults.f90.S'.

    Trying implicit prerequisite `RCS/writeresults.f90.S,v'.

    Trying pattern rule with stem `writeresults.f90.S'.

    Trying implicit prerequisite `RCS/writeresults.f90.S'.

    Trying pattern rule with stem `writeresults.f90.S'.

    Trying implicit prerequisite `s.writeresults.f90.S'.

    Trying pattern rule with stem `writeresults.f90.S'.

    Trying implicit prerequisite `SCCS/s.writeresults.f90.S'.

  Trying pattern rule with stem `writeresults.f90'.

  Rejecting impossible implicit prerequisite `writeresults.f90.S'.

  Trying pattern rule with stem `writeresults.f90'.

  Trying implicit prerequisite `writeresults.f90.mod'.

  Looking for a rule with intermediate file `writeresults.f90.mod'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `writeresults.f90.mod'.

   Trying implicit prerequisite `writeresults.f90.mod,v'.

   Trying pattern rule with stem `writeresults.f90.mod'.

   Trying implicit prerequisite `RCS/writeresults.f90.mod,v'.

   Trying pattern rule with stem `writeresults.f90.mod'.

   Trying implicit prerequisite `RCS/writeresults.f90.mod'.

   Trying pattern rule with stem `writeresults.f90.mod'.

   Trying implicit prerequisite `s.writeresults.f90.mod'.

   Trying pattern rule with stem `writeresults.f90.mod'.

   Trying implicit prerequisite `SCCS/s.writeresults.f90.mod'.

 Trying pattern rule with stem `writeresults.f90'.

 Rejecting impossible implicit prerequisite `writeresults.f90.c'.

 Trying pattern rule with stem `writeresults.f90'.

 Rejecting impossible implicit prerequisite `writeresults.f90.cc'.

 Trying pattern rule with stem `writeresults.f90'.

 Rejecting impossible implicit prerequisite `writeresults.f90.C'.

 Trying pattern rule with stem `writeresults.f90'.

 Rejecting impossible implicit prerequisite `writeresults.f90.cpp'.

 Trying pattern rule with stem `writeresults.f90'.

 Rejecting impossible implicit prerequisite `writeresults.f90.p'.

 Trying pattern rule with stem `writeresults.f90'.

 Rejecting impossible implicit prerequisite `writeresults.f90.f'.

 Trying pattern rule with stem `writeresults.f90'.

 Rejecting impossible implicit prerequisite `writeresults.f90.F'.

 Trying pattern rule with stem `writeresults.f90'.

 Rejecting impossible implicit prerequisite `writeresults.f90.r'.

 Trying pattern rule with stem `writeresults.f90'.

 Rejecting impossible implicit prerequisite `writeresults.f90.s'.

 Trying pattern rule with stem `writeresults.f90'.

 Rejecting impossible implicit prerequisite `writeresults.f90.S'.

 Trying pattern rule with stem `writeresults.f90'.

 Rejecting impossible implicit prerequisite `writeresults.f90.mod'.

 Trying pattern rule with stem `writeresults.f90'.

 Trying implicit prerequisite `writeresults.f90.sh'.

 Looking for a rule with intermediate file `writeresults.f90.sh'.

  Avoiding implicit rule recursion.

  Trying pattern rule with stem `writeresults.f90.sh'.

  Trying implicit prerequisite `writeresults.f90.sh,v'.

  Trying pattern rule with stem `writeresults.f90.sh'.

  Trying implicit prerequisite `RCS/writeresults.f90.sh,v'.

  Trying pattern rule with stem `writeresults.f90.sh'.

  Trying implicit prerequisite `RCS/writeresults.f90.sh'.

  Trying pattern rule with stem `writeresults.f90.sh'.

  Trying implicit prerequisite `s.writeresults.f90.sh'.

  Trying pattern rule with stem `writeresults.f90.sh'.

  Trying implicit prerequisite `SCCS/s.writeresults.f90.sh'.

 No implicit rule found for `writeresults.f90'.

 Finished prerequisites of target file `writeresults.f90'.

No need to remake target `writeresults.f90'.

Finished prerequisites of target file `writeresults.o’.

Prerequisite writeresults.f90' is older than target writeresults.o’.

No need to remake target `writeresults.o’.

Considering target file `host.o’.

File `host.o’ does not exist.

Considering target file `host.cu'.

 Looking for an implicit rule for `host.cu'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.o'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.c'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.cc'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.C'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.cpp'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.p'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.f'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.F'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.r'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.s'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.S'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.mod'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.sh'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu,v'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `RCS/host.cu,v'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `RCS/host.cu'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `s.host.cu'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `SCCS/s.host.cu'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.o'.

 Looking for a rule with intermediate file `host.cu.o'.

  Avoiding implicit rule recursion.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.c'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.cc'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.C'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.cpp'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.p'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.f'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.F'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.r'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.s'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.S'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.mod'.

  Trying pattern rule with stem `host.cu.o'.

  Trying implicit prerequisite `host.cu.o,v'.

  Trying pattern rule with stem `host.cu.o'.

  Trying implicit prerequisite `RCS/host.cu.o,v'.

  Trying pattern rule with stem `host.cu.o'.

  Trying implicit prerequisite `RCS/host.cu.o'.

  Trying pattern rule with stem `host.cu.o'.

  Trying implicit prerequisite `s.host.cu.o'.

  Trying pattern rule with stem `host.cu.o'.

  Trying implicit prerequisite `SCCS/s.host.cu.o'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.c'.

  Looking for a rule with intermediate file `host.cu.c'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.y'.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.l'.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.w'.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.w'.

   Trying pattern rule with stem `host.cu.c'.

   Trying implicit prerequisite `host.cu.c,v'.

   Trying pattern rule with stem `host.cu.c'.

   Trying implicit prerequisite `RCS/host.cu.c,v'.

   Trying pattern rule with stem `host.cu.c'.

   Trying implicit prerequisite `RCS/host.cu.c'.

   Trying pattern rule with stem `host.cu.c'.

   Trying implicit prerequisite `s.host.cu.c'.

   Trying pattern rule with stem `host.cu.c'.

   Trying implicit prerequisite `SCCS/s.host.cu.c'.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.y'.

   Looking for a rule with intermediate file `host.cu.y'.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Trying pattern rule with stem `host.cu.y'.

    Trying implicit prerequisite `host.cu.y,v'.

    Trying pattern rule with stem `host.cu.y'.

    Trying implicit prerequisite `RCS/host.cu.y,v'.

    Trying pattern rule with stem `host.cu.y'.

    Trying implicit prerequisite `RCS/host.cu.y'.

    Trying pattern rule with stem `host.cu.y'.

    Trying implicit prerequisite `s.host.cu.y'.

    Trying pattern rule with stem `host.cu.y'.

    Trying implicit prerequisite `SCCS/s.host.cu.y'.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.l'.

   Looking for a rule with intermediate file `host.cu.l'.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Trying pattern rule with stem `host.cu.l'.

    Trying implicit prerequisite `host.cu.l,v'.

    Trying pattern rule with stem `host.cu.l'.

    Trying implicit prerequisite `RCS/host.cu.l,v'.

    Trying pattern rule with stem `host.cu.l'.

    Trying implicit prerequisite `RCS/host.cu.l'.

    Trying pattern rule with stem `host.cu.l'.

    Trying implicit prerequisite `s.host.cu.l'.

    Trying pattern rule with stem `host.cu.l'.

    Trying implicit prerequisite `SCCS/s.host.cu.l'.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.w'.

   Looking for a rule with intermediate file `host.cu.w'.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Trying pattern rule with stem `host.cu.w'.

    Trying implicit prerequisite `host.cu.w,v'.

    Trying pattern rule with stem `host.cu.w'.

    Trying implicit prerequisite `RCS/host.cu.w,v'.

    Trying pattern rule with stem `host.cu.w'.

    Trying implicit prerequisite `RCS/host.cu.w'.

    Trying pattern rule with stem `host.cu.w'.

    Trying implicit prerequisite `s.host.cu.w'.

    Trying pattern rule with stem `host.cu.w'.

    Trying implicit prerequisite `SCCS/s.host.cu.w'.

   Trying pattern rule with stem `host.cu'.

   Rejecting impossible implicit prerequisite `host.cu.w'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.cc'.

  Looking for a rule with intermediate file `host.cu.cc'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `host.cu.cc'.

   Trying implicit prerequisite `host.cu.cc,v'.

   Trying pattern rule with stem `host.cu.cc'.

   Trying implicit prerequisite `RCS/host.cu.cc,v'.

   Trying pattern rule with stem `host.cu.cc'.

   Trying implicit prerequisite `RCS/host.cu.cc'.

   Trying pattern rule with stem `host.cu.cc'.

   Trying implicit prerequisite `s.host.cu.cc'.

   Trying pattern rule with stem `host.cu.cc'.

   Trying implicit prerequisite `SCCS/s.host.cu.cc'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.C'.

  Looking for a rule with intermediate file `host.cu.C'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `host.cu.C'.

   Trying implicit prerequisite `host.cu.C,v'.

   Trying pattern rule with stem `host.cu.C'.

   Trying implicit prerequisite `RCS/host.cu.C,v'.

   Trying pattern rule with stem `host.cu.C'.

   Trying implicit prerequisite `RCS/host.cu.C'.

   Trying pattern rule with stem `host.cu.C'.

   Trying implicit prerequisite `s.host.cu.C'.

   Trying pattern rule with stem `host.cu.C'.

   Trying implicit prerequisite `SCCS/s.host.cu.C'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.cpp'.

  Looking for a rule with intermediate file `host.cu.cpp'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `host.cu.cpp'.

   Trying implicit prerequisite `host.cu.cpp,v'.

   Trying pattern rule with stem `host.cu.cpp'.

   Trying implicit prerequisite `RCS/host.cu.cpp,v'.

   Trying pattern rule with stem `host.cu.cpp'.

   Trying implicit prerequisite `RCS/host.cu.cpp'.

   Trying pattern rule with stem `host.cu.cpp'.

   Trying implicit prerequisite `s.host.cu.cpp'.

   Trying pattern rule with stem `host.cu.cpp'.

   Trying implicit prerequisite `SCCS/s.host.cu.cpp'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.p'.

  Looking for a rule with intermediate file `host.cu.p'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.web'.

   Trying pattern rule with stem `host.cu.p'.

   Trying implicit prerequisite `host.cu.p,v'.

   Trying pattern rule with stem `host.cu.p'.

   Trying implicit prerequisite `RCS/host.cu.p,v'.

   Trying pattern rule with stem `host.cu.p'.

   Trying implicit prerequisite `RCS/host.cu.p'.

   Trying pattern rule with stem `host.cu.p'.

   Trying implicit prerequisite `s.host.cu.p'.

   Trying pattern rule with stem `host.cu.p'.

   Trying implicit prerequisite `SCCS/s.host.cu.p'.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.web'.

   Looking for a rule with intermediate file `host.cu.web'.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Trying pattern rule with stem `host.cu.web'.

    Trying implicit prerequisite `host.cu.web,v'.

    Trying pattern rule with stem `host.cu.web'.

    Trying implicit prerequisite `RCS/host.cu.web,v'.

    Trying pattern rule with stem `host.cu.web'.

    Trying implicit prerequisite `RCS/host.cu.web'.

    Trying pattern rule with stem `host.cu.web'.

    Trying implicit prerequisite `s.host.cu.web'.

    Trying pattern rule with stem `host.cu.web'.

    Trying implicit prerequisite `SCCS/s.host.cu.web'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.f'.

  Looking for a rule with intermediate file `host.cu.f'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.F'.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.r'.

   Trying pattern rule with stem `host.cu.f'.

   Trying implicit prerequisite `host.cu.f,v'.

   Trying pattern rule with stem `host.cu.f'.

   Trying implicit prerequisite `RCS/host.cu.f,v'.

   Trying pattern rule with stem `host.cu.f'.

   Trying implicit prerequisite `RCS/host.cu.f'.

   Trying pattern rule with stem `host.cu.f'.

   Trying implicit prerequisite `s.host.cu.f'.

   Trying pattern rule with stem `host.cu.f'.

   Trying implicit prerequisite `SCCS/s.host.cu.f'.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.F'.

   Looking for a rule with intermediate file `host.cu.F'.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Trying pattern rule with stem `host.cu.F'.

    Trying implicit prerequisite `host.cu.F,v'.

    Trying pattern rule with stem `host.cu.F'.

    Trying implicit prerequisite `RCS/host.cu.F,v'.

    Trying pattern rule with stem `host.cu.F'.

    Trying implicit prerequisite `RCS/host.cu.F'.

    Trying pattern rule with stem `host.cu.F'.

    Trying implicit prerequisite `s.host.cu.F'.

    Trying pattern rule with stem `host.cu.F'.

    Trying implicit prerequisite `SCCS/s.host.cu.F'.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.r'.

   Looking for a rule with intermediate file `host.cu.r'.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Trying pattern rule with stem `host.cu'.

    Rejecting impossible implicit prerequisite `host.cu.l'.

    Trying pattern rule with stem `host.cu.r'.

    Trying implicit prerequisite `host.cu.r,v'.

    Trying pattern rule with stem `host.cu.r'.

    Trying implicit prerequisite `RCS/host.cu.r,v'.

    Trying pattern rule with stem `host.cu.r'.

    Trying implicit prerequisite `RCS/host.cu.r'.

    Trying pattern rule with stem `host.cu.r'.

    Trying implicit prerequisite `s.host.cu.r'.

    Trying pattern rule with stem `host.cu.r'.

    Trying implicit prerequisite `SCCS/s.host.cu.r'.

  Trying pattern rule with stem `host.cu'.

  Rejecting impossible implicit prerequisite `host.cu.F'.

  Trying pattern rule with stem `host.cu'.

  Rejecting impossible implicit prerequisite `host.cu.r'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.s'.

  Looking for a rule with intermediate file `host.cu.s'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.S'.

   Trying pattern rule with stem `host.cu.s'.

   Trying implicit prerequisite `host.cu.s,v'.

   Trying pattern rule with stem `host.cu.s'.

   Trying implicit prerequisite `RCS/host.cu.s,v'.

   Trying pattern rule with stem `host.cu.s'.

   Trying implicit prerequisite `RCS/host.cu.s'.

   Trying pattern rule with stem `host.cu.s'.

   Trying implicit prerequisite `s.host.cu.s'.

   Trying pattern rule with stem `host.cu.s'.

   Trying implicit prerequisite `SCCS/s.host.cu.s'.

   Trying pattern rule with stem `host.cu'.

   Trying implicit prerequisite `host.cu.S'.

   Looking for a rule with intermediate file `host.cu.S'.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Avoiding implicit rule recursion.

    Trying pattern rule with stem `host.cu.S'.

    Trying implicit prerequisite `host.cu.S,v'.

    Trying pattern rule with stem `host.cu.S'.

    Trying implicit prerequisite `RCS/host.cu.S,v'.

    Trying pattern rule with stem `host.cu.S'.

    Trying implicit prerequisite `RCS/host.cu.S'.

    Trying pattern rule with stem `host.cu.S'.

    Trying implicit prerequisite `s.host.cu.S'.

    Trying pattern rule with stem `host.cu.S'.

    Trying implicit prerequisite `SCCS/s.host.cu.S'.

  Trying pattern rule with stem `host.cu'.

  Rejecting impossible implicit prerequisite `host.cu.S'.

  Trying pattern rule with stem `host.cu'.

  Trying implicit prerequisite `host.cu.mod'.

  Looking for a rule with intermediate file `host.cu.mod'.

   Avoiding implicit rule recursion.

   Avoiding implicit rule recursion.

   Trying pattern rule with stem `host.cu.mod'.

   Trying implicit prerequisite `host.cu.mod,v'.

   Trying pattern rule with stem `host.cu.mod'.

   Trying implicit prerequisite `RCS/host.cu.mod,v'.

   Trying pattern rule with stem `host.cu.mod'.

   Trying implicit prerequisite `RCS/host.cu.mod'.

   Trying pattern rule with stem `host.cu.mod'.

   Trying implicit prerequisite `s.host.cu.mod'.

   Trying pattern rule with stem `host.cu.mod'.

   Trying implicit prerequisite `SCCS/s.host.cu.mod'.

 Trying pattern rule with stem `host.cu'.

 Rejecting impossible implicit prerequisite `host.cu.c'.

 Trying pattern rule with stem `host.cu'.

 Rejecting impossible implicit prerequisite `host.cu.cc'.

 Trying pattern rule with stem `host.cu'.

 Rejecting impossible implicit prerequisite `host.cu.C'.

 Trying pattern rule with stem `host.cu'.

 Rejecting impossible implicit prerequisite `host.cu.cpp'.

 Trying pattern rule with stem `host.cu'.

 Rejecting impossible implicit prerequisite `host.cu.p'.

 Trying pattern rule with stem `host.cu'.

 Rejecting impossible implicit prerequisite `host.cu.f'.

 Trying pattern rule with stem `host.cu'.

 Rejecting impossible implicit prerequisite `host.cu.F'.

 Trying pattern rule with stem `host.cu'.

 Rejecting impossible implicit prerequisite `host.cu.r'.

 Trying pattern rule with stem `host.cu'.

 Rejecting impossible implicit prerequisite `host.cu.s'.

 Trying pattern rule with stem `host.cu'.

 Rejecting impossible implicit prerequisite `host.cu.S'.

 Trying pattern rule with stem `host.cu'.

 Rejecting impossible implicit prerequisite `host.cu.mod'.

 Trying pattern rule with stem `host.cu'.

 Trying implicit prerequisite `host.cu.sh'.

 Looking for a rule with intermediate file `host.cu.sh'.

  Avoiding implicit rule recursion.

  Trying pattern rule with stem `host.cu.sh'.

  Trying implicit prerequisite `host.cu.sh,v'.

  Trying pattern rule with stem `host.cu.sh'.

  Trying implicit prerequisite `RCS/host.cu.sh,v'.

  Trying pattern rule with stem `host.cu.sh'.

  Trying implicit prerequisite `RCS/host.cu.sh'.

  Trying pattern rule with stem `host.cu.sh'.

  Trying implicit prerequisite `s.host.cu.sh'.

  Trying pattern rule with stem `host.cu.sh'.

  Trying implicit prerequisite `SCCS/s.host.cu.sh'.

 No implicit rule found for `host.cu'.

 Finished prerequisites of target file `host.cu'.

No need to remake target `host.cu'.

Finished prerequisites of target file `host.o’.

Must remake target `host.o’.

nvcc -c host.cu -o host.o -I /u/ac/vkumar/nvidia_samples/NVIDIA_CUDA-2.2_SDK/common/inc -

L /u/ac/vkumar/nvidia_samples/NVIDIA_CUDA-2.2_SDK/lib -lcutil

Putting child 0x005432d0 (host.o) PID 9927 on the chain.

Live child 0x005432d0 (host.o) PID 9927

Got a SIGCHLD; 1 unreaped children.

Reaping losing child 0x005432d0 PID 9927

Removing child 0x005432d0 PID 9927 from chain.

[vkumar@honest1 ~/cuda_ptee]$ ls -lah

total 1.3M

drwxr-x— 2 vkumar dtp 4.0K Dec 9 12:29 .

drwxr-x–x 11 vkumar ac 4.0K Dec 9 12:29 …

-rwxr-x— 1 vkumar dtp 2.1K Dec 9 11:54 Fmakefile

-rwxr-x— 1 vkumar dtp 2.0K Dec 9 12:12 Makefile

-rwxr-xr-x 1 vkumar dtp 2.1K Dec 7 11:02 coulomb.f90

-rw-r----- 1 vkumar dtp 5.9K Dec 9 11:56 coulomb.o

-rwxr-xr-x 1 vkumar dtp 6.0K Dec 7 10:23 create.f90

-rw-r----- 1 vkumar dtp 27K Dec 9 11:56 create.o

-rwxr-xr-x 1 vkumar dtp 13K Dec 7 10:23 displace.f90

-rw-r----- 1 vkumar dtp 45K Dec 9 11:56 displace.o

-rwxr-xr-x 1 vkumar dtp 1009 Dec 7 10:23 ee.f90

-rw-r----- 1 vkumar dtp 2.9K Dec 9 11:56 ee.o

-rw-r----- 1 vkumar dtp 823 Dec 9 11:55 energies.mod

-rwxr-xr-x 1 vkumar dtp 643 Dec 7 10:23 erf.f90

-rw-r----- 1 vkumar dtp 2.4K Dec 9 11:56 erf.o

-rwxr-xr-x 1 vkumar dtp 606 Dec 7 10:23 erfc.f90

-rw-r----- 1 vkumar dtp 2.4K Dec 9 11:57 erfc.o

-rw-r----- 1 vkumar dtp 6.9K Dec 9 11:55 ewald.mod

-rw-r----- 1 vkumar dtp 1.3K Dec 9 11:55 files.mod

-rwxr-xr-x 1 vkumar dtp 9.7K Dec 7 10:23 fourier.f90

-rw-r----- 1 vkumar dtp 48K Dec 9 11:57 fourier.o

-rwxr-x— 1 vkumar dtp 2.6K Dec 9 12:12 host.cu

-rwxr-x— 1 vkumar dtp 11K Dec 7 11:42 kernel.cu

-rwxr-xr-x 1 vkumar dtp 5.1K Dec 7 11:29 lj.f90

-rw-r----- 1 vkumar dtp 1.3K Dec 9 11:55 lj.mod

-rw-r----- 1 vkumar dtp 12K Dec 9 11:56 lj.o

-rwxr-xr-x 1 vkumar dtp 562 Dec 7 10:23 lrc.f90

-rw-r----- 1 vkumar dtp 1.8K Dec 9 11:57 lrc.o

-rwxr-xr-x 1 vkumar dtp 9.8K Dec 7 10:23 main.f90

-rw-r----- 1 vkumar dtp 72K Dec 9 11:57 main.o

-rwxr-x— 1 vkumar dtp 2.0K Dec 7 15:58 makefile_bkp

-rwxr-xr-x 1 vkumar dtp 7.5K Dec 7 10:23 mod.f90

-rw-r----- 1 vkumar dtp 17K Dec 9 11:55 mod.o

-rw-r----- 1 vkumar dtp 1.4K Dec 9 11:55 moves.mod

-rw-r----- 1 vkumar dtp 439 Dec 9 11:55 mympi.mod

-rwxr-xr-x 1 vkumar dtp 704 Dec 7 10:23 newmaxima.f90

-rw-r----- 1 vkumar dtp 2.6K Dec 9 11:57 newmaxima.o

-rwxr-x— 1 vkumar dtp 843 Dec 9 11:37 oMakefile

-rwxr-xr-x 1 vkumar dtp 556 Dec 7 10:23 outfold.f90

-rw-r----- 1 vkumar dtp 4.5K Dec 9 11:57 outfold.o

-rw-r----- 1 vkumar dtp 841 Dec 9 11:55 params.mod

-rwxr-xr-x 1 vkumar dtp 1.1K Dec 7 10:23 ran2.f90

-rw-r----- 1 vkumar dtp 2.1K Dec 9 11:57 ran2.o

-rw-r----- 1 vkumar dtp 283 Dec 9 11:55 randmod.mod

-rwxr-xr-x 1 vkumar dtp 14K Dec 7 11:29 read.f90

-rw-r----- 1 vkumar dtp 112K Dec 9 11:57 read.o

-rwxr-xr-x 1 vkumar dtp 2.1K Dec 7 10:23 real.f90

-rw-r----- 1 vkumar dtp 5.5K Dec 9 11:57 real.o

-rwxr-xr-x 1 vkumar dtp 945 Dec 7 10:23 self.f90

-rw-r----- 1 vkumar dtp 2.9K Dec 9 11:57 self.o

-rwxr-xr-x 1 vkumar dtp 1.5K Dec 7 10:23 size.f90

-rw-r----- 1 vkumar dtp 9.2K Dec 9 11:57 size.o

-rw-r----- 1 vkumar dtp 1.5K Dec 9 11:55 sp.mod

-rwxr-xr-x 1 vkumar dtp 1.9K Dec 7 10:23 store.f90

-rw-r----- 1 vkumar dtp 7.9K Dec 9 11:57 store.o

-rwxr-xr-x 1 vkumar dtp 1.6K Dec 7 10:23 surf.f90

-rw-r----- 1 vkumar dtp 2.9K Dec 9 11:57 surf.o

-rw-r----- 1 vkumar dtp 1.8K Dec 9 11:55 timemod.mod

-rw-r----- 1 vkumar dtp 6.0K Dec 9 11:55 tmmod.mod

-rw-r----- 1 vkumar dtp 506K Dec 9 12:31 vaibhaw.txt

-rwxr-xr-x 1 vkumar dtp 2.2K Dec 7 10:23 weights.f90

-rw-r----- 1 vkumar dtp 7.9K Dec 9 11:57 weights.o

-rwxr-xr-x 1 vkumar dtp 2.3K Dec 7 10:23 writedata.f90

-rw-r----- 1 vkumar dtp 8.5K Dec 9 11:58 writedata.o

-rwxr-xr-x 1 vkumar dtp 899 Dec 7 10:23 writehist.f90

-rw-r----- 1 vkumar dtp 4.5K Dec 9 11:58 writehist.o

-rwxr-xr-x 1 vkumar dtp 5.5K Dec 7 10:23 writeresults.f90

-rw-r----- 1 vkumar dtp 32K Dec 9 11:58 writeresults.o

-rw-r----- 1 vkumar dtp 4.2K Dec 9 11:55 xyz.mod

[vkumar@honest1 ~/cuda_ptee]$ make

nvcc -c host.cu -o host.o -I /u/ac/vkumar/nvidia_samples/NVIDIA_CUDA-2.2_SDK/common/inc -

L /u/ac/vkumar/nvidia_samples/NVIDIA_CUDA-2.2_SDK/lib -lcutil

host.cu(15): warning: variable “nBytes” was set but never used

host.cu(15): warning: variable “i” was declared but never referenced

host.cu(15): warning: variable “j” was declared but never referenced

host.cu(16): warning: variable “Xi_d” was declared but never referenced

host.cu(16): warning: variable “Yi_d” was declared but never referenced

host.cu(16): warning: variable “Zi_d” was declared but never referenced

host.cu(16): warning: variable “ee_d” was declared but never referenced

host.cu(17): warning: variable “xii_oxy_d” was set but never used

host.cu(17): warning: variable “yii_oxy_d” was set but never used

host.cu(17): warning: variable “zii_oxy_d” was set but never used

host.cu(18): warning: variable “xii_H1_d” was set but never used

host.cu(18): warning: variable “yii_H1_d” was set but never used

host.cu(18): warning: variable “zii_H1_d” was set but never used

host.cu(19): warning: variable “xii_H2_d” was set but never used

host.cu(19): warning: variable “yii_H2_d” was set but never used

host.cu(19): warning: variable “zii_H2_d” was set but never used

host.cu(56): error: this declaration has no storage class or type specifier

host.cu(56): error: declaration is incompatible with "cudaError_t cudaMalloc(void **, size_

t)"

/usr/local/cuda-2.2/cuda/bin/…/include/cuda_runtime_api.h(102): here

host.cu(56): error: identifier “Xi_d” is undefined

host.cu(56): error: expected a “)”

host.cu(57): error: this declaration has no storage class or type specifier

host.cu(57): error: variable “cudaMalloc” has already been defined

host.cu(57): error: identifier “Yi_d” is undefined

host.cu(57): error: expected a “)”

host.cu(58): error: this declaration has no storage class or type specifier

host.cu(58): error: variable “cudaMalloc” has already been defined

host.cu(58): error: identifier “Zi_d” is undefined

host.cu(58): error: expected a “)”

host.cu(59): error: this declaration has no storage class or type specifier

host.cu(59): error: variable “cudaMalloc” has already been defined

host.cu(59): error: identifier “ee_d” is undefined

host.cu(59): error: expected a “)”

host.cu(61): error: this declaration has no storage class or type specifier

host.cu(61): error: declaration is incompatible with "cudaError_t cudaMemcpy(void *, const

void *, size_t, cudaMemcpyKind)"

/usr/local/cuda-2.2/cuda/bin/…/include/cuda_runtime_api.h(120): here

host.cu(61): error: expected a “)”

host.cu(62): error: this declaration has no storage class or type specifier

host.cu(62): error: variable “cudaMemcpy” has already been defined

host.cu(62): error: expected a “)”

host.cu(63): error: this declaration has no storage class or type specifier

host.cu(63): error: variable “cudaMemcpy” has already been defined

host.cu(63): error: expected a “)”

host.cu(64): error: this declaration has no storage class or type specifier

host.cu(64): error: variable “cudaMemcpy” has already been defined

host.cu(64): error: expected a “)”

host.cu(69): error: this declaration has no storage class or type specifier

host.cu(69): error: declaration is incompatible with "CUTBoolean cutCreateTimer(unsigned in

t *)"

/u/ac/vkumar/nvidia_samples/NVIDIA_CUDA-2.2_SDK/common/inc/cutil.h(685): here

host.cu(69): error: a value of type “unsigned int *” cannot be used to initialize an entity

of type “int”

host.cu(70): error: this declaration has no storage class or type specifier

host.cu(70): error: declaration is incompatible with "CUTBoolean cutStartTimer(unsigned int

)"

/u/ac/vkumar/nvidia_samples/NVIDIA_CUDA-2.2_SDK/common/inc/cutil.h(702): here

host.cu(82): error: this declaration has no storage class or type specifier

host.cu(82): error: declaration is incompatible with "void ljondevice(float *, float *, flo

at *, float *, float, float, float, float, float, float, float, float, float, int, int)"

./kernel.cu(6): here

host.cu(82): error: expected a “;”

host.cu(85): error: expected a declaration

host.cu(88): error: this declaration has no storage class or type specifier

host.cu(88): error: variable “cudaMemcpy” has already been defined

host.cu(88): error: identifier “ee_h” is undefined

host.cu(88): error: expected a “)”

host.cu(92): error: this declaration has no storage class or type specifier

host.cu(92): error: declaration is incompatible with "CUTBoolean cutStopTimer(unsigned int)

"

/u/ac/vkumar/nvidia_samples/NVIDIA_CUDA-2.2_SDK/common/inc/cutil.h(710): here

host.cu(93): error: this declaration has no storage class or type specifier

host.cu(93): error: declaration is incompatible with “int printf(const char *, …)”

/usr/include/stdio.h(329): here

host.cu(93): error: a value of type “const char *” cannot be used to initialize an entity o

f type “int”

host.cu(93): error: expected a “)”

host.cu(94): error: this declaration has no storage class or type specifier

host.cu(94): error: declaration is incompatible with "CUTBoolean cutDeleteTimer(unsigned in

t)"

/u/ac/vkumar/nvidia_samples/NVIDIA_CUDA-2.2_SDK/common/inc/cutil.h(694): here

host.cu(110): error: this declaration has no storage class or type specifier

host.cu(110): error: declaration is incompatible with “cudaError_t cudaFree(void *)”

/usr/local/cuda-2.2/cuda/bin/…/include/cuda_runtime_api.h(106): here

host.cu(111): error: this declaration has no storage class or type specifier

host.cu(111): error: variable “cudaFree” has already been defined

host.cu(112): error: this declaration has no storage class or type specifier

host.cu(112): error: variable “cudaFree” has already been defined

host.cu(113): error: this declaration has no storage class or type specifier

host.cu(113): error: variable “cudaFree” has already been defined

host.cu(115): error: expected a declaration

host.cu(117): error: expected a declaration

So either you have a syntax error in host.cu, in which case fix it, or (possibly) you are using an unsupported compiler version. Which is it?

(BTW posting 500 lines of verbose makefile output is a pretty interesting definition of precision).

I am sorry for posting you the entire output,I did that by mistake.The host.cu doesn’t have any syntax error,I have compiled this with single fortran code,but now when I am compiling it with multiple mpif90 source files,it is flashing me those errors.

nvcc is telling you it cannot compile that file. It has nothing to do with fortran, mpi, make or anything else. Can you just run nvcc on the command line to compile it to an object file?

When I compile with nvcc
$nvcc -c host.cu
$host.cu:9:18: cutil.h: No such file or directory

Try adding the paths of the include files you including with -I arguments (cutil.h is in the SDK in C/common/inc before you ask the next obvious question).

Its working fine now.I am able to compile my codes.Thanks for your help AvidDay

However, please be aware that the CUDA licence states that use of cutil.h implicitly gives tmurray permission to pursue you with a baseball bat… ;)