File: configure.m4

package info (click to toggle)
openmpi 5.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 202,312 kB
  • sloc: ansic: 612,441; makefile: 42,495; sh: 11,230; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,154; python: 1,856; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (35 lines) | stat: -rw-r--r-- 1,226 bytes parent folder | download | duplicates (2)
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
# -*- shell-script -*-
#
# Copyright (c) 2004-2010 The Trustees of Indiana University.
#                         All rights reserved.
# Copyright (c) 2012-2015 Cisco Systems, Inc.  All rights reserved.
# Copyright (c) 2015      Intel, Inc. All rights reserved.
# Copyright (c) 2015      NVIDIA, Inc.  All rights reserved.
# Copyright (c) 2022      Advanced Micro Devices, Inc.  All rights reserved.
#
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#

# OMPI_MPIEXT_rocm_CONFIG([action-if-found], [action-if-not-found])
# -----------------------------------------------------------
AC_DEFUN([OMPI_MPIEXT_rocm_CONFIG],[
    AC_CONFIG_FILES([ompi/mpiext/rocm/Makefile])
    AC_CONFIG_FILES([ompi/mpiext/rocm/c/Makefile])
    AC_CONFIG_HEADERS([ompi/mpiext/rocm/c/mpiext_rocm_c.h])

    AC_DEFINE_UNQUOTED([MPIX_ROCM_AWARE_SUPPORT], [$ROCM_SUPPORT],
                       [Macro that is set to 1 when ROCM-aware support is configured in and 0 when it is not])

    
    # We compile this whether ROCm support was requested or not. It allows
    # us to to detect if we have ROCm support.
    AS_IF([test "$ENABLE_rocm" = "1" || \
           test "$ENABLE_EXT_ALL" = "1"],
          [$1],
          [$2])
    
])