Skip to content

Commit 7bb4b95

Browse files
committed
Minor tweak to CUDA op configury
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
1 parent 1c6667d commit 7bb4b95

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

ompi/mca/op/cuda/Makefile.am

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
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

2222
dist_ompidata_DATA = help-ompi-mca-op-cuda.txt
2323

@@ -67,7 +67,7 @@ mcacomponent_LTLIBRARIES = $(component_install)
6767
mca_op_cuda_la_SOURCES = $(sources)
6868
mca_op_cuda_la_LIBADD = $(cu_sources:.cu=.lo)
6969
mca_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)
7171
EXTRA_mca_op_cuda_la_SOURCES = $(cu_sources)
7272

7373
# Specific information for static builds.
@@ -79,6 +79,6 @@ noinst_LTLIBRARIES = $(component_noinst)
7979
libmca_op_cuda_la_SOURCES = $(sources)
8080
libmca_op_cuda_la_LIBADD = $(cu_sources:.cu=.lo)
8181
libmca_op_cuda_la_LDFLAGS = -module -avoid-version\
82-
$(accelerator_cuda_LIBS) $(accelerator_cudart_LIBS)
82+
$(op_cuda_LIBS) $(op_cudart_LIBS)
8383
EXTRA_libmca_op_cuda_la_SOURCES = $(cu_sources)
8484

ompi/mca/op/cuda/configure.m4

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)