Skip to content

Commit

Permalink
Updating makefiles to dump line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsighter committed Feb 7, 2015
1 parent 1c5a8e4 commit 6c5f9b4
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
12 changes: 6 additions & 6 deletions examples/DME/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ DYNAMICF_OUTPUTS:= $(FERMI_INPUTS:.cu=_dynamic.ptx)
DYNAMICK_OUTPUTS:= $(KEPLER_INPUTS:.cu=_dynamic.ptx)

%_fermi_small.ptx : %_fermi.cu
nvcc -o $@ -ptx -m64 -arch=compute_20 -DTOTAL_STEPS=4 $<
nvcc -o $@ -ptx -lineinfo -m64 -arch=compute_20 -DTOTAL_STEPS=4 $<

%_fermi_dynamic.ptx : %_fermi.cu
nvcc -o $@ -ptx -m64 -arch=compute_20 -DDYNAMIC $<
nvcc -o $@ -ptx -lineinfo -m64 -arch=compute_20 -DDYNAMIC $<

%_fermi.ptx : %_fermi.cu
nvcc -o $@ -ptx -m64 -arch=compute_20 $<
nvcc -o $@ -ptx -lineinfo -m64 -arch=compute_20 $<

%_kepler_small.ptx : %_kepler.cu
nvcc -o $@ -ptx -m64 -arch=compute_35 -DTOTAL_STEPS=4 $<
nvcc -o $@ -ptx -lineinfo -m64 -arch=compute_35 -DTOTAL_STEPS=4 $<

%_kepler_dynamic.ptx : %_kepler.cu
nvcc -o $@ -ptx -m64 -arch=compute_35 -DDYNAMIC $<
nvcc -o $@ -ptx -lineinfo -m64 -arch=compute_35 -DDYNAMIC $<

%_kepler.ptx : %_kepler.cu
nvcc -o $@ -ptx -m64 -arch=compute_35 $<
nvcc -o $@ -ptx -lineinfo -m64 -arch=compute_35 $<


.PHONY: all
Expand Down
12 changes: 6 additions & 6 deletions examples/Heptane/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ DYNAMICF_OUTPUTS:= $(FERMI_INPUTS:.cu=_dynamic.ptx)
DYNAMICK_OUTPUTS:= $(KEPLER_INPUTS:.cu=_dynamic.ptx)

%_fermi_small.ptx : %_fermi.cu
nvcc -o $@ -ptx -m64 -arch=compute_20 -DTOTAL_STEPS=4 $<
nvcc -o $@ -ptx -m64 -lineinfo -arch=compute_20 -DTOTAL_STEPS=4 $<

%_fermi_dynamic.ptx : %_fermi.cu
nvcc -o $@ -ptx -m64 -arch=compute_20 -DDYNAMIC $<
nvcc -o $@ -ptx -m64 -lineinfo -arch=compute_20 -DDYNAMIC $<

%_fermi.ptx : %_fermi.cu
nvcc -o $@ -ptx -m64 -arch=compute_20 $<
nvcc -o $@ -ptx -m64 -lineinfo -arch=compute_20 $<

%_kepler_small.ptx : %_kepler.cu
nvcc -o $@ -ptx -m64 -arch=compute_35 -DTOTAL_STEPS=4 $<
nvcc -o $@ -ptx -m64 -lineinfo -arch=compute_35 -DTOTAL_STEPS=4 $<

%_kepler_dynamic.ptx : %_kepler.cu
nvcc -o $@ -ptx -m64 -arch=compute_35 -DDYNAMIC $<
nvcc -o $@ -ptx -m64 -lineinfo -arch=compute_35 -DDYNAMIC $<

%_kepler.ptx : %_kepler.cu
nvcc -o $@ -ptx -m64 -arch=compute_35 $<
nvcc -o $@ -ptx -m64 -lineinfo -arch=compute_35 $<


.PHONY: all
Expand Down
12 changes: 6 additions & 6 deletions examples/PRF/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ DYNAMICF_OUTPUTS:= $(FERMI_INPUTS:.cu=_dynamic.ptx)
DYNAMICK_OUTPUTS:= $(KEPLER_INPUTS:.cu=_dynamic.ptx)

%_fermi_small.ptx : %_fermi.cu
nvcc -o $@ -ptx -m64 -arch=compute_20 -DTOTAL_STEPS=4 $<
nvcc -o $@ -ptx -m64 -lineinfo -arch=compute_20 -DTOTAL_STEPS=4 $<

%_fermi_dynamic.ptx : %_fermi.cu
nvcc -o $@ -ptx -m64 -arch=compute_20 -DDYNAMIC $<
nvcc -o $@ -ptx -m64 -lineinfo -arch=compute_20 -DDYNAMIC $<

%_fermi.ptx : %_fermi.cu
nvcc -o $@ -ptx -m64 -arch=compute_20 $<
nvcc -o $@ -ptx -m64 -lineinfo -arch=compute_20 $<

%_kepler_small.ptx : %_kepler.cu
nvcc -o $@ -ptx -m64 -arch=compute_35 -DTOTAL_STEPS=4 $<
nvcc -o $@ -ptx -m64 -lineinfo -arch=compute_35 -DTOTAL_STEPS=4 $<

%_kepler_dynamic.ptx : %_kepler.cu
nvcc -o $@ -ptx -m64 -arch=compute_35 -DDYNAMIC $<
nvcc -o $@ -ptx -m64 -lineinfo -arch=compute_35 -DDYNAMIC $<

%_kepler.ptx : %_kepler.cu
nvcc -o $@ -ptx -m64 -arch=compute_35 $<
nvcc -o $@ -ptx -m64 -lineinfo -arch=compute_35 $<


.PHONY: all
Expand Down
6 changes: 3 additions & 3 deletions examples/RTM/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ SMALL_OUTPUTS := $(INPUTS:.cu=_small.ptx)
DYNAMIC_OUTPUTS := $(INPUTS:.cu=_dynamic.ptx)

%_small.ptx : %.cu
nvcc -o $@ -ptx -m64 -arch=compute_35 -DRTM_ELMTS=16 $<
nvcc -o $@ -ptx -lineinfo -m64 -arch=compute_35 -DRTM_ELMTS=16 $<

%_dynamic.ptx : %.cu
nvcc -o $@ -ptx -m64 -arch=compute_35 -DDYNAMIC $<
nvcc -o $@ -ptx -lineinfo -m64 -arch=compute_35 -DDYNAMIC $<

%.ptx : %.cu
nvcc -o $@ -ptx -m64 -arch=compute_35 $<
nvcc -o $@ -ptx -lineinfo -m64 -arch=compute_35 $<

.PHONY: all
all: normal
Expand Down
4 changes: 2 additions & 2 deletions examples/saxpy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ OUTPUTS := $(INPUTS:.cu=.ptx)
SMALL_OUTPUTS := $(INPUTS:.cu=_small.ptx)

%_small.ptx : %.cu
nvcc -o $@ -ptx -m64 -arch=compute_20 -DNUM_ITERS=8 $<
nvcc -o $@ -ptx -lineinfo -m64 -arch=compute_20 -DNUM_ITERS=8 $<

%.ptx : %.cu
nvcc -o $@ -ptx -m64 -arch=compute_20 $<
nvcc -o $@ -ptx -lineinfo -m64 -arch=compute_20 $<

.PHONY: all
all: normal
Expand Down
4 changes: 2 additions & 2 deletions examples/sgemv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ OUTPUTS := $(INPUTS:.cu=.ptx)
SMALL_OUTPUTS := $(INPUTS:.cu=_small.ptx)

%_small.ptx : %.cu
nvcc -o $@ -ptx -m64 -arch=compute_20 -DSGEMV_ITERS=8 $<
nvcc -o $@ -ptx -lineinfo -m64 -arch=compute_20 -DSGEMV_ITERS=8 $<

%.ptx : %.cu
nvcc -o $@ -ptx -m64 -arch=compute_20 $<
nvcc -o $@ -ptx -lineinfo -m64 -arch=compute_20 $<

.PHONY: all
all: normal
Expand Down

0 comments on commit 6c5f9b4

Please sign in to comment.