diff options
author | Nathan Luehr <nluehr@nvidia.com> | 2015-12-19 00:36:20 +0300 |
---|---|---|
committer | Nathan Luehr <nluehr@nvidia.com> | 2015-12-19 00:36:20 +0300 |
commit | eb2d869f713071657c0febe60a62d0c1e3bccbbd (patch) | |
tree | ab0ac8b2bb0c2d62c05eb55eaac0b4c16dd8603c /Makefile | |
parent | a4de6016f84a2916e9d02b480fac91beec8e80f3 (diff) | |
parent | b5400c54dfd519b51cf72240dcc670d5f0b3cd2e (diff) |
Merge pull request #5 from lukeyeager/tests-nvml
Don't link tests with NVML
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -111,8 +111,8 @@ test : lib $(TESTBINS) $(TSTDIR)/% : src/%.cu lib @printf "Building %-25s > %-24s\n" $< $@ @mkdir -p $(TSTDIR) - @$(NVCC) -Ibuild/include $(CPPFLAGS) $(NVCUFLAGS) --compiler-options "$(CXXFLAGS)" -o $@ $< -Lbuild/lib $(LIBLINK) $(LDFLAGS) -lcuda -lcurand -lnvToolsExt -lnvidia-ml - @$(NVCC) -M -Ibuild/include $(CPPFLAGS) $(NVCUFLAGS) --compiler-options "$(CXXFLAGS)" $< -Lbuild/lib $(LIBLINK) $(LDFLAGS) -lcuda -lcurand -lnvToolsExt -lnvidia-ml > $(@:%=%.d.tmp) + @$(NVCC) -Ibuild/include $(CPPFLAGS) $(NVCUFLAGS) --compiler-options "$(CXXFLAGS)" -o $@ $< -Lbuild/lib $(LIBLINK) $(LDFLAGS) -lcuda -lcurand -lnvToolsExt + @$(NVCC) -M -Ibuild/include $(CPPFLAGS) $(NVCUFLAGS) --compiler-options "$(CXXFLAGS)" $< -Lbuild/lib $(LIBLINK) $(LDFLAGS) -lcuda -lcurand -lnvToolsExt > $(@:%=%.d.tmp) @sed "0,/^.*:/s//$(subst /,\/,$@):/" $(@:%=%.d.tmp) > $(@:%=%.d) @sed -e 's/.*://' -e 's/\\$$//' < $(@:%=%.d.tmp) | fmt -1 | \ sed -e 's/^ *//' -e 's/$$/:/' >> $(@:%=%.d) |