Fix some formatting. Move some CUDA-aware mca parameter initialization earlier.
This commit was SVN r29162.
Этот коммит содержится в:
родитель
5da795247d
Коммит
c15b2a26b8
@ -15,6 +15,7 @@
|
|||||||
* reserved.
|
* reserved.
|
||||||
* Copyright (c) 2006-2007 Voltaire All rights reserved.
|
* Copyright (c) 2006-2007 Voltaire All rights reserved.
|
||||||
* Copyright (c) 2009-2010 Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2009-2010 Oracle and/or its affiliates. All rights reserved.
|
||||||
|
* Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -556,10 +557,6 @@ int btl_openib_register_mca_params(void)
|
|||||||
/* Default to bandwidth auto-detection */
|
/* Default to bandwidth auto-detection */
|
||||||
mca_btl_openib_module.super.btl_bandwidth = 0;
|
mca_btl_openib_module.super.btl_bandwidth = 0;
|
||||||
mca_btl_openib_module.super.btl_latency = 4;
|
mca_btl_openib_module.super.btl_latency = 4;
|
||||||
CHECK(mca_btl_base_param_register(
|
|
||||||
&mca_btl_openib_component.super.btl_version,
|
|
||||||
&mca_btl_openib_module.super));
|
|
||||||
|
|
||||||
#if OMPI_CUDA_SUPPORT /* CUDA_ASYNC_RECV */
|
#if OMPI_CUDA_SUPPORT /* CUDA_ASYNC_RECV */
|
||||||
/* Default is enabling CUDA asynchronous send copies */
|
/* Default is enabling CUDA asynchronous send copies */
|
||||||
CHECK(reg_bool("cuda_async_send", NULL,
|
CHECK(reg_bool("cuda_async_send", NULL,
|
||||||
@ -577,6 +574,9 @@ int btl_openib_register_mca_params(void)
|
|||||||
/* Turn of message coalescing - not sure if it works with GPU buffers */
|
/* Turn of message coalescing - not sure if it works with GPU buffers */
|
||||||
mca_btl_openib_component.use_message_coalescing = 0;
|
mca_btl_openib_component.use_message_coalescing = 0;
|
||||||
#endif /* OMPI_CUDA_SUPPORT */
|
#endif /* OMPI_CUDA_SUPPORT */
|
||||||
|
CHECK(mca_btl_base_param_register(
|
||||||
|
&mca_btl_openib_component.super.btl_version,
|
||||||
|
&mca_btl_openib_module.super));
|
||||||
|
|
||||||
/* setup all the qp stuff */
|
/* setup all the qp stuff */
|
||||||
/* round mid_qp_size to smallest power of two */
|
/* round mid_qp_size to smallest power of two */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user