1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
# -*- shell-script -*-
#
# Copyright (c) 2011-2013 NVIDIA Corporation. All rights reserved.
# Copyright (c) 2013 The University of Tennessee and The University
# of Tennessee Research Foundation. All rights
# reserved.
# Copyright (c) 2022 Amazon.com, Inc. or its affiliates.
# All Rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
#
# If CUDA support was requested, then build the CUDA support library.
# This code checks makes sure the check was done earlier by the
# opal_check_cuda.m4 code. It also copies the flags and libs under
# opal_cuda_CPPFLAGS, opal_cuda_LDFLAGS, and opal_cuda_LIBS
AC_DEFUN([MCA_opal_accelerator_cuda_CONFIG],[
AC_CONFIG_FILES([opal/mca/accelerator/cuda/Makefile])
OPAL_CHECK_CUDA([accelerator_cuda])
AS_IF([test "x$CUDA_SUPPORT" = "x1"],
[$1],
[$2])
AC_SUBST([accelerator_cuda_CPPFLAGS])
AC_SUBST([accelerator_cuda_LDFLAGS])
AC_SUBST([accelerator_cuda_LIBS])
])dnl
|