Skip to content

Commit

Permalink
Merge pull request #61 from nabajour/master
Browse files Browse the repository at this point in the history
Compile cleanup
  • Loading branch information
deitrr authored Nov 30, 2018
2 parents 645a094 + d70e946 commit 8c0a396
Show file tree
Hide file tree
Showing 19 changed files with 11 additions and 19,573 deletions.
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ obj_tests_cmdargs := cmdargs_test.o cmdargs.o
obj_tests_config := config_test.o config_file.o
obj_tests_storage := storage_test.o storage.o log_writer.o directories.o
obj_tests_directories := directories_test.o directories.o log_writer.o
obj_tests_gen_init := gen_init.o storage.o grid.o simulation_setup.o
obj_tests_reduction_add := reduction_add_test.o reduction_add.o
obj_tests_gen_init := gen_init.o storage.o grid.o simulation_setup.o directories.o log_writer.o
obj_tests_reduction_add := reduction_add_test.o reduction_add.o directories.o log_writer.o



Expand All @@ -77,7 +77,7 @@ ifeq ($(COMP), nvcc)
CC_comp_flag = -dc
ccbin :=
# ccbin := -ccbin g++-5
CDB = none
CDB := none
arch := -arch sm_$(SM)
dependencies_flags = --generate-dependencies

Expand Down Expand Up @@ -325,27 +325,27 @@ tests: ${BINDIR}/${TESTDIR}/cmdargs_test ${BINDIR}/${TESTDIR}/config_test ${BIND

$(BINDIR)/$(TESTDIR)/cmdargs_test: $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_cmdargs)) | $(BINDIR)/${OUTPUTDIR} $(BINDIR)/$(TESTDIR) $(BINDIR) $(RESDIR)
@echo $(YELLOW)creating $@ $(END)
$(CC) $(CDB) $(arch) $(link_flags) -o $(BINDIR)/$(TESTDIR)/cmdargs_test $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_cmdargs))
$(CC) $(arch) $(link_flags) -o $(BINDIR)/$(TESTDIR)/cmdargs_test $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_cmdargs))

$(BINDIR)/$(TESTDIR)/config_test: $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_config)) | $(BINDIR)/${OUTPUTDIR} $(BINDIR)/$(TESTDIR) $(BINDIR) $(RESDIR)
@echo $(YELLOW)creating $@ $(END)
$(CC) $(CDB) $(arch) $(link_flags) -o $(BINDIR)/$(TESTDIR)/config_test $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_config))
$(CC) $(arch) $(link_flags) -o $(BINDIR)/$(TESTDIR)/config_test $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_config))

$(BINDIR)/$(TESTDIR)/directories_test: $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_directories)) | $(BINDIR)/${OUTPUTDIR} $(BINDIR)/$(TESTDIR) $(BINDIR) $(RESDIR)
@echo $(YELLOW)creating $@ $(END)
$(CC) $(CDB) $(arch) $(link_flags) -o $(BINDIR)/$(TESTDIR)/directories_test $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_directories))
$(CC) $(arch) $(link_flags) -o $(BINDIR)/$(TESTDIR)/directories_test $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_directories))

$(BINDIR)/$(TESTDIR)/storage_test: $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_storage)) | $(BINDIR)/${OUTPUTDIR} $(BINDIR)/$(TESTDIR) $(BINDIR) $(RESDIR)
@echo $(YELLOW)creating $@ $(END)
$(CC) $(CDB) $(arch) $(link_flags) -o $(BINDIR)/$(TESTDIR)/storage_test $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_storage)) $(h5libdir) $(h5libs)
$(CC) $(arch) $(link_flags) -o $(BINDIR)/$(TESTDIR)/storage_test $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_storage)) $(h5libdir) $(h5libs)

$(BINDIR)/$(TESTDIR)/gen_init: $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_gen_init)) | $(BINDIR)/${OUTPUTDIR} $(BINDIR)/$(TESTDIR) $(BINDIR) $(RESDIR)
@echo $(YELLOW)creating $@ $(END)
$(CC) $(CDB) $(arch) $(link_flags) -o $(BINDIR)/$(TESTDIR)/gen_init $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_gen_init)) $(h5libdir) $(h5libs)
$(CC) $(arch) $(link_flags) -o $(BINDIR)/$(TESTDIR)/gen_init $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_gen_init)) $(h5libdir) $(h5libs)

$(BINDIR)/$(TESTDIR)/reduction_add_test: $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_reduction_add)) | $(BINDIR)/${OUTPUTDIR} $(BINDIR)/$(TESTDIR) $(BINDIR) $(RESDIR)
@echo $(YELLOW)creating $@ $(END)
$(CC) $(CDB) $(arch) $(link_flags) -o $(BINDIR)/$(TESTDIR)/reduction_add_test $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_reduction_add)) $(h5libdir) $(h5libs)
$(CC) $(arch) $(link_flags) -o $(BINDIR)/$(TESTDIR)/reduction_add_test $(addprefix $(OBJDIR)/$(OUTPUTDIR)/,$(obj_tests_reduction_add)) $(h5libdir) $(h5libs)

#######################################################################
# Cleanup
Expand Down
283 changes: 0 additions & 283 deletions programming_guide.md

This file was deleted.

2 changes: 2 additions & 0 deletions src/headers/log_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ class log
template <typename ... Args>
static void printf(Args... args) {
// Stop GCC from complaining about format string it can't analyse
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-security"
if (pFILE != nullptr)
fprintf(pFILE, args...);
Expand All @@ -133,6 +134,7 @@ class log
template <typename ... Args>
static void printf_logonly(Args... args) {
// Stop GCC from complaining about format string it can't analyse
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-security"
if (pFILE != nullptr)
fprintf(pFILE, args...);
Expand Down
Loading

0 comments on commit 8c0a396

Please sign in to comment.