Skip to content

Commit

Permalink
Merge pull request #12 from noahares/feat_model_impr_pr
Browse files Browse the repository at this point in the history
Model corrections, runtime improvements and highway heuristics
  • Loading branch information
noahares authored Oct 3, 2024
2 parents ab7bc8a + c7ce6bb commit 2fc2dd5
Show file tree
Hide file tree
Showing 27 changed files with 1,678 additions and 1,704 deletions.
7 changes: 7 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html
---
BasedOnStyle: LLVM
Language: Cpp
Standard: Cpp11

UseTab: Never
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "ext/GeneRaxCore"]
path = ext/GeneRaxCore
url = https://github.com/BenoitMorel/GeneRaxCore.git
url = https://github.com/noahares/GeneRaxCore.git
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ project(AleRaxProject

set(ALERAX_BUILD_AS_LIBRARY OFF CACHE BOOL "Build AleRax as shared library (instead of stand-alone executable)")

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")

if(ALERAX_BUILD_AS_LIBRARY)
Expand Down
14 changes: 7 additions & 7 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra")

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

macro(add_program program_name program_sources)
if (ALERAX_BUILD_AS_LIBRARY)
Expand All @@ -9,7 +10,7 @@ macro(add_program program_name program_sources)
add_executable(${program_name} ${program_sources})
endif()
target_sources(${program_name} PRIVATE ${program_sources})
target_link_libraries(${program_name}
target_link_libraries(${program_name}
PRIVATE
generaxcore
${CORAX_LIB_TARGET}
Expand All @@ -25,11 +26,11 @@ macro(add_program program_name program_sources)
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
set_target_properties(${program_name}
set_target_properties(${program_name}
PROPERTIES
COMPILE_FLAGS "-g ${MPI_COMPILE_FLAGS}"
)
set_target_properties(${program_name}
set_target_properties(${program_name}
PROPERTIES
LINK_FLAGS "${MPI_LINK_FLAGS}"
)
Expand All @@ -45,7 +46,7 @@ macro(add_program_corax program_name program_sources)
else()
add_executable(${program_name} ${program_sources})
endif()
target_link_libraries(${program_name}
target_link_libraries(${program_name}
generaxcore
${CORAX_LIB_TARGET}
${MPI_LIBRARIES}
Expand All @@ -60,11 +61,11 @@ macro(add_program_corax program_name program_sources)
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
set_target_properties(${program_name}
set_target_properties(${program_name}
PROPERTIES
COMPILE_FLAGS "-g ${MPI_COMPILE_FLAGS}"
)
set_target_properties(${program_name}
set_target_properties(${program_name}
PROPERTIES
LINK_FLAGS "${MPI_LINK_FLAGS}"
)
Expand All @@ -78,4 +79,3 @@ endmacro()

add_subdirectory(tools)
add_subdirectory(ale)

Loading

0 comments on commit 2fc2dd5

Please sign in to comment.