Need to Install TOSS3 Environment Scripts on Chama and Serrano
Created by: jmgate
Expectations
I should be able to build an application against an install of Trilinos on chama
by sourcing ${Trilinos_INSTALL_DIR}/load_matching_env.sh
.
Current Behavior
When I do so, that script sources ${Trilinos_INSTALL_DIR}/share/atdm-trilinos/load-env.sh
, which sources $ATDM_SCRIPT_DIR/$ATDM_CONFIG_KNOWN_SYSTEM_NAME/environment.sh
(where $ATDM_CONFIG_KNOWN_SYSTEM_NAME
is chama
), which sources $ATDM_SCRIPT_DIR/toss3/environment.sh
, which doesn't exist, because it wasn't installed.
Motivation and Context
Trying to stand up a build of all of EMPIRE on chama
.
Definition of Done
If $ATDM_CONFIG_KNOWN_SYSTEM_NAME
is chama
or serrano
, then the toss3
directory and its contents also get installed.
Possible Solution
Take a look at this line in ATDMDevEnvSettings.cmake
. After this INSTALL
directive, you need something along the lines of
IF ($ENV{ATDM_CONFIG_KNOWN_SYSTEM_NAME} EQUAL "chama" OR
$ENV{ATDM_CONFIG_KNOWN_SYSTEM_NAME} EQUAL "serrano")
INSTALL( DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/toss3
DESTINATION ${ATDM_CONFIG_SCRIPTS_INSTALL_DIR}
PATTERN "*.cmake" EXCLUDE )
ENDIF()
Steps to Reproduce
See the EMPIRE_EM-Plasma-Trilinos-chama-test-all-of-EMPIRE-intel-opt-openmp
Jenkins job and its console log.