mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-30 03:21:27 +00:00
18 lines
250 B
Bash
18 lines
250 B
Bash
|
#! /bin/sh
|
||
|
|
||
|
# wrapper to generate two codelet versions, with and without
|
||
|
# fma
|
||
|
|
||
|
genfft=$1
|
||
|
shift
|
||
|
|
||
|
echo "#if defined(ARCH_PREFERS_FMA) || defined(ISA_EXTENSION_PREFERS_FMA)"
|
||
|
echo
|
||
|
$genfft -fma $*
|
||
|
echo
|
||
|
echo "#else"
|
||
|
echo
|
||
|
$genfft $*
|
||
|
echo
|
||
|
echo "#endif"
|