File: Makefile_hip.mtest

package info (click to toggle)
mpich 4.3.0%2Breally4.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 419,120 kB
  • sloc: ansic: 1,215,557; cpp: 74,755; javascript: 40,763; f90: 20,649; sh: 18,463; xml: 14,418; python: 14,397; perl: 13,772; makefile: 9,279; fortran: 8,063; java: 4,553; asm: 324; ruby: 176; lisp: 19; php: 8; sed: 4
file content (32 lines) | stat: -rw-r--r-- 946 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
##
## Copyright (C) by Argonne National Laboratory
##     See COPYRIGHT in top-level directory
##

## This is an automake makefile fragment that should be included by:
##
##   include $(top_srcdir)/Makefile_hip.mtest
##
## This makefile is for HIP tests (compiled with nvcc).

include $(top_srcdir)/Makefile_single.mtest

AM_DEFAULT_SOURCE_EXT = .hip

# Because libtool does not have a .hip language tag yet, some of the key
# variables and patter rule is not generated. We manually supply them here.

# Automake silent build macros
AM_V_CCLD = $(am__v_CCLD_$(V))
am__v_CCLD_ = $(am__v_CCLD_0)
am__v_CCLD_0 = @echo "  CCLD    " $@;
am__v_CCLD_1 =

# the LINK variable
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
       $(LIBTOOLFLAGS) --mode=link $(CXX) $(AM_CFLAGS) $(CFLAGS) \
       $(AM_LDFLAGS) $(LDFLAGS) -o $@

# How to compile .hip files -- compile with mpicc, but using nvcc
.hip.o:
	MPICH_CC="$(HIPCC)" $(CC) -c -o $@ $<