Skip to content

Commit

Permalink
Resolve.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnbaker committed Jan 19, 2019
2 parents 11921d0 + 2c49b40 commit 65aea92
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
16 changes: 14 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CLHASH_CHECKOUT = "&& git checkout master"
WARNINGS=-Wall -Wextra -Wno-char-subscripts \
-Wpointer-arith -Wwrite-strings -Wdisabled-optimization \
-Wformat -Wcast-align -Wno-unused-function -Wno-unused-parameter \
-pedantic -Wunused-variable -Wno-attributes -Wno-pedantic\
-pedantic -Wunused-variable -Wno-attributes -Wno-pedantic \
# -Wduplicated-branches -Wdangling-else # -Wsuggest-attribute=malloc # -Wconversion
EXTRA?=
INCPLUS?=
Expand Down Expand Up @@ -106,7 +106,19 @@ STATIC_GOMP?=$(shell $(CXX) --print-file-name=libgomp.a)

%: src/%.cpp $(ALL_ZOBJS) $(DEPS)
$(CXX) $(CXXFLAGS) $(DBG) $(INCLUDE) $(LD) $(ALL_ZOBJS) -DNDEBUG $< -o $@ $(ZCOMPILE_FLAGS) $(LIB)
%_s: src/%.cpp $(ALL_ZOBJS) $(DEPS) bonsai/zlib/libz.a

%_256: src/%.cpp $(ALL_ZOBJS) $(DEPS)
$(CXX) $(CXXFLAGS) $(DBG) $(INCLUDE) $(LD) $(ALL_ZOBJS) -mno-avx512dq -mno-avx512vl -mno-avx512bw -mavx2 -msse4.1 -msse2 -DNDEBUG $< -o $@ $(ZCOMPILE_FLAGS) $(LIB)

%_512: src/%.cpp $(ALL_ZOBJS) $(DEPS)
$(CXX) $(CXXFLAGS) $(DBG) $(INCLUDE) $(LD) $(ALL_ZOBJS) -mavx512dq -mavx512vl -mavx2 -msse4.1 -msse2 -DNDEBUG $< -o $@ $(ZCOMPILE_FLAGS) $(LIB)

%_512bw: src/%.cpp $(ALL_ZOBJS) $(DEPS)
$(CXX) $(CXXFLAGS) $(DBG) $(INCLUDE) $(LD) $(ALL_ZOBJS) -mavx512dq -mavx512vl -mavx512bw -mavx2 -msse4.1 -msse2 -DNDEBUG $< -o $@ $(ZCOMPILE_FLAGS) $(LIB)

%_128: src/%.cpp $(ALL_ZOBJS) $(DEPS)
$(CXX) $(CXXFLAGS) $(DBG) $(INCLUDE) $(LD) $(ALL_ZOBJS) -mno-avx512dq -mno-avx512vl -mno-avx512bw -mno-avx2 -msse2 -DNDEBUG $< -o $@ $(ZCOMPILE_FLAGS) $(LIB)
%_s: src/%.cpp $(ALL_ZOBJS) $(DEPS)
ln -sf $(STATIC_GOMP) && \
$(CXX) $(CXXFLAGS) $(DBG) $(INCLUDE) $(LD) $(ALL_ZOBJS) -static-libstdc++ -static-libgcc bonsai/zlib/libz.a -DNDEBUG $< -o $@ $(ZCOMPILE_FLAGS) $(LIB)
%_s128: src/%.cpp $(ALL_ZOBJS) $(DEPS) bonsai/zlib/libz.a
Expand Down
2 changes: 1 addition & 1 deletion bonsai
6 changes: 4 additions & 2 deletions src/dashing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,10 @@ int dist_main(int argc, char *argv[]) {
for(size_t i = 0; i < hlls.size(); ++i) {
const std::string &path(inpaths[i]);
static const std::string suf = ".gz";
if(presketched_only) hlls[i].read(path);
else {
if(presketched_only) {
hlls[i].read(path);
hlls[i].set_jestim(jestim);
} else {
const std::string fpath(hll_fname(path.data(), sketch_size, wsz, k, sp.c_, spacing, suffix, prefix));
const bool isf = isfile(fpath);
if(cache_sketch && isf) {
Expand Down

0 comments on commit 65aea92

Please sign in to comment.