"Fossies" - the Fresh Open Source Software Archive 
Member "scalasca-2.6/vendor/cubew/build-config/m4/ac_cube_mic.m4" (19 Apr 2021, 2107 Bytes) of package /linux/misc/scalasca-2.6.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 ##*************************************************************************##
2 ## CUBE http://www.scalasca.org/ ##
3 ##*************************************************************************##
4 ## Copyright (c) 2017-2018 ##
5 ## Forschungszentrum Juelich GmbH, Juelich Supercomputing Centre ##
6 ## ##
7 ## This software may be modified and distributed under the terms of ##
8 ## a BSD-style license. See the COPYING file in the package base ##
9 ## directory for details. ##
10 ##*************************************************************************##
11
12
13 # AC_CUBE_DETECT_MIC_BUILD
14 # ---------------------
15 # Guesstimates whether a native MIC build already exists in the given install
16 # locations. The decision is based on the existance of a 'cubew-config-mic'
17 # tool in '${libexecdir}/cubew', which is of course only a very crude heuristic.
18 #
19 # List of configure variables set:
20 # `cubew_have_mic_support`:: Set to 'yes' if a native MIC build was detected,
21 # 'no' otherwise.
22 #
23 # List of provided config header defines:
24 # `HAVE_MIC_SUPPORT`:: Defined if a native MIC build was detected
25 #
26 # List of provided automake conditionals:
27 # `MIC_SUPPORT`:: Enabled if a native MIC build was detected
28 #
29 AC_DEFUN([AC_CUBEW_DETECT_MIC_BUILD], [
30 AC_MSG_CHECKING([for native Intel MIC build])
31 cubew_have_mic_support=no
32 AM_COND_IF([PLATFORM_MIC],
33 [],
34 [AS_IF([AS_EXECUTABLE_P([${PKGLIBEXECDIR}/cubew-config-mic])],
35 [cubew_have_mic_support=yes
36 AC_DEFINE([HAVE_MIC_SUPPORT],
37 [1],
38 [Defined to 1 if native MIC build exists])
39 ])
40 ])
41 AM_CONDITIONAL([MIC_SUPPORT], [test x$cubew_have_mic_support = "xyes"])
42 AC_MSG_RESULT([$cubew_have_mic_support])
43 ])# AC_CUBEW_DETECT_MIC_BUILD