Skip to content

Commit

Permalink
Release v2022.03.0 (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbeckingsale authored Mar 29, 2022
1 parent 6185a04 commit f0b809d
Show file tree
Hide file tree
Showing 19 changed files with 128 additions and 96 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ cmake_policy(SET CMP0025 NEW)
include(CMakeDependentOption)
include(CMakePackageConfigHelpers)

project(Chai LANGUAGES CXX VERSION 2.4.0)
cmake_minimum_required(VERSION 3.9)
project(Chai LANGUAGES C CXX VERSION 2022.03.0)
cmake_minimum_required(VERSION 3.14)

include(cmake/SetupChaiOptions.cmake)

set(BLT_CXX_STD c++11 CACHE STRING "")
set(BLT_CXX_STD c++14 CACHE STRING "")

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "PGI")
message(STATUS "Setting CMAKE_CXX_EXTENSIONS to ON for PGI Compiler")
Expand Down
143 changes: 88 additions & 55 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,55 +1,88 @@
FROM axom/compilers:gcc-5 AS gcc5
COPY --chown=axom:axom . /home/axom/workspace
WORKDIR /home/axom/workspace
RUN mkdir build && cd build && cmake -DCMAKE_CXX_COMPILER=g++ -DENABLE_CUDA=OFF ..
RUN cd build && make -j 16
RUN cd build && ctest -T test --output-on-failure

FROM axom/compilers:gcc-6 AS gcc6
COPY --chown=axom:axom . /home/axom/workspace
WORKDIR /home/axom/workspace
RUN mkdir build && cd build && cmake -DCMAKE_CXX_COMPILER=g++ -DENABLE_CUDA=OFF ..
RUN cd build && make -j 16
RUN cd build && ctest -T test --output-on-failure

FROM axom/compilers:gcc-7 AS gcc7
COPY --chown=axom:axom . /home/axom/workspace
WORKDIR /home/axom/workspace
RUN mkdir build && cd build && cmake -DCMAKE_CXX_COMPILER=g++ -DENABLE_CUDA=OFF ..
RUN cd build && make -j 16
RUN cd build && ctest -T test --output-on-failure

FROM axom/compilers:gcc-8 AS gcc8
COPY --chown=axom:axom . /home/axom/workspace
WORKDIR /home/axom/workspace
RUN mkdir build && cd build && cmake -DCMAKE_CXX_COMPILER=g++ -DENABLE_CUDA=OFF ..
RUN cd build && make -j 16
RUN cd build && ctest -T test --output-on-failure

FROM axom/compilers:clang-4 AS clang4
COPY --chown=axom:axom . /home/axom/workspace
WORKDIR /home/axom/workspace
RUN mkdir build && cd build && cmake -DCMAKE_CXX_COMPILER=clang++ -DENABLE_CUDA=OFF ..
RUN cd build && make -j 16
RUN cd build && ctest -T test --output-on-failure

FROM axom/compilers:clang-5 AS clang5
COPY --chown=axom:axom . /home/axom/workspace
WORKDIR /home/axom/workspace
RUN mkdir build && cd build && cmake -DCMAKE_CXX_COMPILER=clang++ -DENABLE_CUDA=OFF ..
RUN cd build && make -j 16
RUN cd build && ctest -T test --output-on-failure

FROM axom/compilers:clang-6 AS clang6
COPY --chown=axom:axom . /home/axom/workspace
WORKDIR /home/axom/workspace
RUN mkdir build && cd build && cmake -DCMAKE_CXX_COMPILER=clang++ -DENABLE_CUDA=OFF ..
RUN cd build && make -j 16
RUN cd build && ctest -T test --output-on-failure


FROM axom/compilers:nvcc-10 AS nvcc
COPY --chown=axom:axom . /home/axom/workspace
WORKDIR /home/axom/workspace
RUN mkdir build && cd build && cmake -DCMAKE_CXX_COMPILER=g++ -DENABLE_CUDA=On ..
RUN cd build && make -j 16
FROM ghcr.io/rse-ops/gcc-ubuntu-20.04:gcc-7.3.0 AS gcc7
ENV GTEST_COLOR=1
COPY . /home/chai/workspace
WORKDIR /home/chai/workspace/build
RUN cmake -DENABLE_COVERAGE=On -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++ .. && \
make -j 16 && \
ctest -T test --output-on-failure

FROM ghcr.io/rse-ops/gcc-ubuntu-20.04:gcc-8.1.0 AS gcc8
ENV GTEST_COLOR=1
COPY . /home/chai/workspace
WORKDIR /home/chai/workspace/build
RUN cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++ .. && \
make -j 16 && \
ctest -T test --output-on-failure

FROM ghcr.io/rse-ops/gcc-ubuntu-18.04:gcc-9.4.0 AS gcc9
ENV GTEST_COLOR=1
COPY . /home/chai/workspace
WORKDIR /home/chai/workspace/build
RUN cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++ .. && \
make -j 16 && \
ctest -T test --output-on-failure

FROM ghcr.io/rse-ops/gcc-ubuntu-18.04:gcc-11.2.0 AS gcc11
ENV GTEST_COLOR=1
COPY . /home/chai/workspace
WORKDIR /home/chai/workspace/build
RUN cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++ .. && \
make -j 16 && \
ctest -T test --output-on-failure

FROM ghcr.io/rse-ops/clang-ubuntu-20.04:llvm-10.0.0 AS clang10
ENV GTEST_COLOR=1
COPY . /home/chai/workspace
WORKDIR /home/chai/workspace/build
RUN cmake -DCMAKE_CXX_COMPILER=clang++ .. && \
make -j 16 && \
ctest -T test --output-on-failure

FROM ghcr.io/rse-ops/clang-ubuntu-22.04:llvm-11.0.0 AS clang11
ENV GTEST_COLOR=1
COPY . /home/chai/workspace
WORKDIR /home/chai/workspace/build
RUN cmake -DCMAKE_CXX_COMPILER=clang++ .. && \
make -j 16 && \
ctest -T test --output-on-failure

FROM ghcr.io/rse-ops/clang-ubuntu-22.04:llvm-12.0.0 AS clang12
ENV GTEST_COLOR=1
COPY . /home/chai/workspace
WORKDIR /home/chai/workspace/build
RUN cmake -DCMAKE_CXX_COMPILER=clang++ .. && \
make -j 16 && \
ctest -T test --output-on-failure

FROM ghcr.io/rse-ops/clang-ubuntu-22.04:llvm-13.0.0 AS clang13
ENV GTEST_COLOR=1
COPY . /home/chai/workspace
WORKDIR /home/chai/workspace/build
RUN cmake -DCMAKE_CXX_COMPILER=clang++ .. && \
make -j 16 && \
ctest -T test --output-on-failure

FROM ghcr.io/rse-ops/cuda:cuda-10.1.243-ubuntu-18.04 AS nvcc10
ENV GTEST_COLOR=1
COPY . /home/chai/workspace
WORKDIR /home/chai/workspace/build
RUN . /opt/spack/share/spack/setup-env.sh && spack load cuda && \
cmake -DCMAKE_CXX_COMPILER=g++ -DENABLE_CUDA=On .. && \
make -j 16

FROM ghcr.io/rse-ops/cuda-ubuntu-20.04:cuda-11.1.1 AS nvcc11
ENV GTEST_COLOR=1
COPY . /home/chai/workspace
WORKDIR /home/chai/workspace/build
RUN . /opt/spack/share/spack/setup-env.sh && spack load cuda && \
cmake -DCMAKE_CXX_COMPILER=g++ -DENABLE_CUDA=On .. && \
make -j 16

FROM ghcr.io/rse-ops/hip-ubuntu-22.04:hip-4.3.1 AS hip
ENV GTEST_COLOR=1
ENV HCC_AMDGPU_TARGET=gfx900
COPY . /home/chai/workspace
WORKDIR /home/chai/workspace/build
RUN . /opt/spack/share/spack/setup-env.sh && spack load hip llvm-amdgpu && \
cmake -DBLT_EXPORT_THIRDPARTY=On -DENABLE_WARNINGS_AS_ERRORS=Off -DCHAI_ENABLE_MANAGED_PTR=Off -DCMAKE_CXX_COMPILER=amdclang++ -DCMAKE_C_COMPILER=amdclang -DENABLE_HIP=On .. && \
make -j 16 VERBOSE=1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CHAI v2.4
# CHAI v2022.03.0

[![Azure Build Status](https://dev.azure.com/davidbeckingsale/CHAI/_apis/build/status/LLNL.CHAI?branchName=develop)](https://dev.azure.com/davidbeckingsale/CHAI/_build/latest?definitionId=2&branchName=develop)
[![Build Status](https://travis-ci.org/LLNL/CHAI.svg?branch=develop)](https://travis-ci.org/LLNL/CHAI)
Expand Down
32 changes: 18 additions & 14 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,26 @@ jobs:
timeoutInMinutes: 360
strategy:
matrix:
gcc5:
docker_target: gcc5
gcc6:
docker_target: gcc6
gcc7:
gcc7:
docker_target: gcc7
gcc8:
gcc8:
docker_target: gcc8
clang4:
docker_target: clang4
clang5:
docker_target: clang5
clang7:
docker_target: clang6
nvcc:
docker_target: nvcc
gcc9:
docker_target: gcc9
clang10:
docker_target: clang10
clang11:
docker_target: clang11
clang12:
docker_target: clang12
clang13:
docker_target: clang13
nvcc10:
docker_target: nvcc10
nvcc11:
docker_target: nvcc11
hip:
docker_target: hip
pool:
vmImage: 'ubuntu-latest'
variables:
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ endif ()
if (CHAI_ENABLE_HIP)
set (chai_benchmark_depends
${chai_benchmark_depends}
hip)
blt::hip)
endif ()

blt_add_executable(
Expand Down
2 changes: 1 addition & 1 deletion blt
Submodule blt updated 146 files
5 changes: 0 additions & 5 deletions cmake/ChaiBasics.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,4 @@
##############################################################################
set (CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --expt-extended-lambda")

if (CHAI_ENABLE_HIP)
#bug in ROCm 2.4 is incorrectly warning about missing overrides
set(HIP_HIPCC_FLAGS "${HIP_HIPCC_FLAGS} -Wno-inconsistent-missing-override")
endif()

include(${PROJECT_SOURCE_DIR}/cmake/thirdparty/SetupChaiThirdparty.cmake)
1 change: 0 additions & 1 deletion cmake/SetupChaiOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#
# SPDX-License-Identifier: BSD-3-Clause
############################################################################
option(CHAI_ENABLE_HIP "Enable HIP" Off)
option(CHAI_ENABLE_GPU_SIMULATION_MODE "Enable GPU Simulation Mode" Off)
option(CHAI_ENABLE_OPENMP "Enable OpenMP" Off)
option(CHAI_ENABLE_MPI "Enable MPI (for umpire replay only)" Off)
Expand Down
7 changes: 4 additions & 3 deletions cmake/thirdparty/SetupChaiThirdparty.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ if (NOT TARGET umpire)
LIBRARIES umpire
DEPENDS_ON ${UMPIRE_DEPENDS})
else ()
set(OLD_ENABLE_FORTRAN ${ENABLE_FORTRAN})
set(ENABLE_FORTRAN Off CACHE BOOL "Enable Fortran in Umpire")
set(UMPIRE_ENABLE_FORTRAN Off CACHE BOOL "Enable Fortran in Umpire")
set(UMPIRE_ENABLE_C Off CACHE BOOL "Enable Fortran in Umpire")
set(UMPIRE_ENABLE_TESTS Off CACHE BOOL "")
set(UMPIRE_ENABLE_TOOLS Off CACHE BOOL "")
add_subdirectory(${PROJECT_SOURCE_DIR}/src/tpl/umpire)
set(ENABLE_FORTRAN ${OLD_ENABLE_FORTRAN})
endif()

# Umpire depends on camp
Expand Down
4 changes: 2 additions & 2 deletions docs/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
# built documents.
#
# The short X.Y version.
version = u'2.4'
version = u'2022.03'
# The full version, including alpha/beta/rc tags.
release = u'2.4.0'
release = u'2022.03.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions docs/sphinx/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ author = u''
# built documents.
#
# The short X.Y version.
version = u'2.4'
version = u'2022.03'
# The full version, including alpha/beta/rc tags.
release = u'2.4.0'
release = u'2022.03.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ endif()
if (CHAI_ENABLE_HIP)
set (chai_umpire_example_depends
${chai_umpire_example_depends}
hip)
blt::hip)
endif()

blt_add_executable(
Expand Down
2 changes: 1 addition & 1 deletion reproducers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if (CHAI_ENABLE_CUDA)
endif ()

if (CHAI_ENABLE_HIP)
list(APPEND chai_reproducer_depends hip)
list(APPEND chai_reproducer_depends blt::hip)
endif ()

if (CHAI_ENABLE_MANAGED_PTR AND CHAI_ENABLE_HIP)
Expand Down
2 changes: 1 addition & 1 deletion scripts/make_release_tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
##############################################################################

TAR_CMD=gtar
VERSION=2.4.0
VERSION=2022.03.0

git archive --prefix=chai-${VERSION}/ -o chai-${VERSION}.tar HEAD 2> /dev/null

Expand Down
2 changes: 1 addition & 1 deletion src/chai/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ endif ()
if (CHAI_ENABLE_HIP)
set (chai_depends
${chai_depends}
hip_runtime)
blt::hip_runtime)
endif ()

if (CHAI_ENABLE_RAJA_PLUGIN)
Expand Down
2 changes: 1 addition & 1 deletion src/tpl/raja
Submodule raja updated 908 files
2 changes: 1 addition & 1 deletion src/tpl/umpire
Submodule umpire updated 530 files
2 changes: 1 addition & 1 deletion tests/integration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set (chai_integration_test_depends
chai umpire gtest)

blt_list_append(TO chai_integration_test_depends ELEMENTS cuda IF ${CHAI_ENABLE_CUDA})
blt_list_append(TO chai_integration_test_depends ELEMENTS hip IF ${CHAI_ENABLE_HIP})
blt_list_append(TO chai_integration_test_depends ELEMENTS blt::hip IF ${CHAI_ENABLE_HIP})
blt_list_append(TO chai_integration_test_depends ELEMENTS openmp IF ${CHAI_ENABLE_OPENMP})

# ManagedArray tests
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set (chai_unit_test_depends
chai umpire gtest)

blt_list_append(TO chai_unit_test_depends ELEMENTS cuda IF ${CHAI_ENABLE_CUDA})
blt_list_append(TO chai_unit_test_depends ELEMENTS hip IF ${CHAI_ENABLE_HIP})
blt_list_append(TO chai_unit_test_depends ELEMENTS blt::hip IF ${CHAI_ENABLE_HIP})

blt_add_executable(
NAME managed_array_unit_tests
Expand Down

0 comments on commit f0b809d

Please sign in to comment.