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


1.2
date	2008.07.23.20.48.21;	author wesolwsk;	state Exp;
branches;
next	1.1;
commitid	0DLlRXsnlyN2eYbt;

1.1
date	2008.06.04.23.14.20;	author wesolwsk;	state Exp;
branches;
next	;
commitid	Pqe8Q61nRKoVAG5t;


desc
@@


1.2
log
@Changed the hello example to use the new callback interface.
@
text
@CHARMC=../../../../bin/charmc $(OPTS)

OBJS = hello.o helloCUDA.o

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

LD_LIBS += -lcuda -lcudart -lGL -lGLU -lcutil

export LD_RUN_PATH = /usr/local/cuda/lib

all: hello

hello: $(OBJS)
	$(CHARMC) -language charm++ -o hello $(OBJS) $(LD_LIBS)

hello.decl.h: hello.ci
	$(CHARMC)  hello.ci

clean:
	rm -f *.decl.h *.def.h conv-host *.o wr.h hello charmrun

hello.o: hello.C hello.decl.h
	$(CHARMC) -g -c hello.C

helloCUDA.o: helloCUDA.cu
	cp ../../../../src/arch/cuda/hybridAPI/wr.h .
	$(NVCC) -g $(NVCC_FLAGS) $(NVCC_INC) helloCUDA.cu

test: all
	./charmrun hello +p4 10

bgtest: all
	./charmrun hello +p4 10 +x2 +y2 +z1
@


1.1
log
@updated CUDA hybridAPI and added a CUDA hello example
@
text
@d5 1
a5 1
NVCC = /usr/local/cuda/bin/nvcc
d9 1
a9 1
LDLIBS += -lcuda -lcudart -lGL -lGLU -lcutil
@

