A V0 implementation tested against matlab
Supports: - HDF5 file load and store - Precision timing of the process to stdout - logging (verbose mode) to stdout - Command line arguments and help
This commit is contained in:
+16
-2
@@ -26,7 +26,11 @@ TARGET := knnsearch
|
||||
SRC_DIR_LIST := src
|
||||
# Include directories list(space seperated). Makefile-relative path.
|
||||
INC_DIR_LIST := inc \
|
||||
src
|
||||
src \
|
||||
Libs/matrix/include/ \
|
||||
/usr/include/hdf5/serial/
|
||||
# Libs/MATLAB/R2019b/include/ \
|
||||
|
||||
# Exclude files list(space seperated). Filenames only.
|
||||
# EXC_FILE_LIST := bad.cpp old.cpp
|
||||
|
||||
@@ -49,7 +53,11 @@ PRE_DEFS :=
|
||||
|
||||
# ============== Linker settings ==============
|
||||
# Linker flags (example: -pthread -lm)
|
||||
LDFLAGS := -pthread -lopenblas
|
||||
LDFLAGS := -pthread -lopenblas \
|
||||
-L/usr/lib/x86_64-linux-gnu/hdf5/serial -lhdf5
|
||||
# -LLibs/MATLAB/R2019b/bin/ -lmat -lmx -Wl,-rpath,Libs/MATLAB/R2019b/bin/ \
|
||||
# -Wl,-rpath,Libs/unwind/bin/
|
||||
|
||||
# Map output file
|
||||
MAP_FILE := output.map
|
||||
MAP_FLAG := -Xlinker -Map=$(BUILD_DIR)/$(MAP_FILE)
|
||||
@@ -184,6 +192,12 @@ local_v0: TARGET := local_v0
|
||||
local_v0: $(BUILD_DIR)/$(TARGET)
|
||||
cp $(BUILD_DIR)/$(TARGET) out/$(TARGET)
|
||||
|
||||
local_v0_opt: CFLAGS := $(REL_CFLAGS) -DCODE_VERSION=0
|
||||
local_v0_opt: CXXFLAGS := $(REL_CXXFLAGS) -DCODE_VERSION=0
|
||||
local_v0_opt: TARGET := local_v0_opt
|
||||
local_v0_opt: $(BUILD_DIR)/$(TARGET)
|
||||
cp $(BUILD_DIR)/$(TARGET) out/$(TARGET)
|
||||
|
||||
local_v1: CFLAGS := $(DEB_CFLAGS) -DCODE_VERSION=4
|
||||
local_v1: CXXFLAGS := $(DEB_CXXFLAGS) -DCODE_VERSION=4
|
||||
local_v1: TARGET := local_v1
|
||||
|
||||
Reference in New Issue
Block a user