Enable some CUDA-aware support on tcp btl. Only when configured in.
This commit was SVN r29364.
Этот коммит содержится в:
родитель
676d48d384
Коммит
66725f6973
@ -10,6 +10,7 @@
|
||||
# Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
# Copyright (c) 2009-2010 Cisco Systems, Inc. All rights reserved.
|
||||
# Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
|
||||
# $COPYRIGHT$
|
||||
#
|
||||
# Additional copyrights may follow
|
||||
@ -54,6 +55,10 @@ mcacomponentdir = $(pkglibdir)
|
||||
mcacomponent_LTLIBRARIES = $(component)
|
||||
mca_btl_tcp_la_SOURCES = $(component_sources)
|
||||
mca_btl_tcp_la_LDFLAGS = -module -avoid-version
|
||||
if MCA_ompi_cuda_support
|
||||
mca_btl_tcp_la_LIBADD = \
|
||||
$(top_ompi_builddir)/ompi/mca/common/cuda/libmca_common_cuda.la
|
||||
endif
|
||||
|
||||
noinst_LTLIBRARIES = $(lib)
|
||||
libmca_btl_tcp_la_SOURCES = $(lib_sources)
|
||||
|
@ -14,6 +14,7 @@
|
||||
* Copyright (c) 2009 Oak Ridge National Laboratory
|
||||
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -68,6 +69,9 @@
|
||||
#include "btl_tcp_proc.h"
|
||||
#include "btl_tcp_frag.h"
|
||||
#include "btl_tcp_endpoint.h"
|
||||
#if OMPI_CUDA_SUPPORT
|
||||
#include "ompi/mca/common/cuda/common_cuda.h"
|
||||
#endif /* OMPI_CUDA_SUPPORT */
|
||||
|
||||
|
||||
/*
|
||||
@ -1080,6 +1084,10 @@ mca_btl_base_module_t** mca_btl_tcp_component_init(int *num_btl_modules,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if OMPI_CUDA_SUPPORT
|
||||
mca_common_cuda_stage_one_init();
|
||||
#endif /* OMPI_CUDA_SUPPORT */
|
||||
|
||||
memcpy(btls, mca_btl_tcp_component.tcp_btls, mca_btl_tcp_component.tcp_num_btls*sizeof(mca_btl_tcp_module_t*));
|
||||
*num_btl_modules = mca_btl_tcp_component.tcp_num_btls;
|
||||
return btls;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user