Skip to content

Commit 1bad7d8

Browse files
committed
Merge branch 'master' into woptim/spack-update
2 parents c634187 + a140eda commit 1bad7d8

File tree

385 files changed

+21675
-22053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

385 files changed

+21675
-22053
lines changed

.clang-format

+220
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,220 @@
1+
---
2+
BasedOnStyle: Microsoft
3+
AccessModifierOffset: -4
4+
AlignAfterOpenBracket: BlockIndent
5+
AlignArrayOfStructures: None
6+
AlignConsecutiveAssignments:
7+
Enabled: true
8+
AcrossEmptyLines: false
9+
AcrossComments: false
10+
AlignCompound: false
11+
PadOperators: true
12+
AlignConsecutiveBitFields:
13+
Enabled: false
14+
AcrossEmptyLines: false
15+
AcrossComments: false
16+
AlignCompound: false
17+
PadOperators: false
18+
AlignConsecutiveDeclarations:
19+
Enabled: true
20+
AcrossEmptyLines: false
21+
AcrossComments: false
22+
AlignCompound: false
23+
PadOperators: false
24+
AlignConsecutiveMacros:
25+
Enabled: false
26+
AcrossEmptyLines: false
27+
AcrossComments: false
28+
AlignCompound: false
29+
PadOperators: false
30+
AlignEscapedNewlines: Left
31+
AlignOperands: Align
32+
AlignTrailingComments:
33+
Kind: Always
34+
OverEmptyLines: 0
35+
AllowAllArgumentsOnNextLine: false
36+
AllowAllParametersOfDeclarationOnNextLine: false
37+
AllowShortBlocksOnASingleLine: Never
38+
AllowShortCaseLabelsOnASingleLine: false
39+
AllowShortEnumsOnASingleLine: true
40+
AllowShortFunctionsOnASingleLine: InlineOnly
41+
AllowShortIfStatementsOnASingleLine: Never
42+
AllowShortLambdasOnASingleLine: Inline
43+
AllowShortLoopsOnASingleLine: false
44+
AlwaysBreakAfterDefinitionReturnType: None
45+
AlwaysBreakAfterReturnType: None
46+
AlwaysBreakBeforeMultilineStrings: true
47+
AlwaysBreakTemplateDeclarations: Yes
48+
AttributeMacros:
49+
- __capability
50+
BinPackArguments: false
51+
BinPackParameters: false
52+
BitFieldColonSpacing: Both
53+
BraceWrapping:
54+
AfterCaseLabel: false
55+
AfterClass: true
56+
AfterControlStatement: Never
57+
AfterEnum: false
58+
AfterFunction: true
59+
AfterNamespace: true
60+
AfterObjCDeclaration: true
61+
AfterStruct: false
62+
AfterUnion: false
63+
AfterExternBlock: true
64+
BeforeCatch: false
65+
BeforeElse: false
66+
BeforeLambdaBody: false
67+
BeforeWhile: false
68+
IndentBraces: false
69+
SplitEmptyFunction: false
70+
SplitEmptyRecord: false
71+
SplitEmptyNamespace: false
72+
BreakAfterAttributes: Never
73+
BreakAfterJavaFieldAnnotations: false
74+
BreakArrays: false
75+
BreakBeforeBinaryOperators: NonAssignment
76+
BreakBeforeBraces: Custom
77+
BreakBeforeConceptDeclarations: Always
78+
BreakBeforeInlineASMColon: OnlyMultiline
79+
BreakBeforeTernaryOperators: true
80+
BreakConstructorInitializers: BeforeColon
81+
BreakInheritanceList: BeforeColon
82+
BreakStringLiterals: true
83+
ColumnLimit: 120
84+
CommentPragmas: ^\\.+
85+
CompactNamespaces: false
86+
ConstructorInitializerIndentWidth: 4
87+
ContinuationIndentWidth: 4
88+
Cpp11BracedListStyle: false
89+
DerivePointerAlignment: false
90+
DisableFormat: false
91+
EmptyLineAfterAccessModifier: Always
92+
EmptyLineBeforeAccessModifier: Always
93+
ExperimentalAutoDetectBinPacking: false
94+
FixNamespaceComments: true
95+
ForEachMacros:
96+
- foreach
97+
- Q_FOREACH
98+
- BOOST_FOREACH
99+
IfMacros:
100+
- KJ_IF_MAYBE
101+
IncludeBlocks: Preserve
102+
IncludeCategories:
103+
- Regex: ^"(llvm|llvm-c|clang|clang-c)/
104+
Priority: 2
105+
SortPriority: 0
106+
CaseSensitive: false
107+
- Regex: ^(<|"(gtest|gmock|isl|json)/)
108+
Priority: 3
109+
SortPriority: 0
110+
CaseSensitive: false
111+
- Regex: .*
112+
Priority: 1
113+
SortPriority: 0
114+
CaseSensitive: false
115+
IncludeIsMainRegex: (Test)?$
116+
IncludeIsMainSourceRegex: ""
117+
IndentAccessModifiers: false
118+
IndentCaseBlocks: true
119+
IndentCaseLabels: false
120+
IndentExternBlock: NoIndent
121+
IndentGotoLabels: false
122+
IndentPPDirectives: None
123+
IndentRequiresClause: true
124+
IndentWidth: 4
125+
IndentWrappedFunctionNames: false
126+
InsertBraces: false
127+
InsertNewlineAtEOF: false
128+
InsertTrailingCommas: None
129+
IntegerLiteralSeparator:
130+
Binary: 0
131+
Decimal: 0
132+
Hex: 0
133+
JavaScriptQuotes: Leave
134+
JavaScriptWrapImports: true
135+
KeepEmptyLinesAtTheStartOfBlocks: true
136+
LambdaBodyIndentation: Signature
137+
Language: Cpp
138+
LineEnding: DeriveLF
139+
MacroBlockBegin: ""
140+
MacroBlockEnd: ""
141+
MaxEmptyLinesToKeep: 1
142+
NamespaceIndentation: None
143+
ObjCBinPackProtocolList: Auto
144+
ObjCBlockIndentWidth: 2
145+
ObjCBreakBeforeNestedBlockParam: true
146+
ObjCSpaceAfterProperty: false
147+
ObjCSpaceBeforeProtocolList: true
148+
PPIndentWidth: -1
149+
PackConstructorInitializers: NextLine
150+
PenaltyBreakAssignment: 2
151+
PenaltyBreakBeforeFirstCallParameter: 19
152+
PenaltyBreakComment: 300
153+
PenaltyBreakFirstLessLess: 120
154+
PenaltyBreakOpenParenthesis: 0
155+
PenaltyBreakString: 1000
156+
PenaltyBreakTemplateDeclaration: 10
157+
PenaltyExcessCharacter: 1000000
158+
PenaltyIndentedWhitespace: 0
159+
PenaltyReturnTypeOnItsOwnLine: 1000
160+
PointerAlignment: Left
161+
QualifierAlignment: Leave
162+
ReferenceAlignment: Pointer
163+
ReflowComments: false
164+
RemoveBracesLLVM: false
165+
RemoveSemicolon: false
166+
RequiresClausePosition: OwnLine
167+
RequiresExpressionIndentation: OuterScope
168+
SeparateDefinitionBlocks: Always
169+
ShortNamespaceLines: 1
170+
SortIncludes: Never
171+
SortJavaStaticImport: Before
172+
SortUsingDeclarations: LexicographicNumeric
173+
SpaceAfterCStyleCast: true
174+
SpaceAfterLogicalNot: false
175+
SpaceAfterTemplateKeyword: true
176+
SpaceAroundPointerQualifiers: Default
177+
SpaceBeforeAssignmentOperators: true
178+
SpaceBeforeCaseColon: false
179+
SpaceBeforeCpp11BracedList: true
180+
SpaceBeforeCtorInitializerColon: true
181+
SpaceBeforeInheritanceColon: true
182+
SpaceBeforeParens: Custom
183+
SpaceBeforeParensOptions:
184+
AfterControlStatements: true
185+
AfterForeachMacros: true
186+
AfterFunctionDeclarationName: false
187+
AfterFunctionDefinitionName: false
188+
AfterIfMacros: true
189+
AfterOverloadedOperator: true
190+
AfterRequiresInClause: false
191+
AfterRequiresInExpression: false
192+
BeforeNonEmptyParentheses: false
193+
SpaceBeforeRangeBasedForLoopColon: true
194+
SpaceBeforeSquareBrackets: false
195+
SpaceInEmptyBlock: false
196+
SpaceInEmptyParentheses: false
197+
SpacesBeforeTrailingComments: 1
198+
SpacesInAngles: Never
199+
SpacesInCStyleCastParentheses: false
200+
SpacesInConditionalStatement: false
201+
SpacesInContainerLiterals: true
202+
SpacesInLineCommentPrefix:
203+
Minimum: 1
204+
Maximum: -1
205+
SpacesInParentheses: false
206+
SpacesInSquareBrackets: false
207+
Standard: c++11
208+
StatementAttributeLikeMacros:
209+
- Q_EMIT
210+
StatementMacros:
211+
- Q_UNUSED
212+
- QT_REQUIRE_VERSION
213+
TabWidth: 4
214+
UseTab: Never
215+
WhitespaceSensitiveMacros:
216+
- BOOST_PP_STRINGIZE
217+
- CF_SWIFT_NAME
218+
- NS_SWIFT_NAME
219+
- PP_STRINGIZE
220+
- STRINGIZE

.github/workflows/format-check.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check code formatting
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
cpp-format-check:
11+
runs-on: ubuntu-24.04
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install clang-format
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install -y --no-install-recommends \
20+
build-essential \
21+
clang-format-17
22+
23+
- name: Test formatting
24+
run: |
25+
./scripts/formatting/check-formatting.sh /usr/bin/clang-format-17

CITATION.cff

+4-2
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,18 @@ preferred-citation:
5252
given-names: "Matthew"
5353
- family-names: "Pearce"
5454
given-names: "Olga"
55+
orcid: "https://orcid.org/0000-0002-1904-9627"
5556
- family-names: "Schulz"
5657
given-names: "Martin"
5758
orcid: "https://orcid.org/0000-0001-9013-435X"
5859
title: "Caliper: Performance Introspection for HPC Software Stacks"
5960
url: "http://dl.acm.org/citation.cfm?id=3014904.3014967"
6061
conference:
61-
name: "Supercomputing 2016 (SC'16)"
62+
name: "International Conference for High Performance Computing, Networking, Storage and Analysis (SC'16)"
6263
city: "Salt Lake City"
6364
region: "Utah"
6465
country: "USA"
65-
month: November 13-18
66+
date-start: 2016-11-13
67+
date-end: 2016-11-18
6668
year: 2016
6769
notes: LLNL-CONF-699263

CMakeLists.txt

+12
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,17 @@ add_caliper_option(WITH_VARIORUM "Enable Variorum support" FALSE)
8282
add_caliper_option(WITH_UMPIRE "Enable Umpire statistics support" FALSE)
8383
add_caliper_option(WITH_CRAYPAT "Enable CrayPAT region forwarding support" FALSE)
8484
add_caliper_option(WITH_LDMS "Enable LDMS forwarder" FALSE)
85+
add_caliper_option(WITH_PAPI_RDPMC "Declare that PAPI is built to use rdpmc for reading counters. Does nothing if PAPI support is not enabled." TRUE)
86+
87+
if (WITH_PAPI_RDPMC)
88+
set(CALIPER_WITH_PAPI_RDPMC TRUE)
89+
endif ()
90+
91+
set(WITH_ARCH "" CACHE STRING "Enable features specific to the provided archspec CPU architecture name")
92+
if (NOT WITH_ARCH STREQUAL "")
93+
string(TOLOWER ${WITH_ARCH} LOWER_WITH_ARCH)
94+
set(CALIPER_HAVE_ARCH "${LOWER_WITH_ARCH}")
95+
endif ()
8596

8697
add_caliper_option(USE_EXTERNAL_GOTCHA "Use pre-installed gotcha instead of building our own" FALSE)
8798

@@ -633,6 +644,7 @@ message(STATUS "Build type : ${CMAKE_BUILD_TYPE}")
633644
message(STATUS "Compiler : ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} (${CMAKE_CXX_COMPILER})")
634645
message(STATUS "Python interpreter : ${Python_EXECUTABLE}")
635646
message(STATUS "System : ${CMAKE_SYSTEM} (${CMAKE_SYSTEM_PROCESSOR})")
647+
message(STATUS "Architecture : ${CALIPER_HAVE_ARCH}")
636648
message(STATUS "Install dir : ${CMAKE_INSTALL_PREFIX}")
637649
message(STATUS "Build shared libs : ${BUILD_SHARED_LIBS}")
638650
message(STATUS "Build Caliper tools : ${WITH_TOOLS}")

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015-2023, Lawrence Livermore National Security, LLC.
1+
Copyright (c) 2015-2024, Lawrence Livermore National Security, LLC.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

0 commit comments

Comments
 (0)