-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix cmake to compile synthesis benchmark; fix compile issues in bench…
…mark; remove the restart mains and allow the regular mains to get a restart parameter
- Loading branch information
Showing
9 changed files
with
89 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,110 @@ | ||
find_package(MPI) | ||
|
||
find_path(_veloc_root | ||
NAMES include/veloc.h | ||
HINTS $ENV{VeloC_ROOT} ${VeloC_ROOT} ${VeloC_DIR} | ||
) | ||
NAMES include/veloc.h | ||
HINTS $ENV{VeloC_ROOT} ${VeloC_ROOT} ${VeloC_DIR} | ||
) | ||
|
||
find_library(_veloc_client_lib | ||
#NAMES libveloc.a veloc libveloc-client.so | ||
NAMES libveloc-client.a veloc libveloc-client.so | ||
HINTS ${_veloc_root}/lib ${_veloc_root}/lib64) | ||
NAMES libveloc.a veloc libveloc-client.so libveloc-client.dylib | ||
HINTS ${_veloc_root}/lib ${_veloc_root}/lib64) | ||
|
||
find_library(_veloc_module_lib | ||
#NAMES libveloc.a veloc libveloc-modules.so | ||
NAMES libveloc-modules.a veloc libveloc-modules.so | ||
HINTS ${_veloc_root}/lib ${_veloc_root}/lib64) | ||
NAMES libveloc.a veloc libveloc-modules.so libveloc-modules.dylib | ||
HINTS ${_veloc_root}/lib ${_veloc_root}/lib64) | ||
|
||
find_library(_veloc_axl | ||
NAMES libaxl.a axl | ||
HINTS ${_veloc_root}/lib ${_veloc_root}/lib64) | ||
NAMES libaxl.a axl | ||
HINTS ${_veloc_root}/lib ${_veloc_root}/lib64) | ||
|
||
find_library(_veloc_er | ||
NAMES liber.a er | ||
HINTS ${_veloc_root}/lib ${_veloc_root}/lib64) | ||
NAMES liber.a er | ||
HINTS ${_veloc_root}/lib ${_veloc_root}/lib64) | ||
|
||
find_library(_veloc_rankstr | ||
NAMES librankstr.a rankstr | ||
HINTS ${_veloc_root}/lib ${_veloc_root}/lib64) | ||
NAMES librankstr.a rankstr | ||
HINTS ${_veloc_root}/lib ${_veloc_root}/lib64) | ||
|
||
find_library(_veloc_kvtree | ||
NAMES libkvtree.a kvtree | ||
HINTS ${_veloc_root}/lib ${_veloc_root}/lib64) | ||
NAMES libkvtree.a kvtree | ||
HINTS ${_veloc_root}/lib ${_veloc_root}/lib64) | ||
|
||
find_path(_veloc_include_dir | ||
NAMES veloc.h | ||
HINTS ${_veloc_root}/include) | ||
NAMES veloc.h | ||
HINTS ${_veloc_root}/include) | ||
|
||
if ((NOT ${_veloc_root}) | ||
OR (NOT ${_veloc_client_lib}) | ||
OR (NOT ${_veloc_module_lib}) | ||
OR (NOT ${_veloc_include_dir})) | ||
OR (NOT ${_veloc_client_lib}) | ||
OR (NOT ${_veloc_module_lib}) | ||
OR (NOT ${_veloc_include_dir})) | ||
set(_fail_msg "Could NOT find VeloC (set VeloC_DIR or VeloC_ROOT to point to install)") | ||
else() | ||
set(_fail_msg "Could NOT find VeloC") | ||
endif() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(VeloC ${_fail_msg} | ||
_veloc_root | ||
_veloc_client_lib | ||
_veloc_module_lib | ||
_veloc_include_dir | ||
MPI_FOUND | ||
MPI_CXX_FOUND | ||
) | ||
|
||
if (NOT VELOC_BAREBONE) | ||
_veloc_root | ||
_veloc_client_lib | ||
_veloc_module_lib | ||
_veloc_include_dir | ||
MPI_FOUND | ||
MPI_CXX_FOUND | ||
) | ||
|
||
if (NOT TARGET veloc::axl) | ||
add_library(veloc::axl UNKNOWN IMPORTED) | ||
set_target_properties(veloc::axl PROPERTIES | ||
IMPORTED_LOCATION ${_veloc_axl} | ||
) | ||
IMPORTED_LOCATION ${_veloc_axl} | ||
) | ||
endif() | ||
|
||
if (NOT TARGET veloc::er) | ||
add_library(veloc::er UNKNOWN IMPORTED) | ||
set_target_properties(veloc::er PROPERTIES | ||
IMPORTED_LOCATION ${_veloc_er} | ||
) | ||
IMPORTED_LOCATION ${_veloc_er} | ||
) | ||
endif() | ||
|
||
if (NOT TARGET veloc::rankstr) | ||
add_library(veloc::rankstr UNKNOWN IMPORTED) | ||
set_target_properties(veloc::rankstr PROPERTIES | ||
IMPORTED_LOCATION ${_veloc_rankstr} | ||
) | ||
IMPORTED_LOCATION ${_veloc_rankstr} | ||
) | ||
endif() | ||
|
||
if (NOT TARGET veloc::kvtree) | ||
add_library(veloc::kvtree UNKNOWN IMPORTED) | ||
set_target_properties(veloc::kvtree PROPERTIES | ||
IMPORTED_LOCATION ${_veloc_rankstr} | ||
) | ||
IMPORTED_LOCATION ${_veloc_rankstr} | ||
) | ||
endif() | ||
|
||
if (NOT TARGET veloc::veloc_modules) | ||
add_library(veloc::veloc_modules UNKNOWN IMPORTED) | ||
set_target_properties(veloc::veloc_modules PROPERTIES | ||
IMPORTED_LOCATION ${_veloc_module_lib} | ||
) | ||
IMPORTED_LOCATION ${_veloc_module_lib} | ||
) | ||
endif() | ||
|
||
if (NOT TARGET veloc::veloc) | ||
add_library(veloc::veloc UNKNOWN IMPORTED) | ||
set_target_properties(veloc::veloc PROPERTIES | ||
IMPORTED_LOCATION ${_veloc_client_lib} | ||
INTERFACE_INCLUDE_DIRECTORIES ${_veloc_include_dir} | ||
INTERFACE_LINK_LIBRARIES "veloc::veloc_modules;MPI::MPI_CXX" | ||
) | ||
IMPORTED_LOCATION ${_veloc_client_lib} | ||
INTERFACE_INCLUDE_DIRECTORIES ${_veloc_include_dir} | ||
INTERFACE_LINK_LIBRARIES "veloc::veloc_modules;MPI::MPI_CXX" | ||
) | ||
endif() | ||
|
||
if (NOT VELOC_BAREBONE) | ||
set_target_properties(veloc::veloc PROPERTIES | ||
INTERFACE_LINK_LIBRARIES "veloc::axl;veloc::er;veloc::rankstr" | ||
) | ||
INTERFACE_LINK_LIBRARIES "veloc::axl;veloc::er;veloc::rankstr" | ||
) | ||
endif() | ||
|
||
set(VeloC_DIR ${_veloc_root}) | ||
|
||
mark_as_advanced( | ||
_veloc_library | ||
_veloc_include_dir | ||
_veloc_library | ||
_veloc_include_dir | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.