-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into add_dense_hamiltonian
- Loading branch information
Showing
169 changed files
with
9,839 additions
and
4,886 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
INCLUDE(${CMAKE_ROOT}/Modules/CheckCXXSourceCompiles.cmake) | ||
|
||
SET(SINCOS_INCLUDE cmath) | ||
|
||
SET(ENABLE_MASS FALSE CACHE BOOL "ENABLE MASS math libraries for Power architecture") | ||
# This needs to go before HAVE_SINCOS | ||
IF(ENABLE_MASS) | ||
INCLUDE(CMake/FindIBMMASS.cmake) | ||
IF(HAVE_MASS) | ||
SET(CMAKE_REQUIRED_INCLUDES ${MASS_INCLUDE_DIRECTORIES} ${CMAKE_REQUIRED_INCLUDES}) | ||
SET(CMAKE_REQUIRED_LINK_OPTIONS ${MASS_LINKER_FLAGS}) | ||
SET(CMAKE_REQUIRED_LIBRARIES ${MASS_LIBRARIES}) | ||
ENDIF(HAVE_MASS) | ||
ENDIF(ENABLE_MASS) | ||
|
||
MESSAGE("CMAKE_REQUIRED_INCLUDES: ${CMAKE_REQUIRED_INCLUDES}") | ||
MESSAGE("CMAKE_REQUIRED_LINK_OPTIONS: ${CMAKE_REQUIRED_LINK_OPTIONS}") | ||
MESSAGE("CMAKE_REQUIRED_LIBRARIES: ${CMAKE_REQUIRED_LIBRARIES}") | ||
|
||
SET( SINCOS_TEST_SRC | ||
"#include \"${SINCOS_INCLUDE}\" | ||
int main(void) { | ||
double input = 1.1; | ||
double outsin, outcos;; | ||
sincos(input,&outsin, &outcos); | ||
} | ||
") | ||
|
||
CHECK_CXX_SOURCE_COMPILES("${SINCOS_TEST_SRC}" HAVE_SINCOS) |
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Simple file to find IBM MASS (if available) | ||
INCLUDE( CheckCXXSourceCompiles ) | ||
|
||
MESSAGE(STATUS "Looking for IBM MASS libraries") | ||
# Finding and setting the MASS_INCLUDE_DIRECTORIES | ||
set(SUFFIXES include) | ||
find_path(MASS_INCLUDE_DIRECTORIES name "mass.h" HINTS ${MASS_ROOT} | ||
PATH_SUFFIXES ${SUFFIXES}) | ||
if (NOT MASS_INCLUDE_DIRECTORIES) | ||
message(FATAL_ERROR "MASS_INCLUDE_DIRECTORIES not set. \"mass.h\" not found in MASS_ROOT/(${SUFFIXES})") | ||
endif (NOT MASS_INCLUDE_DIRECTORIES) | ||
message("MASS_INCLUDE_DIRECTORIES: ${MASS_INCLUDE_DIRECTORIES}") | ||
|
||
# Finding and setting the MASS_LINK_DIRECTORIES | ||
# the directory organization varies with platform and targets | ||
# these suffixes are not exhaustive | ||
set(MASS_FIND_LIB "libmass${CMAKE_STATIC_LIBRARY_SUFFIX}") | ||
set(SUFFIXES lib lib64) | ||
find_path(MASS_LINK_DIRECTORIES name "${MASS_FIND_LIB}" HINTS ${MASS_ROOT} | ||
PATH_SUFFIXES ${SUFFIXES}) | ||
if (NOT MASS_LINK_DIRECTORIES) | ||
message(FATAL_ERROR "MASS_LINK_DIRECTORIES not set. ${MASS_FIND_LIB} " | ||
"not found in MASS_ROOT/(${SUFFIXES})") | ||
endif (NOT MASS_LINK_DIRECTORIES) | ||
message("MASS_LINK_DIRECTORIES: ${MASS_LINK_DIRECTORIES}") | ||
|
||
set(MASS_LINKER_FLAGS -L${MASS_LINK_DIRECTORIES} -Wl,-rpath,${MASS_LINK_DIRECTORIES}) | ||
set(MASS_LIBRARIES "-lmass -lmassv") | ||
|
||
FILE( WRITE "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src_mass.cxx" | ||
"#include <cmath> | ||
#include <mass.h> | ||
#include <massv.h> | ||
#include <iostream> | ||
int main(void) { | ||
double input = 1.1; | ||
double outsin, outcos;; | ||
sincos(input,&outsin, &outcos); | ||
int in_size = 10; | ||
double inputv[in_size]; | ||
double resultv[in_size]; | ||
for( int i = 0; i < in_size; ++i) | ||
inputv[i] = i; | ||
vlog10(resultv, inputv, &in_size); | ||
} | ||
") | ||
try_compile(HAVE_MASS ${CMAKE_BINARY_DIR} | ||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src_mass.cxx | ||
CMAKE_FLAGS | ||
"-DINCLUDE_DIRECTORIES=${MASS_INCLUDE_DIRECTORIES} " | ||
"-DLINK_DIRECTORIES=${MASS_LINK_DIRECTORIES}" | ||
LINK_LIBRARIES "${MASS_LIBRARIES}" | ||
COMPILE_DEFINITIONS "${MASS_COMPILE_DEFINITIONS}" | ||
OUTPUT_VARIABLE MASS_OUT) | ||
if ( NOT HAVE_MASS ) | ||
MESSAGE( "${MASS_OUT}" ) | ||
endif ( NOT HAVE_MASS ) | ||
|
||
IF ( HAVE_MASS ) | ||
SET( MASS_FOUND 1 ) | ||
SET( MASS_FLAGS ${MASS_COMPILE_DEFINITIONS} ) | ||
include_directories( ${MASS_INCLUDE_DIRECTORIES} ) | ||
set( HAVE_VECTOR_MATH 1 ) | ||
set( HAVE_MASSV 1 ) | ||
set( SINCOS_INCLUDE mass.h ) | ||
MESSAGE(STATUS "MASS found: HAVE_MASS=${HAVE_MASS}, HAVE_MASSV=${HAVE_MASSV}") | ||
ELSE( HAVE_MASS ) | ||
SET( MASS_FOUND 0 ) | ||
SET( MASS_FLAGS ) | ||
SET( MASS_LIBRARIES ) | ||
SET( MASS_LINKER_FLAGS ) | ||
MESSAGE("MASS not found") | ||
ENDIF( HAVE_MASS ) |
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
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
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
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
2 changes: 1 addition & 1 deletion
2
config/load_summit_modules.sh → config/load_olcf_summit_modules.sh
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
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.