Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Docker Build by Ensuring Cache Directories Exist #11

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ci/conda/recipes/cudf/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export CCACHE_DEBUGDIR=${SRC_DIR}/ccache_debug
export CCACHE_SLOPPINESS="system_headers"
export CCACHE_NOHASHDIR=1

# Double check that the cache dir has been created
mkdir -p ${CCACHE_DIR}

# CMake with nvcc uses -isystem=/path instead of -isystem /path which ccache doesnt like. Replace that
REPLACE_ISYSTEM="ARGS=()\nfor i in \"\${@}\"; do\n ARGS+=(\${i/\"-isystem=/\"/\"-isystem /\"})\ndone\n"

Expand Down
3 changes: 3 additions & 0 deletions ci/conda/recipes/libcudf/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export CCACHE_SLOPPINESS="system_headers"
export CC=${GCC}
export CXX=${GXX}

# Double check that the cache dir has been created
mkdir -p ${CCACHE_DIR}

# CMake with nvcc uses -isystem=/path instead of -isystem /path which ccache doesnt like. Replace that
REPLACE_ISYSTEM="ARGS=()\nfor i in \"\${@}\"; do\n ARGS+=(\${i/\"-isystem=/\"/\"-isystem /\"})\ndone\n"

Expand Down
3 changes: 3 additions & 0 deletions ci/conda/recipes/morpheus/morpheus_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export CCACHE_BASEDIR=$(realpath ${SRC_DIR}/..)
if [[ -n "${MORPHEUS_CACHE_DIR}" ]]; then
# Set the cache variable, then set the Staging prefix to allow for host searching
CMAKE_ARGS="-DMORPHEUS_CACHE_DIR=${MORPHEUS_CACHE_DIR} ${CMAKE_ARGS}"

# Double check that the cache dir has been created
mkdir -p ${MORPHEUS_CACHE_DIR}
fi

CMAKE_ARGS="-DCMAKE_MESSAGE_CONTEXT_SHOW=ON ${CMAKE_ARGS}"
Expand Down
11 changes: 4 additions & 7 deletions ci/conda/recipes/run_conda_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ echo ""
# Export variables for the cache
export MORPHEUS_CACHE_DIR=${MORPHEUS_CACHE_DIR:-"${MORPHEUS_ROOT}/.cache"}

# Ensure the build directory exists
export CONDA_BLD_DIR=${CONDA_BLD_DIR:-"${MORPHEUS_CACHE_DIR}/conda-build"}
mkdir -p ${CONDA_BLD_DIR}

# Where the conda packages are saved to outside of the conda environment
CONDA_BLD_OUTPUT=${CONDA_BLD_OUTPUT:-"${MORPHEUS_ROOT}/.conda-bld"}

# Export CCACHE variables
export CCACHE_DIR="${MORPHEUS_CACHE_DIR}/ccache"
export CCACHE_NOHASHDIR=1
Expand All @@ -63,6 +56,10 @@ export CMAKE_C_COMPILER_LAUNCHER="ccache"
export CMAKE_CXX_COMPILER_LAUNCHER="ccache"
export CMAKE_CUDA_COMPILER_LAUNCHER="ccache"

# Ensure the necessary folders exist before continuing
mkdir -p ${MORPHEUS_CACHE_DIR}
mkdir -p ${CCACHE_DIR}

# Holds the arguments in an array to allow for complex json objects
CONDA_ARGS_ARRAY=()

Expand Down