/normxcorr/trunk

To get this branch, use:
bzr branch http://suren.me/webbzr/normxcorr/trunk

« back to all changes in this revision

Viewing changes to cuda/Makefile

  • Committer: Suren A. Chilingaryan
  • Date: 2009-12-02 05:08:22 UTC
  • Revision ID: csa@dside.dyndns.org-20091202050822-n6ouznm1zp2n2i5l
Instead of transfer compute local sums and denormals on board

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# with the CUDA include files.
3
3
CUDAHOME    = /opt/cuda
4
4
INCLUDEDIR  = -I$(CUDAHOME)/include
5
 
INCLUDELIB  = -L$(CUDAHOME)/lib -lcufft -lcublas -Wl,-rpath,$(CUDAHOME)/lib
 
5
INCLUDELIB  = -L$(CUDAHOME)/lib -lcufft -lcublas -lcudpp64 -Wl,-rpath,$(CUDAHOME)/lib
6
6
CFLAGS      = -fPIC -D_GNU_SOURCE -pthread -fexceptions -Wall
7
7
COPTIMFLAGS = -O3 -funroll-loops -msse2
8
8
 
 
9
OBJECTS     = local_sum.cu
 
10
HEADERS     = normxcorr_hw.h normxcorr_hw_kernel.cu local_sum_kernel.cu
 
11
 
9
12
# Define installation location for MATLAB.
10
13
export MATLAB = /opt/Matlab
11
14
#export MATLAB = /Applications/MATLAB_R2007b
22
25
 
23
26
all: $(MEXFILES:.mex=$(MEXEXT))
24
27
 
 
28
normxcorr_hw.mexa64: $(OBJECTS) $(HEADERS)
 
29
 
 
30
 
25
31
clean:
26
32
        rm -f $(MEXFILES:.mex=$(MEXEXT)) $(MEXFILES:.mex=.linkinfo)
27
33
 
32
38
        $(INCLUDEDIR) $(INCLUDELIB)
33
39
 
34
40
.cu.mexglx:
35
 
        $(NVMEX) -f nvopts.sh $< $(INCLUDEDIR) $(INCLUDELIB)
 
41
        $(NVMEX) -f nvopts.sh $< $(OBJECTS) $(INCLUDEDIR) $(INCLUDELIB)
36
42
 
37
43
.c.mexa64:
38
44
        $(MEX) CFLAGS='$(CFLAGS)' COPTIMFLAGS='$(COPTIMFLAGS)' $< \
39
45
        $(INCLUDEDIR) $(INCLUDELIB)
40
46
 
41
 
.cu.mexa64:
42
 
        $(NVMEX) -v -f nvopts.sh $< $(INCLUDEDIR) $(INCLUDELIB)
 
47
.cu.mexa64: 
 
48
        $(NVMEX) -v -f nvopts.sh $< $(OBJECTS) $(INCLUDEDIR) $(INCLUDELIB)
43
49
 
44
50
.c.mexmaci:
45
51
        $(MEX) CFLAGS='$(CFLAGS)' COPTIMFLAGS='$(COPTIMFLAGS)' $< \
46
52
        $(INCLUDEDIR) $(INCLUDELIB)
47
53
 
48
 
.cu.mexmaci:
49
 
        $(NVMEX) -f nvopts.sh $< $(INCLUDEDIR) $(INCLUDELIB)
 
54
.cu.mexmaci: 
 
55
        $(NVMEX) -f nvopts.sh $< $(OBJECTS) $(INCLUDEDIR) $(INCLUDELIB)