mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] architecture.in: Add AltiVec tuning.
@ 2022-11-30 12:22 Christian Melki
  2022-11-30 16:46 ` Ahmad Fatoum
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Melki @ 2022-11-30 12:22 UTC (permalink / raw)
  To: ptxdist

Even if it looks like PPC is a dying breed,
add an altivec knob for PPC AltiVec/VMX/Velocity engine
tuning. Altivec is present in more modern designs.
Afaiu, Most designs that are >=  Power ISA v.2.03
According to Wikipedia:

Motorola/Freescale
    MPC7400
    MPC7410
    MPC7450
    MPC7445/7455
    MPC7447/7447A/7457
    MPC7448
    MPC8641/8641D
    MPC8640/8640D
    MPC8610
    T2081/T2080
    T4080/T4160/T4240
    B4420/B4860

IBM
    PowerPC 970
    PowerPC 970FX
    PowerPC 970MP
    Xenon
    Cell B.E.
    PowerXCell 8i
    POWER6/POWER6+
    POWER7/POWER7+
    POWER8
    POWER9
    Power10

P.A. Semi
    PA6T

Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
 platforms/architecture.in | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/platforms/architecture.in b/platforms/architecture.in
index 10df8deb2..deab8470a 100644
--- a/platforms/architecture.in
+++ b/platforms/architecture.in
@@ -269,6 +269,18 @@ config ARCH_ARMV7_NEON
 	bool
 	default ARCH_ARM_NEON if ARCH_ARM
 
+#
+# PPC vector instructions
+#
+config ARCH_PPC_ALTIVEC
+	bool
+	prompt "AltiVec/VMX/Velocity Engine"
+	depends on ARCH_PPC
+	help
+	  This enables optimizations corresponding to single precision
+	  floating point SIMD instructions on PPC processors.
+	  This is present on more modern CPUs.
+
 #
 # hardware / software floating point
 #
-- 
2.34.1




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [PATCH] architecture.in: Add AltiVec tuning.
  2022-11-30 12:22 [ptxdist] [PATCH] architecture.in: Add AltiVec tuning Christian Melki
@ 2022-11-30 16:46 ` Ahmad Fatoum
  0 siblings, 0 replies; 2+ messages in thread
From: Ahmad Fatoum @ 2022-11-30 16:46 UTC (permalink / raw)
  To: ptxdist, Christian Melki

Hello Christian,

On 30.11.22 13:22, Christian Melki wrote:
> +#
> +# PPC vector instructions
> +#
> +config ARCH_PPC_ALTIVEC
> +	bool
> +	prompt "AltiVec/VMX/Velocity Engine"
> +	depends on ARCH_PPC
> +	help
> +	  This enables optimizations corresponding to single precision
> +	  floating point SIMD instructions on PPC processors.

                        ^ and integer

> +	  This is present on more modern CPUs.

I assume you intend to extend e.g. FFTW in the future to evaluate
this symbol?

With above addition:

Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>


Cheers,
Ahmad

> +
>  #
>  # hardware / software floating point
>  #

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-30 16:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30 12:22 [ptxdist] [PATCH] architecture.in: Add AltiVec tuning Christian Melki
2022-11-30 16:46 ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox