Skip to content

Commit

Permalink
GEOSX_TPL_DIR is env variable so keeping that for now
Browse files Browse the repository at this point in the history
debugging ci script tar command

revert GEOS_TPL_DIR to GEOSX_TPL_DIR in ci_build_and_test_in_container.sh

revert GEOS_TPL_DIR to GEOSX_TPL_DIR in ci_build_and_test_in_container.sh

debugging

update LvArray
  • Loading branch information
rrsettgast committed Jul 18, 2024
1 parent af1249e commit eb6b6bc
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ jobs:
COMMIT=${{ github.event.pull_request.head.sha }}
SHORT_COMMIT=${COMMIT:0:7}
script_args+=(--install-dir-basename GEOSX-${SHORT_COMMIT})
script_args+=(--install-dir-basename GEOS-${SHORT_COMMIT})
# All the data exchanged with the docker container is eventually meant to be sent to the cloud.
if [[ ! -z "${{ inputs.GCP_BUCKET }}" ]]; then
if [ "${{ inputs.BUILD_TYPE }}" = "build" ]; then
DATA_BASENAME=GEOSX-and-TPL-${SHORT_COMMIT}.tar.gz
DATA_BASENAME=GEOS-and-TPL-${SHORT_COMMIT}.tar.gz
elif [ "${{ inputs.BUILD_TYPE }}" = "integrated_tests" ]; then
DATA_BASENAME=integratedTests-pr${{ github.event.number }}-${{ github.run_number }}-${SHORT_COMMIT}.tar.gz
script_args+=(--run-integrated-tests)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ set(LAPACK_LIBRARIES "${OPENBLAS_ROOT}/lib/libopenblas.so" CACHE STRING "")
set(ENABLE_VALGRIND OFF CACHE BOOL "")
set(ENABLE_CALIPER ON CACHE BOOL "")

set(GEOS_TPL_DIR "$ENV{GEOS_TPL_DIR}" CACHE PATH "" FORCE)
set(GEOS_TPL_DIR "$ENV{GEOSX_TPL_DIR}" CACHE PATH "" FORCE)
include(${CMAKE_CURRENT_LIST_DIR}/../tpls.cmake)
2 changes: 1 addition & 1 deletion host-configs/TOTAL/pangea3-gcc8.4.1-openmpi-4.1.2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set(CONFIG_NAME "pangea3-gcc8.4.1-ompi-4.1.2" CACHE PATH "")

# Set up the tpls
set(GEOS_TPL_DIR "$ENV{GEOS_TPL_DIR}" CACHE PATH "" FORCE)
set(GEOS_TPL_DIR "$ENV{GEOSX_TPL_DIR}" CACHE PATH "" FORCE)
if (NOT DEFINED GEOS_TPL_DIR)
message(FATAL_ERROR "You must set GEOS_TPL_DIR with -D GEOS_TPL_DIR=")
endif ()
Expand Down
2 changes: 1 addition & 1 deletion host-configs/TOTAL/pecan-CPU.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ set(MKL_LIBRARIES ${MKL_ROOT}/lib/intel64/libmkl_intel_lp64.so
${INTEL_ROOT}/compiler/lib/intel64_lin/libiomp5.so
CACHE STRING "")

set(GEOS_TPL_DIR "$ENV{GEOS_TPL_DIR}" CACHE PATH "" FORCE)
set(GEOS_TPL_DIR "$ENV{GEOSX_TPL_DIR}" CACHE PATH "" FORCE)
include(${CMAKE_CURRENT_LIST_DIR}/../tpls.cmake)
2 changes: 1 addition & 1 deletion host-configs/environment.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ if(DEFINED ENV{LAPACK_LIBRARIES})
set(LAPACK_LIBRARIES "$ENV{LAPACK_LIBRARIES}" CACHE PATH "" FORCE)
endif()

set(GEOS_TPL_DIR "$ENV{GEOS_TPL_DIR}" CACHE PATH "" FORCE)
set(GEOS_TPL_DIR "$ENV{GEOSX_TPL_DIR}" CACHE PATH "" FORCE)
include(${CMAKE_CURRENT_LIST_DIR}/tpls.cmake)
7 changes: 6 additions & 1 deletion scripts/ci_build_and_test_in_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ do
shift 2;;
--exchange-dir) DATA_EXCHANGE_DIR=$2; shift 2;;
--host-config) HOST_CONFIG=$2; shift 2;;
--install-dir-basename) GEOS_DIR=${GEOS_TPL_DIR}/../$2; shift 2;;
--install-dir-basename) GEOS_DIR=${GEOSX_TPL_DIR}/../$2; shift 2;;
--no-install-schema) GEOS_INSTALL_SCHEMA=false; shift;;
--no-run-unit-tests) RUN_UNIT_TESTS=false; shift;;
--nproc) NPROC=$2; shift 2;;
Expand Down Expand Up @@ -253,6 +253,11 @@ else
if [[ ! -z "${DATA_BASENAME_WE}" ]]; then
# Here we pack the installation.
# The `--transform` parameter provides consistency between the tarball name and the unpacked folder.
echo "DATA_EXCHANGE_DIR=${DATA_EXCHANGE_DIR}"
echo "DATA_BASENAME_WE=${DATA_BASENAME_WE}"
echo "GEOS_TPL_DIR=${GEOS_TPL_DIR}"
echo "GEOSX_TPL_DIR=${GEOSX_TPL_DIR}"
echo tar czf ${DATA_EXCHANGE_DIR}/${DATA_BASENAME_WE}.tar.gz --directory=${GEOS_TPL_DIR}/.. --transform "s|^./|${DATA_BASENAME_WE}/|" .
or_die tar czf ${DATA_EXCHANGE_DIR}/${DATA_BASENAME_WE}.tar.gz --directory=${GEOS_TPL_DIR}/.. --transform "s|^./|${DATA_BASENAME_WE}/|" .
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion src/coreComponents/LvArray

0 comments on commit eb6b6bc

Please sign in to comment.