head	1.4;
access;
symbols
	charm6_1:1.4
	charm_6_0_1:1.4
	charm6_0_1:1.4;
locks; strict;
comment	@# @;


1.4
date	2008.12.11.21.13.57;	author wesolwsk;	state Exp;
branches;
next	1.3;
commitid	BIw8cR5lRHLzP5ut;

1.3
date	2008.07.22.21.39.08;	author wesolwsk;	state Exp;
branches;
next	1.2;
commitid	VJoKVtmu129lxQbt;

1.2
date	2008.06.04.23.14.21;	author wesolwsk;	state Exp;
branches;
next	1.1;
commitid	Pqe8Q61nRKoVAG5t;

1.1
date	2008.05.22.19.16.06;	author wesolwsk;	state Exp;
branches;
next	;
commitid	TxVekLjuAdJ1IZ3t;


desc
@@


1.4
log
@Fixed bug in the linking stage which was preventing inclusion of CUDA SDK library include files.
@
text
@CHARMDIR=../../
CHARMC=$(CHARMDIR)/bin/charmc

NVCC = /usr/local/cuda/bin/nvcc
NVCC_FLAGS = -g -c -use_fast_math #-device-debug -deviceemu
NVCC_INC = -I/usr/local/cuda/include -I$(HOME)/NVIDIA_CUDA_SDK/common/inc

RM = rm -f

all: libs
	cp libcudahybridapi.a $(CHARMDIR)/lib

libs: libcudahybridapi.a

install: libcudahybridapi.a
	cp libcudahybridapi.a $(CHARMDIR)/lib
#	cp hybridapi.o wrqueue.o $(CHARMDIR)/tmp

libcudahybridapi.a: hybridapi.o wrqueue.o
	-rm $@@
	ar q $@@ hybridapi.o wrqueue.o 

hybridapi.o: cuda-hybrid-api.cu cuda-hybrid-api.h
	$(NVCC) $(NVCC_FLAGS) $(NVCC_INC) -o hybridapi.o cuda-hybrid-api.cu

wrqueue.o: wrqueue.cu wrqueue.h wr.h 
	$(NVCC) $(NVCC_FLAGS) $(NVCC_INC) -o wrqueue.o wrqueue.cu 

clean:
	rm -f *.o *.a 
@


1.3
log
@Fixed a potential issue with destination for library files.
@
text
@d6 1
a6 1
NVCC_INC = -I/usr/local/cuda/include -I~/NVIDIA_CUDA_SDK/common/inc
@


1.2
log
@updated CUDA hybridAPI and added a CUDA hello example
@
text
@d1 1
a1 1
CHARMDIR=~/charm
@


1.1
log
@CUDA synchronous API
@
text
@d4 3
a6 2
#LDFLAGS += -L/usr/local/cuda/lib -L~/NVIDIA_CUDA_SDK/lib
#LDLIBS += -lcuda -lcudart -lGL -lGLU -lcutil
d8 1
d10 2
a11 3
NVCC = /usr/local/cuda/bin/nvcc
NVCC_FLAGS = -c -use_fast_math #-device-debug -deviceemu
NVCC_INC = -I/usr/local/cuda/include -I/~/NVIDIA_CUDA_SDK/common/inc
d13 1
a13 1
RM = rm -f
d15 3
a17 2
install: cudahybridapi.a
	cp cudahybridapi.a $(CHARMDIR)/lib
d19 3
a21 2
cudahybridapi.a: hybridapi.o wrqueue.o
	ar q cudahybridapi.a hybridapi.o wrqueue.o 
d23 1
a23 1
hybridapi.o: cuda-hybrid-api.h cuda-hybrid-api.cu
d26 1
a26 1
wrqueue.o: wrqueue.cu wrqueue.h
d29 2
@

