Skip to content

Commit 9c83626

Browse files
committed
small changes for v1.0.7
1 parent 414cc61 commit 9c83626

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# PFP-Doc Change Log
22

3-
## v1.0.6 - latest
3+
## v1.0.7 - latest
4+
- Updated compilation to avoid specific architecture flags
5+
6+
## v1.0.6
47
- Added another method to trim the construction queue in scenarios such as large block of suffixes that
58
begin with Ns or any character that is not a usual DNA/RNA character.
69

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ endif()
5454
add_subdirectory(include)
5555
add_subdirectory(src)
5656

57-
install(TARGETS pfp_doc pfp_doc64 DESTINATION ${PROJECT_BINARY_DIR})
57+
install(TARGETS pfp_doc64 DESTINATION ${PROJECT_BINARY_DIR})
5858
install(TARGETS newscanNT.x pscan.x newscan.x
5959
DESTINATION ${PROJECT_BINARY_DIR}/bin)

include/pfp_doc.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,21 @@
1919
std::fprintf(stderr, "\n\n"); std::exit(1);} while(0)
2020
#define ASSERT(condition, msg) do {if (!condition){std::fprintf(stderr, "\n\n\033[31mAssertion Failed:\033[m %s\n\n", msg); \
2121
std::exit(1);}} while(0)
22-
#define STATUS_LOG(x, ...) do {std::fprintf(stderr, "[%s] ", x); std::fprintf(stderr, __VA_ARGS__ ); \
22+
#define STATUS_LOG(x, ...) do {std::fprintf(stderr, "\033[32m[%s] \033[0m", x); std::fprintf(stderr, __VA_ARGS__ ); \
2323
std::fprintf(stderr, " ... ");} while(0)
2424
#define DONE_LOG(x) do {auto sec = std::chrono::duration<double>(x); \
2525
std::fprintf(stderr, "done. (%.3f sec)\n", sec.count());} while(0)
26-
#define FORCE_LOG(func, ...) do {std::fprintf(stderr, "[%s] ", func); \
26+
#define FORCE_LOG(func, ...) do {std::fprintf(stderr, "\033[32m[%s] \033[m", func); \
2727
std::fprintf(stderr, __VA_ARGS__); \
2828
std::fprintf(stderr, "\n");} while (0)
2929

3030
// Defintions
31-
#define PFPDOC_VERSION "1.0.6"
31+
#define PFPDOC_VERSION "1.0.7"
3232

3333
#define DOCWIDTH 2
3434
#define MAXQUEUELENGTH 1000000
3535
#define MAXLCPVALUE 65535 // 2^16 - 1
3636
#define MAXDOCS 65535
37-
//#define NUMCOLSFORTABLE 7
3837

3938
#define AVX2_PRESENT __AVX2__
4039
#define AVX512BW_PRESENT __AVX512BW__

src/CMakeLists.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
add_executable(pfp_doc pfp_doc.cpp ref_builder.cpp)
2-
target_link_libraries(pfp_doc common pfp gsacak sdsl ri "-fopenmp")
3-
target_include_directories(pfp_doc PUBLIC "../include/")
4-
target_compile_options(pfp_doc PUBLIC "-std=c++17" "-fopenmp" "-mavx2" "-mavx512bw" "-mavx512f"
5-
"-mavx512cd" "-mavx512dq" "-mavx512vl" "-mavx512ifma" "-mavx512vbmi" "-mavx512pf" )
1+
# add_executable(pfp_doc pfp_doc.cpp ref_builder.cpp)
2+
# target_link_libraries(pfp_doc common pfp gsacak sdsl ri "-fopenmp")
3+
# target_include_directories(pfp_doc PUBLIC "../include/")
4+
# target_compile_options(pfp_doc PUBLIC "-std=c++17" "-fopenmp" "-mavx2" "-mavx512bw" "-mavx512f"
5+
# "-mavx512cd" "-mavx512dq" "-mavx512vl" "-mavx512ifma" "-mavx512vbmi" "-mavx512pf" )
66

77
add_executable(pfp_doc64 pfp_doc.cpp ref_builder.cpp)
88
target_link_libraries(pfp_doc64 common pfp gsacak64 sdsl ri "-fopenmp")
99
target_include_directories(pfp_doc64 PUBLIC "../include/")
10-
target_compile_options(pfp_doc64 PUBLIC "-std=c++17" "-fopenmp" "-DM64" "-mavx2" "-mavx512bw" "-mavx512f"
11-
"-mavx512cd" "-mavx512dq" "-mavx512vl" "-mavx512ifma" "-mavx512vbmi" "-mavx512pf" )
10+
target_compile_options(pfp_doc64 PUBLIC "-std=c++17" "-fopenmp" "-DM64" "-march=native")
1211

1312

1413

src/pfp_doc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ int pfpdoc_usage() {
367367

368368
int main(int argc, char** argv) {
369369
/* main method for pfp_doc */
370-
std::fprintf(stderr, "\033[32m\npfp-doc version: %s\033[m\n", PFPDOC_VERSION);
370+
std::fprintf(stderr, "\033[1m\033[31m\npfp-doc version: %s\033[m\033[0m\n", PFPDOC_VERSION);
371371

372372
if (argc > 1) {
373373
if (std::strcmp(argv[1], "build") == 0)

0 commit comments

Comments
 (0)