-
Notifications
You must be signed in to change notification settings - Fork 9
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
1902: upgrade CLI11
to v2.2.0
#1904
Conversation
Pipelines resultsPR tests (gcc-5, ubuntu, mpich) Build for b7af7e5
PR tests (clang-3.9, ubuntu, mpich) Build for f233f14
PR tests (gcc-6, ubuntu, mpich) Build for f233f14
PR tests (clang-5.0, ubuntu, mpich) Build for f233f14
PR tests (gcc-9, ubuntu, mpich, zoltan) Build for f233f14
PR tests (gcc-8, ubuntu, mpich, address sanitizer) Build for f233f14
PR tests (gcc-10, ubuntu, openmpi, no LB) Build for f233f14
PR tests (gcc-7, ubuntu, mpich, trace runtime, LB) Build for f233f14
PR tests (nvidia cuda 10.1, ubuntu, mpich) Build for f233f14
PR tests (clang-9, ubuntu, mpich) Build for b7af7e5
PR tests (clang-13, alpine, mpich) Build for f233f14
PR tests (clang-11, ubuntu, mpich) Build for f233f14
PR tests (intel icpx, ubuntu, mpich) Build for f233f14
PR tests (clang-12, ubuntu, mpich) Build for f233f14
PR tests (nvidia cuda 11.0, ubuntu, mpich) Build for f233f14
PR tests (clang-14, ubuntu, mpich) Build for f233f14
PR tests (gcc-11, ubuntu, mpich) Build for f233f14
PR tests (clang-13, ubuntu, mpich) Build for f233f14
PR tests (intel icpc, ubuntu, mpich) Build for f233f14
PR tests (gcc-12, ubuntu, mpich) Build for f233f14
PR tests (clang-10, ubuntu, mpich) Build for f233f14
|
Codecov Report
@@ Coverage Diff @@
## develop #1904 +/- ##
===========================================
+ Coverage 84.35% 84.44% +0.08%
===========================================
Files 760 760
Lines 26834 26833 -1
===========================================
+ Hits 22636 22658 +22
+ Misses 4198 4175 -23
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks very nice.
Could you confirm that all of the defaults actually matched?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, also fixes C++17 compile issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please work around the Intel CI failure before merging, so that we don't just see that failure on every PR going forward
|
std::string optarg = args.back(); | ||
optarg = op->_validate(optarg, 0); | ||
if(!optarg.empty()) { | ||
std::string cli_optarg = args.back(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's better than adding Wno-shadow
for icpc.
Btw this is already fixed at main
branch of CLI11.
auto m = app.add_option("--vt_stack_mod", appConfig.vt_stack_mod, mod, 1); | ||
auto k = app.add_option("--vt_stack_file", appConfig.vt_stack_file, file)->capture_default_str(); | ||
auto l = app.add_option("--vt_stack_dir", appConfig.vt_stack_dir, dir)->capture_default_str(); | ||
auto m = app.add_option("--vt_stack_mod", appConfig.vt_stack_mod, mod)->capture_default_str(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Difference:
vt/src/vt/configs/arguments/app_config.h
Line 117 in e8ca3b5
int32_t vt_stack_mod = 0; |
auto qf = app.add_option("--vt_trace_flush_size", appConfig.vt_trace_flush_size, tflushmod, 0); | ||
auto o = app.add_option("--vt_trace_file", appConfig.vt_trace_file, tfile)->capture_default_str(); | ||
auto p = app.add_option("--vt_trace_dir", appConfig.vt_trace_dir, tdir)->capture_default_str(); | ||
auto q = app.add_option("--vt_trace_mod", appConfig.vt_trace_mod, tmod)->capture_default_str(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Difference:
vt/src/vt/configs/arguments/app_config.h
Line 129 in e8ca3b5
int32_t vt_trace_mod = 0; |
auto xy = app.add_option("--vt_lb_data_file_in", appConfig.vt_lb_data_file_in, lb_data_file_in, lbs); | ||
auto wx = app.add_option("--vt_lb_data_dir", appConfig.vt_lb_data_dir, lb_data_dir)->capture_default_str(); | ||
auto wy = app.add_option("--vt_lb_data_file", appConfig.vt_lb_data_file, lb_data_file)->capture_default_str(); | ||
auto xx = app.add_option("--vt_lb_data_dir_in", appConfig.vt_lb_data_dir_in, lb_data_dir_in)->capture_default_str(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vt/src/vt/configs/arguments/app_config.h
Line 149 in e8ca3b5
std::string vt_lb_data_file = "data.%p.json"; |
vs
auto lbd = "vt_lb_data";
auto wx = app.add_option("--vt_lb_data_dir", appConfig.vt_lb_data_dir, lb_data_dir)->capture_default_str(); | ||
auto wy = app.add_option("--vt_lb_data_file", appConfig.vt_lb_data_file, lb_data_file)->capture_default_str(); | ||
auto xx = app.add_option("--vt_lb_data_dir_in", appConfig.vt_lb_data_dir_in, lb_data_dir_in)->capture_default_str(); | ||
auto xy = app.add_option("--vt_lb_data_file_in", appConfig.vt_lb_data_file_in, lb_data_file_in)->capture_default_str(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vt/src/vt/configs/arguments/app_config.h
Line 151 in e8ca3b5
std::string vt_lb_data_file_in = "data.%p.json"; |
vs
auto lbs = "data";
I have double-checked and noted the differences in the comments. |
icpc 2021.6.0 shows following warning: `#3280: declaration hides variable "optarg" (declared at line 36 of "/usr/include/x86_64-linux-gnu/bits/getopt_core.h")`
b7af7e5
to
f233f14
Compare
Rebased on top of |
Upgrade
CLI11
to the latest release.Note: this keeps the added
namespace vt
in the header.fixes #1902