<div>Hi all, </div><div><br></div><div>I'm building a matrix type with two separate files dai.c and <a href="http://diakerns.cu">diakerns.cu</a>. If I "make all" in the PETSc root dir, it will be unable to find the object file from the .cu file; i.e., I get this:</div>
<div><br></div><div><div>/usr/bin/ar: diakerns.o: No such file or directory</div></div><div><br></div><div>However if I merely do a "make lib" inside the matrix type directory I have no problem. This has happened to other types I've create, I end up just shoving everything into one large .cu file to quickly deal with it.</div>
<div>Here what the folder level makefile looks like:</div><div><br></div><div><br></div><div><br></div><div>SOURCECU = <a href="http://diakerns.cu">diakerns.cu</a></div><div>SOURCEC = dia.c</div><div>SOURCEF =</div><div>
SOURCEH = dia.h</div><div>OBJSC = dia.o diakerns.o</div><div>OBJSF =</div><div>LIBBASE = libpetscmat</div><div>DIRS = </div><div>MANSEC = Mat</div><div>LOCDIR = src/mat/impls/dia/seq/</div><div><br></div><div>
<br></div><div><br></div><div><br></div><div>This is what my configuration script for petsc root looks like:</div><div><br></div><div><div><br></div><div>MPI_DIR="--with-mpi-dir=$MPICH2_HOME"</div><div>LAD="--download-f-blas-lapack=yes"</div>
<div>CUD="--with-cuda-dir=/soft/cuda-4.2/cuda"</div><div>./config/configure.py $MPI_DIR $LAD $CUD \</div><div>--with-debugging=1 \</div><div>--with-cudac="nvcc -m64 -g -G -v" \</div><div>--with-precision=double \</div>
<div>--with-clanguage=c \</div><div>--with-cuda-arch=sm_20 \</div><div><br></div></div><div><br></div><div><br></div><div><br></div><div><br></div>-- <br>Daniel Lowell<br><br>