File: configure.m4

package info (click to toggle)
openmpi 5.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 201,684 kB
  • sloc: ansic: 613,078; makefile: 42,353; sh: 11,194; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,179; python: 1,859; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (28 lines) | stat: -rw-r--r-- 792 bytes parent folder | download | duplicates (4)
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
# -*- shell-script -*-
#
# Copyright (c) 2022      Advanced Micro Devices, Inc. All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#

# MCA_opal_accelerator_rocm_CONFIG([action-if-can-compile],
#                                  [action-if-cant-compile])
# ------------------------------------------------
AC_DEFUN([MCA_opal_accelerator_rocm_CONFIG],[
    AC_CONFIG_FILES([opal/mca/accelerator/rocm/Makefile])

    OPAL_CHECK_ROCM([opal_rocm],
	        [opal_rocm_happy="yes"],
	        [opal_rocm_happy="no"])
    OPAL_SUMMARY_ADD([Accelerators], [ROCm support], [], [$opal_rocm_happy])

    AS_IF([test "$opal_rocm_happy" = "yes"],
	  [$1],
	  [$2])
    AC_SUBST([opal_rocm_LDFLAGS])
    AC_SUBST([opal_rocm_LIBS])
    AC_SUBST([opal_rocm_CPPFLAGS])
])dnl