GPU-Package build Problem

Hi

at least the Makefile.fermi has a problem:

[[email protected] gpu]$ make -f Makefile.fermi -j 1
/usr/local/cuda/bin/nvcc -I/usr/local/cuda/include -DUNIX -O3 -Xptxas -v -Icudpp_mini -arch=sm_20 -D_DOUBLE_DOUBLE --ptx -DNV_KERNEL -o obj/atom.ptx lal_atom.cu
Could not open file obj/atom.ptx for writing
/bin/sh ./geryon/file_to_cstr.sh atom obj/atom.ptx obj/atom_ptx.h
./geryon/file_to_cstr.sh: line 38: obj/atom_ptx.h: No such file or directory
Converting obj/atom.ptx to a c-style string
./geryon/file_to_cstr.sh: line 45: obj/atom_ptx.h: No such file or directory
./geryon/file_to_cstr.sh: line 54: obj/atom_ptx.h: No such file or directory

The simple solution is to create the folder "obj" in lib/gpu. Than it works.

Cheers
Christian

Hi Christian,

thanks for pointing this out. Creating an obj directory like you did, or changing the variable OBJ_DIR in Makefile.fermi from “obj” to “./” as in other Makefile’s could solve the problem.

I suppose you also changed $(CUDA_HOME) in the Makefile.fermi so that it points to the correct path /usr/local/cuda.

Cheers,
-Trung

Hi Trung,

sure I did change the directory for cuda. I think the best thing to do is either add an empty "obj" directory to the repository, or let the Makefile create OBJ_DIR if it doesnt exist.

Cheers
Christian

-------- Original-Nachricht --------

Hi Trung,

sure I did change the directory for cuda. I think the best thing to do is either add an empty "obj" directory to the repository, or let the Makefile create OBJ_DIR if it doesnt exist.

i think i had code sent to mike and/or steve that does the latter.
will have to re-check, if that got lost somewhere and resend.
having a separate directory for the object files and the preprocessed
kernels is so much cleaner...

axel.

Hi Axel

if you feel like it you can modify the lib/cuda/Makefiles as well to use a seperate obj directory ;-).

Christian

-------- Original-Nachricht --------

If someone sends me new Makefile(s), I will add them
to the GPU lib dir.

Steve