1# -*- shell-script -*- 2# 3# Copyright (c) 2011-2013 NVIDIA Corporation. All rights reserved. 4# Copyright (c) 2013 The University of Tennessee and The University 5# of Tennessee Research Foundation. All rights 6# reserved. 7# $COPYRIGHT$ 8# 9# Additional copyrights may follow 10# 11# $HEADER$ 12# 13 14# 15# If CUDA support was requested, then build the CUDA support library. 16# This code checks just makes sure the check was done earlier by the 17# opal_check_cuda.m4 code. 18# 19 20AC_DEFUN([MCA_opal_common_cuda_CONFIG],[ 21 AC_CONFIG_FILES([opal/mca/common/cuda/Makefile]) 22 23 # make sure that CUDA-aware checks have been done 24 AC_REQUIRE([OPAL_CHECK_CUDA]) 25 26 AS_IF([test "x$CUDA_SUPPORT" = "x1"], 27 [$1], 28 [$2]) 29 30 # Copy over the includes needed to build CUDA 31 common_cuda_CPPFLAGS=$opal_datatype_cuda_CPPFLAGS 32 AC_SUBST([common_cuda_CPPFLAGS]) 33 34])dnl 35