Skip to content

Commit

Permalink
reduce the iteration number for the Codecov checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sjsprecious committed Jun 7, 2024
1 parent 70f1da9 commit f860276
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docker/Dockerfile.coverage
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@ WORKDIR /app/
# Copy the modified SAMURAI source code from a particular PR
COPY . /app/samurai

# Build SAMURAI with coverage and debug mode
# Build with reduced iteration numbers to save execution time, since we are using debug mode
RUN cd samurai && \
export SAMURAI_ROOT=$(pwd) && \
sed -i 's|set(SOLVER_MAXITER 2000)|set(SOLVER_MAXITER 1)|g' CMakeLists.txt && \
sed -i 's|set(SOLVER_INNER_MAXITER 4000)|set(SOLVER_INNER_MAXITER 20)|g' CMakeLists.txt && \
export SAMURAI_ROOT=$(pwd) && \
export LROSE_INSTALL_DIR=/usr/local && \
mkdir build && \
cd build && \
cmake -DUSE_GPU=false -DDEBUG_COMPILE=true -D ENABLE_COVERAGE=ON .. && \
cmake -DUSE_GPU=false -DDEBUG_COMPILE=false -D ENABLE_COVERAGE=ON .. && \
make -j 8 VERBOSE=1

# Update input data directory inside the container
RUN sed -i 's|data_directory = "/glade/campaign/cisl/asap/samurai/data/beltrami";|data_directory = "/app/data/beltrami";|g' /app/samurai/ncar_scripts/TDRP/beltrami.tdrp

ENV PATH="/app/samurai/build:${PATH}"
ENV LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}"
ENV PATH="/usr/local/bin:${PATH}"

WORKDIR /app/samurai/build

0 comments on commit f860276

Please sign in to comment.