Conversation
daosbuild1
left a comment
There was a problem hiding this comment.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-307/1/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
| }; | ||
|
|
||
| static int my_rank; | ||
| volatile static int myflag = 0; |
There was a problem hiding this comment.
(style) do not initialise statics to 0
(style) Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt
(style) storage class should be at the beginning of the declaration
| int attach_retries = opts.num_attach_retries; | ||
| int rc = 0; | ||
| int myflag = 0; | ||
| while (myflag) |
There was a problem hiding this comment.
(style) Missing a blank line after declarations
| D_ASPRINTF(*string, "%s://%s/%s:%d", plugin_str, | ||
| crt_na_ofi_conf.noc_domain, | ||
| crt_na_ofi_conf.noc_ip_str, port); | ||
| // D_ASPRINTF(*string, "%s://%s:%d", plugin_str, |
There was a problem hiding this comment.
(style) do not use C99 // comments
| crt_na_ofi_conf.noc_domain, | ||
| crt_na_ofi_conf.noc_ip_str, port); | ||
| // D_ASPRINTF(*string, "%s://%s:%d", plugin_str, | ||
| // crt_na_ofi_conf.noc_ip_str, port); |
There was a problem hiding this comment.
(style) do not use C99 // comments
|
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-307/1/execution/node/44/log |
|
Test stage Build on CentOS 7 with Clang completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-307/1/execution/node/258/log |
2509889 to
38749b1
Compare
daosbuild1
left a comment
There was a problem hiding this comment.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-307/2/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
| }; | ||
|
|
||
| static int my_rank; | ||
| volatile static int myflag = 0; |
There was a problem hiding this comment.
(style) do not initialise statics to 0
(style) Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt
(style) storage class should be at the beginning of the declaration
| int attach_retries = opts.num_attach_retries; | ||
| int rc = 0; | ||
| int myflag = 0; | ||
| while (myflag) |
There was a problem hiding this comment.
(style) Missing a blank line after declarations
| D_ASPRINTF(*string, "%s://%s/%s:%d", plugin_str, | ||
| crt_na_ofi_conf.noc_domain, | ||
| crt_na_ofi_conf.noc_ip_str, port); | ||
| // D_ASPRINTF(*string, "%s://%s:%d", plugin_str, |
There was a problem hiding this comment.
(style) do not use C99 // comments
| crt_na_ofi_conf.noc_domain, | ||
| crt_na_ofi_conf.noc_ip_str, port); | ||
| // D_ASPRINTF(*string, "%s://%s:%d", plugin_str, | ||
| // crt_na_ofi_conf.noc_ip_str, port); |
There was a problem hiding this comment.
(style) do not use C99 // comments
|
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-307/2/execution/node/44/log |
|
Test stage Build on CentOS 7 with Clang completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-307/2/execution/node/262/log |
38749b1 to
48f7d46
Compare
daosbuild1
left a comment
There was a problem hiding this comment.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-307/3/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
| }; | ||
|
|
||
| static int my_rank; | ||
| volatile static int myflag = 0; |
There was a problem hiding this comment.
(style) do not initialise statics to 0
(style) Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt
(style) storage class should be at the beginning of the declaration
| int attach_retries = opts.num_attach_retries; | ||
| int rc = 0; | ||
| int myflag = 0; | ||
| while (myflag) |
There was a problem hiding this comment.
(style) Missing a blank line after declarations
| D_ASPRINTF(*string, "%s://%s/%s:%d", plugin_str, | ||
| crt_na_ofi_conf.noc_domain, | ||
| crt_na_ofi_conf.noc_ip_str, port); | ||
| // D_ASPRINTF(*string, "%s://%s:%d", plugin_str, |
There was a problem hiding this comment.
(style) do not use C99 // comments
| crt_na_ofi_conf.noc_domain, | ||
| crt_na_ofi_conf.noc_ip_str, port); | ||
| // D_ASPRINTF(*string, "%s://%s:%d", plugin_str, | ||
| // crt_na_ofi_conf.noc_ip_str, port); |
There was a problem hiding this comment.
(style) do not use C99 // comments
|
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-307/3/execution/node/44/log |
|
Test stage Build on CentOS 7 with Clang completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-307/3/execution/node/254/log |
48f7d46 to
10f0146
Compare
daosbuild1
left a comment
There was a problem hiding this comment.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-307/4/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
| }; | ||
|
|
||
| static int my_rank; | ||
| volatile static int myflag = 0; |
There was a problem hiding this comment.
(style) do not initialise statics to 0
(style) Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt
(style) storage class should be at the beginning of the declaration
| int attach_retries = opts.num_attach_retries; | ||
| int rc = 0; | ||
| int myflag = 0; | ||
| while (myflag) |
There was a problem hiding this comment.
(style) Missing a blank line after declarations
| D_ASPRINTF(*string, "%s://%s/%s:%d", plugin_str, | ||
| crt_na_ofi_conf.noc_domain, | ||
| crt_na_ofi_conf.noc_ip_str, port); | ||
| // D_ASPRINTF(*string, "%s://%s:%d", plugin_str, |
There was a problem hiding this comment.
(style) do not use C99 // comments
| crt_na_ofi_conf.noc_domain, | ||
| crt_na_ofi_conf.noc_ip_str, port); | ||
| // D_ASPRINTF(*string, "%s://%s:%d", plugin_str, | ||
| // crt_na_ofi_conf.noc_ip_str, port); |
There was a problem hiding this comment.
(style) do not use C99 // comments
|
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-307/4/execution/node/44/log |
|
Test stage Build on CentOS 7 with Clang completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-307/4/execution/node/251/log |
10f0146 to
aa6d98c
Compare
daosbuild1
left a comment
There was a problem hiding this comment.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-307/5/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
| }; | ||
|
|
||
| static int my_rank; | ||
| volatile static int myflag = 0; |
There was a problem hiding this comment.
(style) do not initialise statics to 0
(style) Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt
(style) storage class should be at the beginning of the declaration
| #include <cart/api.h> | ||
|
|
||
| #include "crt_internal.h" | ||
| volatile int myflag = 0; |
There was a problem hiding this comment.
(style) do not initialise globals to 0
(style) Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt
| D_ASPRINTF(*string, "%s://%s/%s:%d", plugin_str, | ||
| crt_na_ofi_conf.noc_domain, | ||
| crt_na_ofi_conf.noc_ip_str, port); | ||
| // D_ASPRINTF(*string, "%s://%s:%d", plugin_str, |
There was a problem hiding this comment.
(style) do not use C99 // comments
| crt_na_ofi_conf.noc_domain, | ||
| crt_na_ofi_conf.noc_ip_str, port); | ||
| // D_ASPRINTF(*string, "%s://%s:%d", plugin_str, | ||
| // crt_na_ofi_conf.noc_ip_str, port); |
There was a problem hiding this comment.
(style) do not use C99 // comments
|
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-307/5/execution/node/44/log |
|
Test stage Build on CentOS 7 with Clang completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-307/5/execution/node/266/log |
aa6d98c to
3d96f55
Compare
daosbuild1
left a comment
There was a problem hiding this comment.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-307/6/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
| }; | ||
|
|
||
| static int my_rank; | ||
| volatile static int myflag = 0; |
There was a problem hiding this comment.
(style) do not initialise statics to 0
(style) Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt
(style) storage class should be at the beginning of the declaration
|
|
||
| if (crt_gdata.cg_na_plugin == CRT_NA_OFI_SOCKETS) | ||
| crt_na_ofi_config_fini(); | ||
| // if (crt_gdata.cg_na_plugin == CRT_NA_OFI_SOCKETS) |
There was a problem hiding this comment.
(style) do not use C99 // comments
| #include <cart/api.h> | ||
|
|
||
| #include "crt_internal.h" | ||
| volatile int myflag = 0; |
There was a problem hiding this comment.
(style) do not initialise globals to 0
(style) Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt
| D_ASPRINTF(*string, "%s://%s/%s:%d", plugin_str, | ||
| crt_na_ofi_conf.noc_domain, | ||
| crt_na_ofi_conf.noc_ip_str, port); | ||
| // D_ASPRINTF(*string, "%s://%s:%d", plugin_str, |
There was a problem hiding this comment.
(style) do not use C99 // comments
| crt_na_ofi_conf.noc_domain, | ||
| crt_na_ofi_conf.noc_ip_str, port); | ||
| // D_ASPRINTF(*string, "%s://%s:%d", plugin_str, | ||
| // crt_na_ofi_conf.noc_ip_str, port); |
There was a problem hiding this comment.
(style) do not use C99 // comments
|
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-307/6/execution/node/44/log |
|
Test stage Build on CentOS 7 with Clang completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-307/6/execution/node/275/log |
let psm2 use ip:port addr format and use nameserver to resolve it to the psm2 native addr. This patch is based off the cart commit used by daos master as of 2019-12-11. note: 1) orterun needs to use this flag: --mca mtl ^psm2,ofi 2) server side needs to pass this shell variable under orterun: -x FI_PSM2_NAME_SERVER=1 this variable tells psm2 to start the name server 3) optionally, a OFI_PORT variable can be specified on either the server side or client side. If OFI_PORT is not specified, cart will pick a unused port on its own. 4) to make a server use the same address across restarts, supply this variable when launching the server: -x OFI_PORT=xxx Signed-off-by: Yulu Jia <yulu.jia@intel.com>
3d96f55 to
a6ea906
Compare
daosbuild1
left a comment
There was a problem hiding this comment.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/cart/job/PR-307/7/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
| }; | ||
|
|
||
| static int my_rank; | ||
| volatile static int myflag = 0; |
There was a problem hiding this comment.
(style) do not initialise statics to 0
(style) Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt
(style) storage class should be at the beginning of the declaration
|
|
||
| if (crt_gdata.cg_na_plugin == CRT_NA_OFI_SOCKETS) | ||
| crt_na_ofi_config_fini(); | ||
| // if (crt_gdata.cg_na_plugin == CRT_NA_OFI_SOCKETS) |
There was a problem hiding this comment.
(style) do not use C99 // comments
| #include <cart/api.h> | ||
|
|
||
| #include "crt_internal.h" | ||
| volatile int myflag = 0; |
There was a problem hiding this comment.
(style) do not initialise globals to 0
(style) Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt
| D_ASPRINTF(*string, "%s://%s/%s:%d", plugin_str, | ||
| crt_na_ofi_conf.noc_domain, | ||
| crt_na_ofi_conf.noc_ip_str, port); | ||
| // D_ASPRINTF(*string, "%s://%s:%d", plugin_str, |
There was a problem hiding this comment.
(style) do not use C99 // comments
| crt_na_ofi_conf.noc_domain, | ||
| crt_na_ofi_conf.noc_ip_str, port); | ||
| // D_ASPRINTF(*string, "%s://%s:%d", plugin_str, | ||
| // crt_na_ofi_conf.noc_ip_str, port); |
There was a problem hiding this comment.
(style) do not use C99 // comments
|
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-307/7/execution/node/44/log |
|
Test stage Build on CentOS 7 with Clang completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/cart/view/change-requests/job/PR-307/7/execution/node/239/log |
let psm2 use ip:port addr format and use nameserver to resolve it to the
psm2 native addr