File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1717# First, list all .h and .c sources. It is necessary to list all .h
1818# files so that they will be picked up in the distribution tarball.
1919
20- AM_CPPFLAGS = $(common_cuda_CPPFLAGS )
20+ AM_CPPFLAGS = $(op_cuda_CPPFLAGS ) $( op_cudart_CPPFLAGS )
2121
2222dist_ompidata_DATA = help-ompi-mca-op-cuda.txt
2323
@@ -67,7 +67,7 @@ mcacomponent_LTLIBRARIES = $(component_install)
6767mca_op_cuda_la_SOURCES = $(sources )
6868mca_op_cuda_la_LIBADD = $(cu_sources:.cu=.lo )
6969mca_op_cuda_la_LDFLAGS = -module -avoid-version $(top_builddir ) /ompi/lib@OMPI_LIBMPI_NAME@.la \
70- $(accelerator_cuda_LIBS ) $(accelerator_cudart_LIBS )
70+ $(op_cuda_LIBS ) $(op_cudart_LIBS )
7171EXTRA_mca_op_cuda_la_SOURCES = $(cu_sources )
7272
7373# Specific information for static builds.
@@ -79,6 +79,6 @@ noinst_LTLIBRARIES = $(component_noinst)
7979libmca_op_cuda_la_SOURCES = $(sources )
8080libmca_op_cuda_la_LIBADD = $(cu_sources:.cu=.lo )
8181libmca_op_cuda_la_LDFLAGS = -module -avoid-version\
82- $(accelerator_cuda_LIBS ) $(accelerator_cudart_LIBS )
82+ $(op_cuda_LIBS ) $(op_cudart_LIBS )
8383EXTRA_libmca_op_cuda_la_SOURCES = $(cu_sources )
8484
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ AC_DEFUN([MCA_ompi_op_cuda_CONFIG],[
2424 AC_CONFIG_FILES([ompi/mca/op/cuda/Makefile])
2525
2626 OPAL_CHECK_CUDA([op_cuda])
27+ OPAL_CHECK_CUDART([op_cudart])
2728
2829 AS_IF([test " x$CUDA_SUPPORT " = " x1" ],
2930 [$1 ],
@@ -33,4 +34,8 @@ AC_DEFUN([MCA_ompi_op_cuda_CONFIG],[
3334 AC_SUBST([op_cuda_LDFLAGS])
3435 AC_SUBST([op_cuda_LIBS])
3536
37+ AC_SUBST([op_cudart_CPPFLAGS])
38+ AC_SUBST([op_cudart_LDFLAGS])
39+ AC_SUBST([op_cudart_LIBS])
40+
3641])dnl
You can’t perform that action at this time.
0 commit comments