|
本帖最后由 退休老干部 于 2021-2-27 13:19 编辑
您好,不好意思打扰了,我想请问一下关于NAMD版本编译的问题。现在我想比较不同核数(8核,16核,32核)并行的运行速度,一个队列有16个核,如果测试32个核的话,就需要分节点了,所以我应该编译哪个版本啊,我尝试编译verbs-linux-x86_64 smp,发现build的时候就出现这样的问题了:
In file included from cpuaffinity.C:28:0:
/usr/include/infiniband/verbs.h: In function ‘verbs_context* verbs_get_ctx(const ibv_context*)’:
/usr/include/infiniband/verbs.h:924:10: error: cannot convert ‘ibv_context’ to ‘const int’ in initialization
NULL : container_of(ctx, struct verbs_context, context);
^
/usr/include/infiniband/verbs.h:924:10: error: expected ‘,’ or ‘;’ before ‘*’ token
NULL : container_of(ctx, struct verbs_context, context);
^
/usr/include/infiniband/verbs.h:924:10: error: ‘__mptr’ was not declared in this scope
NULL : container_of(ctx, struct verbs_context, context);
^
/usr/include/infiniband/verbs.h:923:62: error: third operand to the conditional operator is of type ‘void’, but the second operand is neither a throw-expression nor of type ‘void’
return (!ctx || (ctx->abi_compat != ((uint8_t *)NULL) - 1)) ?
^
/usr/include/infiniband/verbs.h: In function ‘verbs_device* verbs_get_device(const ibv_device*)’:
/usr/include/infiniband/verbs.h:931:10: error: cannot convert ‘ibv_device’ to ‘const int’ in initialization
NULL : container_of(dev, struct verbs_device, device);
^
/usr/include/infiniband/verbs.h:931:10: error: expected ‘,’ or ‘;’ before ‘*’ token
NULL : container_of(dev, struct verbs_device, device);
^
/usr/include/infiniband/verbs.h:931:10: error: ‘__mptr’ was not declared in this scope
NULL : container_of(dev, struct verbs_device, device);
^
/usr/include/infiniband/verbs.h:930:34: error: third operand to the conditional operator is of type ‘void’, but the second operand is neither a throw-expression nor of type ‘void’
return (dev->ops.alloc_context) ?
^
Fatal Error by charmc in directory /gpfs01/home/xiafei2/yqwang/software/NAMD_2.14_Source/charm-6.10.2/verbs-linux-x86_64-smp/tmp
Command g++ -DCMK_GFORTRAN -D_REENTRANT -I../bin/../include -D__CHARMC__=1 -I. -O3 -U_FORTIFY_SOURCE -fno-stack-protector -std=c++11 -fno-lifetime-dse -c cpuaffinity.C -o cpuaffinity.o returned error code 1
charmc exiting...
gmake: *** [cpuaffinity.o] Error 1
-------------------------------------------------
Charm++ NOT BUILT. Either cd into verbs-linux-x86_64-smp/tmp and try
to resolve the problems yourself, visit
http://charm.cs.illinois.edu/
for more information. Otherwise, email the developers at charm@cs.illinois.edu
请问这是什么原因? |
|