Modified CUDA hello example to use current version of GPU Manager.
[charm.git] / examples / charm++ / cuda / hello / Makefile
index 071e8dd0d476c35b6c5c8440b29af50a23cf0749..dca7a6081c0b57f26108a1f35b3755f58fa33fa6 100644 (file)
@@ -4,11 +4,9 @@ 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
+NVCC_INC = -I/usr/local/cuda/include 
+CHARMINC = -I../../../../include
+LD_LIBS += -lcuda -lcudart 
 
 all: hello
 
@@ -19,14 +17,13 @@ hello.decl.h: hello.ci
        $(CHARMC)  hello.ci
 
 clean:
-       rm -f *.decl.h *.def.h conv-host *.o wr.h hello charmrun
+       rm -f *.decl.h *.def.h conv-host *.o hello charmrun
 
 hello.o: hello.C hello.decl.h
-       $(CHARMC) -g -c hello.C
+       $(CHARMC) -c hello.C
 
 helloCUDA.o: helloCUDA.cu
-       cp ../../../../src/arch/cuda/hybridAPI/wr.h .
-       $(NVCC) -g $(NVCC_FLAGS) $(NVCC_INC) helloCUDA.cu
+       $(NVCC) $(NVCC_FLAGS) $(NVCC_INC) $(CHARMINC) helloCUDA.cu
 
 test: all
        ./charmrun hello +p4 10