Skip to content

Commit

Permalink
ci: use clang18 for msan build
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentebolea committed Nov 27, 2024
1 parent 15d25a4 commit 0721415
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ jobs:
<<: *defaults
docker:
- image: ornladios/adios2:ci-fedora-asan
"fedora-msan":
"opensuse-tw-msan":
<<: *defaults
docker:
- image: ornladios/adios2:ci-fedora-msan
- image: ghcr.io/ornladios/adios2:ci-circle-opensuse-tw
resource_class: large
"fedora-tsan":
<<: *defaults
docker:
Expand All @@ -48,5 +49,5 @@ workflows:
jobs:
- "fedora-ubsan"
- "fedora-asan"
- "fedora-msan"
- "opensuse-tw-msan"
- "fedora-tsan"
25 changes: 25 additions & 0 deletions scripts/ci/cmake/ci-opensuse-tw-msan.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Client maintainer: [email protected]

set(ENV{CC} clang)
set(ENV{CXX} clang++)

set(dashboard_cache "
CMAKE_CXX_FLAGS=-fsanitize-memory-track-origins
CMAKE_LINKER_FLAGS=-fsanitize-memory-track-origins
BUILD_TESTING:BOOL=ON
ADIOS2_BUILD_EXAMPLES:BOOL=ON
ADIOS2_USE_Fortran:STRING=OFF
ADIOS2_USE_HDF5:STRING=ON
ADIOS2_USE_MPI:STRING=OFF
ADIOS2_USE_Python:STRING=OFF
")

set(dashboard_track "Analysis")
set(CTEST_CMAKE_GENERATOR "Ninja")
set(CTEST_BUILD_FLAGS "-k0 -j8")
set(CTEST_MEMORYCHECK_TYPE "MemorySanitizer")

set(ADIOS_TEST_REPEAT 0)
list(APPEND CTEST_UPDATE_NOTES_FILES "${CMAKE_CURRENT_LIST_FILE}")
include(${CMAKE_CURRENT_LIST_DIR}/ci-common.cmake)
39 changes: 39 additions & 0 deletions scripts/ci/images/opensuse/Dockerfile.ci-circle-opensuse-tw
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
##=============================================================================
##
## Copyright (c) Kitware, Inc.
## All rights reserved.
## See LICENSE.txt for details.
##
## This software is distributed WITHOUT ANY WARRANTY; without even
## the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
## PURPOSE. See the above copyright notice for more information.
##
##=============================================================================

FROM opensuse/tumbleweed
LABEL maintainer "Vicente Adolfo Bolea Sanchez<[email protected]>"

# Base dependencies for building ADIOS2 projects
RUN zypper refresh && \
zypper update -y && \
zypper install -y --no-recommends \
gcc \
gcc-c++ \
blosc-devel \
bzip3-devel \
clang18 \
cmake \
curl \
file \
git \
git-lfs \
hdf5-devel \
libfabric-devel \
libffi-devel \
libpng16-devel \
ninja \
patch \
zeromq-devel \
zlib-devel \
&& \
zypper clean --all
2 changes: 1 addition & 1 deletion scripts/dashboard/common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
# set(ENV{FC} /path/to/fc) # Fortran compiler (optional)
# set(ENV{LD_LIBRARY_PATH} /path/to/vendor/lib) # (if necessary)

cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)

if(NOT DEFINED dashboard_full)
set(dashboard_full TRUE)
Expand Down

0 comments on commit 0721415

Please sign in to comment.