<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Single_instruction%2C_multiple_data</id>
	<title>Single instruction, multiple data - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Single_instruction%2C_multiple_data"/>
	<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Single_instruction,_multiple_data&amp;action=history"/>
	<updated>2026-07-06T12:56:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.tachyony.co.uk/w/index.php?title=Single_instruction,_multiple_data&amp;diff=53499&amp;oldid=prev</id>
		<title>imported&gt;Artoria2e5: /* SPMD-on-SIMD */ cite</title>
		<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Single_instruction,_multiple_data&amp;diff=53499&amp;oldid=prev"/>
		<updated>2026-03-20T11:55:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;SPMD-on-SIMD: &lt;/span&gt; cite&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Type of parallel processing}}&lt;br /&gt;
{{Redirect|SIMD|the cryptographic hash function|SIMD (hash function)|the Scottish statistical tool|Scottish index of multiple deprivation}}&lt;br /&gt;
{{See also|SIMD within a register|Single instruction, multiple threads}}&lt;br /&gt;
{{Update|inaccurate=yes|date=March 2017}}&lt;br /&gt;
{{Flynn&amp;#039;s Taxonomy}}&lt;br /&gt;
&lt;br /&gt;
[[File:SIMD2.svg|thumb|Single instruction, multiple data]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Single instruction, multiple data&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;SIMD&amp;#039;&amp;#039;&amp;#039;) is a type of [[parallel computing]] (processing) in [[Flynn&amp;#039;s taxonomy]]. SIMD describes computers with [[multiple processing elements]] that perform the same operation on multiple data points simultaneously. SIMD can be internal (part of the hardware design) and it can be directly accessible through an [[instruction set architecture]] (ISA), but it should not be confused with an ISA.&lt;br /&gt;
&lt;br /&gt;
Such machines exploit [[Data parallelism|data level parallelism]], but not [[Concurrent computing|concurrency]]: there are simultaneous (parallel) computations, but each unit performs exactly the same instruction at any given moment (just with different data). A simple example is to add many pairs of numbers together, all of the SIMD units are performing an addition, but each one has different pairs of values to add. SIMD is especially applicable to common tasks such as adjusting the contrast in a [[digital image]] or adjusting the volume of [[digital audio]]. Most modern [[central processing unit]] (CPU) designs include SIMD instructions to improve the performance of [[multimedia]] use. In recent CPUs, SIMD units are tightly coupled with cache hierarchies and prefetch mechanisms, which minimize latency during large block operations. For instance, AVX-512-enabled processors can prefetch entire cache lines and apply fused multiply-add operations (FMA) in a single SIMD cycle.&lt;br /&gt;
&lt;br /&gt;
== Confusion between SIMT and SIMD ==&lt;br /&gt;
{{See also|SIMD within a register|Single instruction, multiple threads|Vector processor}}&lt;br /&gt;
&lt;br /&gt;
[[Image:ILLIAC_IV.jpg|thumb|[[ILLIAC IV]] Array overview, from ARPA-funded Introductory description by Steward Denenberg, July 15, 1971&amp;lt;ref&amp;gt;{{Cite web | title=Archived copy | url=https://apps.dtic.mil/sti/tr/pdf/ADA954882.pdf | archive-url=https://web.archive.org/web/20240427173522/https://apps.dtic.mil/sti/tr/pdf/ADA954882.pdf | archive-date=2024-04-27}}&amp;lt;/ref&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
SIMD has three different subcategories in [[Flynn&amp;#039;s taxonomy#Single instruction stream, multiple data streams (SIMD)|Flynn&amp;#039;s 1972 Taxonomy]], one of which is [[single instruction, multiple threads]] (SIMT). SIMT should not be confused with [[Thread (computing)|software threads]] or [[Multithreading (computer architecture)|hardware threads]], both of which are task time-sharing (time-slicing). SIMT is true simultaneous parallel hardware-level execution, such as in the [[ILLIAC IV]].&lt;br /&gt;
&lt;br /&gt;
SIMD should not be confused with [[Vector processing]], characterized by the [[Cray 1]] and  clarified in [[Duncan&amp;#039;s taxonomy]]. The&lt;br /&gt;
[[Vector processor#Difference between SIMD and vector processors|difference between SIMD and vector processors]] is primarily the presence of a Cray-style {{code|SET VECTOR LENGTH}} instruction.&lt;br /&gt;
&lt;br /&gt;
==History==&lt;br /&gt;
The first known operational use to date of [[SIMD within a register]] was the [[TX-2]], in 1958. It was capable of 36-bit operations and two 18-bit or four 9-bit sub-word operations.&lt;br /&gt;
&lt;br /&gt;
The first commercial use of SIMD instructions was in the [[ILLIAC IV]], which was completed in 1972.&lt;br /&gt;
&lt;br /&gt;
[[vector processor|Vector supercomputers]] of the early 1970s such as the [[CDC STAR-100|CDC Star-100]] and the [[TI Advanced Scientific Computer|Texas Instruments ASC]] could operate on a &amp;quot;vector&amp;quot; of data with a single instruction. Vector processing was especially popularized by [[Cray]] in the 1970s and 1980s. Vector processing architectures are now considered separate from SIMD computers: [[Duncan&amp;#039;s Taxonomy]] includes them whereas [[Flynn&amp;#039;s Taxonomy]] does not, due to Flynn&amp;#039;s work (1966, 1972) pre-dating the [[Cray-1]] (1977). The complexity of Vector processors however inspired a simpler arrangement known as [[SIMD within a register]].&lt;br /&gt;
&lt;br /&gt;
The first era of modern SIMD computers was characterized by [[massively parallel processing]]-style [[supercomputer]]s such as the [[Thinking Machines Corporation|Thinking Machines]] [[Connection Machine]] CM-1 and CM-2. These computers had many limited-functionality processors that would work in parallel. For example, each of 65,536 single-bit processors in a Thinking Machines CM-2 would execute the same instruction at the same time, allowing, for instance, to logically combine 65,536 pairs of bits at a time, using a hypercube-connected network or processor-dedicated RAM to find its operands. Supercomputing moved away from the SIMD approach when inexpensive scalar [[multiple instruction, multiple data]] (MIMD) approaches based on commodity processors such as the [[Intel i860|Intel i860 XP]] became more powerful, and interest in SIMD waned.&amp;lt;ref&amp;gt;{{cite web|url=http://www.cs.kent.edu/~walker/classes/pdc.f01/lectures/MIMD-1.pdf|title=MIMD1 - XP/S, CM-5}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The current era of SIMD processors grew out of the desktop-computer market rather than the supercomputer market. As desktop processors became powerful enough to support real-time gaming and audio/video processing during the 1990s, demand grew for this type of computing power, and microprocessor vendors turned to SIMD to meet the demand.&amp;lt;ref name=&amp;quot;conte&amp;quot;&amp;gt;{{cite conference |title=The long and winding road to high-performance image processing with MMX/SSE |first1=G. |last1=Conte |first2=S. |last2=Tommesani |first3=F. |last3=Zanichelli |book-title=Proc. Fifth IEEE Int&amp;#039;l Workshop on Computer Architectures for Machine Perception |year=2000 |doi=10.1109/CAMP.2000.875989 |s2cid=13180531 |hdl=11381/2297671}}&amp;lt;/ref&amp;gt; This resurgence also coincided with the rise of [[DirectX]] and OpenGL shader models, which heavily leveraged SIMD under the hood. The graphics APIs encouraged programmers to adopt data-parallel programming styles, indirectly accelerating SIMD adoption in desktop software. Hewlett-Packard introduced [[Multimedia Acceleration eXtensions]] (MAX) instructions into [[PA-RISC]] 1.1 desktops in 1994 to accelerate MPEG decoding.&amp;lt;ref&amp;gt;{{cite book |first=R.B. |last=Lee |chapter=Realtime MPEG video via software decompression on a PA-RISC processor |title=digest of papers Compcon &amp;#039;95. Technologies for the Information Superhighway |year=1995 |pages=186–192 |doi=10.1109/CMPCON.1995.512384 |isbn=0-8186-7029-0|s2cid=2262046}}&amp;lt;/ref&amp;gt; Sun Microsystems introduced SIMD integer instructions in its &amp;quot;[[Visual Instruction Set|VIS]]&amp;quot; instruction set extensions in 1995, in its [[UltraSPARC|UltraSPARC I]] microprocessor. MIPS followed suit with their similar [[MDMX]] system.&lt;br /&gt;
&lt;br /&gt;
The first widely deployed desktop SIMD was with Intel&amp;#039;s [[MMX (instruction set)|MMX]] extensions to the [[x86]] architecture in 1996. This sparked the introduction of the much more powerful [[AltiVec]] system in the [[Motorola]] [[PowerPC]] and IBM&amp;#039;s [[IBM Power microprocessors|POWER]] systems. Intel responded in 1999 by introducing the all-new [[Streaming SIMD Extensions|SSE]] system. Since then, there have been several extensions to the SIMD instruction sets for both architectures. Advanced vector extensions AVX, [[AVX2]] and [[AVX-512]] are developed by Intel. AMD supports AVX, [[AVX2]], and [[AVX-512]] in their current products.&amp;lt;ref&amp;gt;{{Cite web |title=AMD Zen 4 AVX-512 Performance Analysis On The Ryzen 9 7950X Review |url=https://www.phoronix.com/review/amd-zen4-avx512 |access-date=2023-07-13 |website=www.phoronix.com |language=en}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Disadvantages==&lt;br /&gt;
With SIMD, an order of magnitude increase in code size is not uncommon, when compared to equivalent scalar or equivalent vector code, and an order of magnitude &amp;#039;&amp;#039;or greater&amp;#039;&amp;#039; effectiveness (work done per instruction) is achievable with Vector ISAs.&amp;lt;ref&amp;gt;{{cite web |last1=Patterson |first1=David |last2=Waterman |first2=Andrew |title=SIMD Instructions Considered Harmful |url=https://www.sigarch.org/simd-instructions-considered-harmful/ |website=SIGARCH |date=18 September 2017}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ARM&amp;#039;s [[Scalable Vector Extension]] takes another approach, known in [[Flynn&amp;#039;s taxonomy#Single instruction stream, multiple data streams (SIMD)|Flynn&amp;#039;s Taxonomy]] more commonly known today as [[Predication (computer architecture)#SIMD, SIMT and vector predication|&amp;quot;Predicated&amp;quot; (masked)]] SIMD. This approach is not as compact as [[vector processing]] but is still far better than non-predicated SIMD. Detailed comparative examples are given at {{section link|Vector processor|Vector instruction example}}.&lt;br /&gt;
&lt;br /&gt;
==Chronology==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ SIMD supercomputer examples excluding [[vector processor]]s&lt;br /&gt;
|-&lt;br /&gt;
! Year !! Example&lt;br /&gt;
|-&lt;br /&gt;
| 1974 || [[ILLIAC IV]] - an Array Processor comprising scalar 64-bit PEs&lt;br /&gt;
|-&lt;br /&gt;
| 1974 || [[ICL Distributed Array Processor]] (DAP)&lt;br /&gt;
|-&lt;br /&gt;
| 1976 || [[Burroughs Scientific Processor]]&lt;br /&gt;
|-&lt;br /&gt;
| 1981 || [[Geometric-Arithmetic Parallel Processor]] from [[Martin Marietta]] (continued at [[Lockheed Martin]], then at [http://www.teranex.com Teranex] and [[Silicon Optix]])&lt;br /&gt;
|-&lt;br /&gt;
| 1983–1991 || [[Goodyear MPP|Massively Parallel Processor]] (MPP), from [[NASA]]/[[Goddard Space Flight Center]]&lt;br /&gt;
|-&lt;br /&gt;
| 1985 || [[Connection Machine]], models 1 and 2 (CM-1 and CM-2), from [[Thinking Machines Corporation]]&lt;br /&gt;
|-&lt;br /&gt;
| 1987–1996 || [[MasPar]] MP-1 and MP-2&lt;br /&gt;
|-&lt;br /&gt;
| 1991 || Zephyr DC from Wavetracer&lt;br /&gt;
|-&lt;br /&gt;
| 2001 || Xplor from Pyxsys, Inc.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Hardware==&lt;br /&gt;
=== CPUs ===&lt;br /&gt;
Small-scale (64 or 128 bits) SIMD became popular on general-purpose CPUs in the early 1990s and continued through 1997 and later with Motion Video Instructions (MVI) for [[DEC Alpha|Alpha]]. SIMD instructions can be found, to one degree or another, on most CPUs, including [[IBM]]&amp;#039;s [[AltiVec]] and Signal Processing Engine (SPE) for [[PowerPC]], [[Hewlett-Packard]]&amp;#039;s (HP) [[PA-RISC]] [[Multimedia Acceleration eXtensions]] (MAX), [[Intel]]&amp;#039;s [[MMX (instruction set)|MMX and iwMMXt]], [[Streaming SIMD Extensions]] (SSE), [[SSE2]], [[SSE3]] [[SSSE3]] and [[SSE4]].x, [[Advanced Micro Devices|AMD]]&amp;#039;s [[3DNow!]], [[ARC (processor)|ARC&amp;#039;s]] ARC Video subsystem, [[SPARC]]&amp;#039;s [[Visual Instruction Set|VIS]] and VIS2, [[Sun Microsystems|Sun]]&amp;#039;s [[MAJC]], [[ARM Holdings|ARM&amp;#039;s]] [[ARM architecture#Advanced SIMD (Neon)|Neon]] technology, [[MIPS architecture|MIPS]]&amp;#039; [[MDMX]] (MaDMaX) and [[MIPS-3D]].&lt;br /&gt;
&lt;br /&gt;
Intel&amp;#039;s [[AVX-512]] SIMD instructions process 512 bits of data at once.&lt;br /&gt;
&lt;br /&gt;
=== Coprocessors ===&lt;br /&gt;
The IBM, Sony, Toshiba co-developed [[Cell (processor)|Cell processor&amp;#039;s]] [[Cell (processor)#Synergistic Processing Element (SPE)|Synergistic Processing Element&amp;#039;s]] (SPE&amp;#039;s) instruction set is heavily SIMD based.&lt;br /&gt;
&lt;br /&gt;
Some, but not all, GPUs are SIMD-based. AMD GPUs since the [[TeraScale (microarchitecture)]] are SIMD-based, a feature that has remained in the 2020s microartectures RDNA and CDNA,&amp;lt;ref&amp;gt;{{cite web |last1=Lam |first1=Chester |title=GCN, AMD&amp;#039;s GPU Architecture Modernization |url=https://chipsandcheese.com/p/gcn-amds-gpu-architecture-modernization |website=chipsandcheese.com |language=en}}&amp;lt;/ref&amp;gt; with a layer of [[single instruction, multiple threads]] (SIMT) above.&amp;lt;ref&amp;gt;{{cite web |last1=Lam |first1=Chester |title=Hot Chips 34 – AMD&amp;#039;s Instinct MI200 Architecture |url=https://chipsandcheese.com/p/hot-chips-34-amds-instinct-mi200-architecture |website=chipsandcheese.com |language=en |quote=On both NVIDIA and AMD, matrix instructions break the SIMT abstraction model and work across a whole wavefront (or “warp” on NVIDIA).}}&amp;lt;/ref&amp;gt; On the other hand, Nvidia&amp;#039;s CUDA architectures use scalar cores with SIMT.&amp;lt;ref&amp;gt;{{cite web |title=Version 2.3 8/27/2009 OpenCL Programming Guide for the CUDA Architecture |url=https://www.nvidia.com/content/cudazone/download/opencl/nvidia_opencl_programmingguide.pdf}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Philips]], now [[NXP Semiconductors|NXP]], developed several SIMD processors named [[Xetal]]. The Xetal has 320 16-bit processor elements especially designed for vision tasks.&lt;br /&gt;
&lt;br /&gt;
Apple&amp;#039;s M1 and M2 chips also incorporate SIMD units deeply integrated with their GPU and Neural Engine, using Apple-designed SIMD pipelines optimized for image filtering, convolution, and matrix multiplication. This unified memory architecture helps SIMD instructions operate on shared memory pools more efficiently. (The CPU part implements ordinary NEON).&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[[File:non-SIMD cpu diagram1.svg|thumb|280px| The ordinary tripling of four 8-bit numbers. The CPU loads one 8-bit number into R1, multiplies it with R2, and then saves the answer from R3 back to RAM. This process is repeated for each number.]]&lt;br /&gt;
[[File:SIMD cpu diagram1.svg|right|thumb|280px| The SIMD tripling of four 8-bit numbers. The CPU loads 4 numbers at once, multiplies them all in one SIMD-multiplication, and saves them all at once back to RAM. In theory, the speed can be multiplied by 4.]]&lt;br /&gt;
&lt;br /&gt;
SIMD instructions are widely used to process 3D graphics, although modern [[Video card|graphics card]]s with embedded SIMD have largely taken over this task from the CPU. Some systems also include permute functions that re-pack elements inside vectors, making them especially useful for data processing and compression. They are also used in cryptography.&amp;lt;ref&amp;gt;[http://marc.info/?l=openssl-dev&amp;amp;m=108530261323715&amp;amp;w=2 RE: SSE2 speed], showing how SSE2 is used to implement SHA hash algorithms&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;[http://cr.yp.to/snuffle.html#speed Salsa20 speed; Salsa20 software], showing a stream cipher implemented using SSE2&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;[http://markmail.org/message/tygo74tyjagwwnp4 Subject: up to 1.4x RSA throughput using SSE2], showing RSA implemented using a non-SIMD SSE2 integer multiply instruction.&amp;lt;/ref&amp;gt; The trend of general-purpose computing on GPUs ([[GPGPU]]) may lead to wider use of SIMD in the future. Recent compilers such as [[LLVM]], [[GNU Compiler Collection]] (GCC), and Intel&amp;#039;s ICC offer aggressive auto-vectoring options. Developers can often enable these with flags like &amp;lt;code&amp;gt;-O3&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;-ftree-vectorize&amp;lt;/code&amp;gt;, which guide the compiler to restructure loops for SIMD compatibility.&lt;br /&gt;
&lt;br /&gt;
Adoption of SIMD systems in [[personal computer]] software was at first slow, due to a number of problems. One was that many of the early SIMD instruction sets tended to slow overall performance of the system due to the re-use of existing floating point registers. Other systems, like [[MMX (instruction set)|MMX]] and [[3DNow!]], offered support for data types that were not interesting to a wide audience and had expensive context switching instructions to switch between using the [[Floating-point unit|FPU]] and MMX [[Processor register|registers]]. Compilers also often lacked support, requiring programmers to resort to [[assembly language]] coding.&lt;br /&gt;
&lt;br /&gt;
SIMD on [[x86]] had a slow start. The introduction of [[3DNow!]] by [[Advanced Micro Devices|AMD]] and [[Streaming SIMD Extensions|SSE]] by [[Intel]] confused matters somewhat, but today the system seems to have settled down (after AMD adopted SSE) and newer compilers should result in more SIMD-enabled software. Intel and AMD now both provide optimized math [[Library (computing)|libraries]] that use SIMD instructions, and open source alternatives like [[libSIMD]], [[SIMDx86]] and [[SLEEF]] have started to appear (see also [[libm]]).&amp;lt;ref&amp;gt;{{cite web |title=SIMD library math functions |url=https://stackoverflow.com/a/36637424 |website=Stack Overflow |access-date=16 January 2020}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Apple Inc.|Apple Computer]] had somewhat more success, even though they entered the SIMD market later than the rest. [[AltiVec]] offered a rich system and can be programmed using increasingly sophisticated compilers from [[Motorola]], [[IBM]] and [[GNU]], therefore assembly language programming is rarely needed. Additionally, many of the systems that would benefit from SIMD were supplied by Apple itself, for example [[iTunes]] and [[QuickTime]]. However, in 2006, Apple computers moved to Intel x86 processors. Apple&amp;#039;s [[Application programming interface|API]]s and [[Integrated development environment|development tools]] ([[Xcode|XCode]]) were modified to support [[SSE2]] and [[SSE3]] as well as AltiVec. Apple was the dominant purchaser of PowerPC chips from IBM and [[Freescale Semiconductor]]. Even though Apple has stopped using PowerPC processors in their products, further development of AltiVec is continued in several PowerPC and [[Power ISA]] designs from Freescale and IBM.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;SIMD within a register&amp;#039;&amp;#039;, or [[SWAR]], is a range of techniques and tricks used for performing SIMD in general-purpose registers on hardware that does not provide any direct support for SIMD instructions. This can be used to exploit parallelism in certain algorithms even on hardware that does not support SIMD directly.&lt;br /&gt;
&lt;br /&gt;
===Programmer interface===&lt;br /&gt;
&lt;br /&gt;
It is common for publishers of the SIMD instruction sets to make their own [[C (programming language)|C]] and [[C++]] language extensions with [[intrinsic function]]s or special datatypes (with [[operator overloading]]) guaranteeing the generation of vector code. Intel, AltiVec, and ARM NEON provide extensions widely adopted by the compilers targeting their CPUs. (More complex operations are the task of vector math libraries.)&lt;br /&gt;
&lt;br /&gt;
==== Generic datatypes ====&lt;br /&gt;
The [[GNU C Compiler]] takes the extensions a step further by abstracting them into a universal interface that can be used on any platform by providing a way of defining SIMD datatypes.&amp;lt;ref&amp;gt;{{cite web |title=Vector Extensions |url=https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html |website=Using the GNU Compiler Collection (GCC) |access-date=16 January 2020}}&amp;lt;/ref&amp;gt; The [[LLVM]] Clang compiler also implements the feature, with an analogous interface defined in the IR.&amp;lt;ref&amp;gt;{{cite web |title=Clang Language Extensions |url=https://clang.llvm.org/docs/LanguageExtensions.html |website=Clang 11 documentation |access-date=16 January 2020}}&amp;lt;/ref&amp;gt; Rust&amp;#039;s {{code|packed_simd}} crate (and the experimental {{code|std::simd}}) uses this interface, and so does [[Swift (programming language)|Swift]] 2.0+.&lt;br /&gt;
&lt;br /&gt;
C++ has an experimental interface {{code|std::experimental::simd}} that works similarly to the GCC extension. LLVM&amp;#039;s libcxx seems to implement it.{{Citation needed|date=March 2023}} For GCC and libstdc++, a wrapper library that builds on top of the GCC extension is available.&amp;lt;ref&amp;gt;{{cite web |title=VcDevel/std-simd |url=https://github.com/VcDevel/std-simd |publisher=VcDevel |date=6 August 2020}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Microsoft Corporation|Microsoft]] added SIMD to [[.NET Core|.NET]] in RyuJIT.&amp;lt;ref&amp;gt;{{cite web|url=https://devblogs.microsoft.com/dotnet/ryujit-the-next-generation-jit-compiler-for-net|title=RyuJIT: The next-generation JIT compiler for .NET|date=30 September 2013}}&amp;lt;/ref&amp;gt; The {{code|System.Numerics.Vector}} package, available on NuGet, implements SIMD datatypes.&amp;lt;ref&amp;gt;{{cite web|url=https://devblogs.microsoft.com/dotnet/the-jit-finally-proposed-jit-and-simd-are-getting-married|title=The JIT finally proposed. JIT and SIMD are getting married|date=7 April 2014}}&amp;lt;/ref&amp;gt; Java also has a new proposed API for SIMD instructions available in [[OpenJDK]] 17 in an incubator module.&amp;lt;ref&amp;gt;{{cite web|url=https://openjdk.java.net/jeps/338|title=JEP 338: Vector API}}&amp;lt;/ref&amp;gt; It also has a safe fallback mechanism on unsupported CPUs to simple loops.&lt;br /&gt;
&lt;br /&gt;
==== Vectorization hints ====&lt;br /&gt;
Instead of providing an SIMD datatype, compilers can also be hinted to [[Automatic vectorization|auto-vectorize]] some loops, potentially taking some assertions about the lack of data dependency. This is not as flexible as manipulating SIMD variables directly, but is easier to use. [[OpenMP]] 4.0+ has a {{code|#pragma omp simd}} hint.&amp;lt;ref&amp;gt;{{cite web |title=SIMD Directives |url=https://www.openmp.org/spec-html/5.0/openmpsu42.html |website=www.openmp.org}}&amp;lt;/ref&amp;gt; This OpenMP interface has replaced a wide set of nonstandard extensions, including [[Cilk]]&amp;#039;s {{code|#pragma simd}},&amp;lt;ref&amp;gt;{{cite web |title=Tutorial pragma simd |url=https://www.cilkplus.org/tutorial-pragma-simd |website=CilkPlus |date=18 July 2012 |access-date=9 August 2020 |archive-date=4 December 2020 |archive-url=https://web.archive.org/web/20201204055745/https://www.cilkplus.org/tutorial-pragma-simd |url-status=dead}}&amp;lt;/ref&amp;gt; GCC&amp;#039;s {{code|#pragma GCC ivdep}}, and many more.&amp;lt;ref&amp;gt;{{cite web|url=https://www.openmp.org/wp-content/uploads/OpenMP_SC20_Loop_Transformations.pdf|title=OMP5.1: Loop Transformations|first=Michael|last=Kruse}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;SIMD everywhere&amp;quot;, a collection of C/C++ headers implementing platform-specific intrinsics for other platforms (e.g. SSE intrinsics for ARM NEON), includes the use of platform-specific intrinsics, generic vector interfaces, and vectorization hints. It can be used as a &amp;quot;Rosetta Stone&amp;quot; for comparing these different SIMD programming paradigms.&amp;lt;ref&amp;gt;{{cite web |title=simd-everywhere/simde:  Implementations of SIMD instruction sets for systems which don&amp;#039;t natively support them. |url=https://github.com/simd-everywhere/simde |website=GitHub |publisher=SIMD Everywhere |date=6 November 2025}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== SPMD-on-SIMD ====&lt;br /&gt;
Another approach is [[Single program, multiple data|SPMD]]: write a program that looks as if it operates only one element on the time, then have a compiler widen it to match the SIMD vector width. This is the approach used by graphics [[shader]]s and more recently adopted by CPU-oriented tools such as Intel IPSC.&amp;lt;ref&amp;gt;{{cite conference |last1=Pharr |first1=Matt |last2=Mark |first2=William R. |title=ispc: A SPMD compiler for high-performance CPU programming |date=May 2012 |pages=1–13 |doi=10.1109/InPar.2012.6339601|conference=2012 Innovative Parallel Computing (InPar)|url=https://ispc.github.io/papers/ispc_inpar_2012.pdf}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===SIMD multi-versioning===&lt;br /&gt;
Consumer software is typically expected to work on a range of CPUs covering multiple generations, which could limit the programmer&amp;#039;s ability to use new SIMD instructions to improve the computational performance of a program. The solution is to include multiple versions of the same code that uses either older or newer SIMD technologies, and pick one that best fits the user&amp;#039;s CPU at run-time ([[dynamic dispatch]]). There are two main camps of solutions:&lt;br /&gt;
* Function multi-versioning (FMV): a [[subroutine]] in the program or a library is duplicated and compiled for many instruction set extensions, and the program decides which one to use at run-time.&lt;br /&gt;
* Library multi-versioning (LMV): the entire [[Library (computing)|programming library]] is duplicated for many instruction set extensions, and the operating system or the program decides which one to load at run-time.&lt;br /&gt;
&lt;br /&gt;
FMV, manually coded in assembly language, is quite commonly used in a number of performance-critical libraries such as glibc and libjpeg-turbo. [[Intel C++ Compiler]], [[GNU Compiler Collection]] since GCC 6, and [[Clang]] since clang 7 allow for a simplified approach, with the compiler taking care of function duplication and selection. GCC and clang requires explicit {{code|target_clones}} labels in the code to &amp;quot;clone&amp;quot; functions,&amp;lt;ref&amp;gt;{{cite web |title=Function multi-versioning in GCC 6 |url=https://lwn.net/Articles/691932/ |website=lwn.net |date=22 June 2016 }}&amp;lt;/ref&amp;gt; while ICC does so automatically (under the command-line option {{code|/Qax}}). The [[Rust programming language]] also supports FMV. The setup is similar to GCC and Clang in that the code defines what instruction sets to compile for, but cloning is manually done via inlining.&amp;lt;ref&amp;gt;{{cite web |title=2045-target-feature |url= https://rust-lang.github.io/rfcs/2045-target-feature.html |website=The Rust RFC Book}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As using FMV requires code modification on GCC and Clang, vendors more commonly use library multi-versioning: this is easier to achieve as only compiler switches need to be changed. [[Glibc]] supports LMV and this functionality is adopted by the Intel-backed Clear Linux project.&amp;lt;ref name=clear&amp;gt;{{cite web |title=Transparent use of library packages optimized for Intel® architecture |url=https://clearlinux.org/news-blogs/transparent-use-library-packages-optimized-intel-architecture |website=Clear Linux* Project |access-date=8 September 2019 |language=en}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===SIMD on the web===&lt;br /&gt;
In 2013 John McCutchan announced that he had created a high-performance interface to SIMD instruction sets for the [[Dart (programming language)|Dart]] programming language, bringing the benefits of SIMD to web programs for the first time. The interface consists of two types:&amp;lt;ref&amp;gt;{{cite web|url=https://www.dartlang.org/slides/2013/02/Bringing-SIMD-to-the-Web-via-Dart.pdf|title=Bringing SIMD to the web via Dart|author=John McCutchan|archive-url=https://web.archive.org/web/20131203011540/https://www.dartlang.org/slides/2013/02/Bringing-SIMD-to-the-Web-via-Dart.pdf|archive-date=2013-12-03}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Float32x4, 4 single precision floating point values.&lt;br /&gt;
* Int32x4, 4 32-bit integer values.&lt;br /&gt;
&lt;br /&gt;
Instances of these types are immutable and in optimized code are mapped directly to SIMD registers. Operations expressed in Dart typically are compiled into a single instruction without any overhead. This is similar to C and C++ intrinsics. Benchmarks for [[4×4 matrix|4×4]] [[matrix multiplication]], [[3D vertex transformation]], and [[Mandelbrot set]] visualization show near 400% speedup compared to scalar code written in Dart.&lt;br /&gt;
&lt;br /&gt;
Intel announced at IDF 2013 that they were implementing McCutchan&amp;#039;s specification for both [[V8 (JavaScript engine)|V8]] and [[SpiderMonkey]].&amp;lt;ref&amp;gt;{{cite web |title=SIMD in JavaScript |url=https://01.org/node/1495 |website=01.org |date=8 May 2014}}&amp;lt;/ref&amp;gt; However, by 2017, SIMD.js was taken out of the [[ECMAScript]] standard queue in favor of pursuing a similar interface in [[WebAssembly]].&amp;lt;ref&amp;gt;{{cite web |title=tc39/ecmascript_simd: SIMD numeric type for EcmaScript. |url=https://github.com/tc39/ecmascript_simd/ |website=GitHub |publisher=Ecma TC39 |access-date=8 September 2019 |date=22 August 2019}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Support for SIMD was added to the [[WebAssembly]] 2.0 specification, which was finished on 2022 and became official in December 2024.&amp;lt;ref&amp;gt;{{cite web |url=https://webassembly.org/news/2025-03-20-wasm-2.0/ |title=Wasm 2.0 Completed - WebAssembly}}&amp;lt;/ref&amp;gt; LLVM&amp;#039;s autovectoring, when compiling C or C++ to WebAssembly, can target WebAssembly SIMD to automatically make use of SIMD, while SIMD intrinsic are also available.&amp;lt;ref&amp;gt;{{cite web |title=Using SIMD with WebAssembly |url=https://emscripten.org/docs/porting/simd.html |work=Emscripten 4.0.11-git (dev) documentation}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Commercial applications==&lt;br /&gt;
It has generally proven difficult to find sustainable commercial applications for SIMD-only processors in general-purpose computing.&lt;br /&gt;
&lt;br /&gt;
One that has had some measure of success is the [[Geometric-Arithmetic Parallel Processor|GAPP]], which was developed by [[Lockheed Martin]] and taken to the commercial sector by their spin-off [[Teranex]]. The GAPP&amp;#039;s recent incarnations have become a powerful tool in real-time [[digital image processing|video processing]] applications like conversion between various video standards and frame rates ([[NTSC]] to/from [[PAL]], NTSC to/from [[high-definition television]] (HDTV) formats, etc.), [[deinterlacing]], image [[noise reduction]], adaptive [[video compression]], and image enhancement.&lt;br /&gt;
&lt;br /&gt;
A more ubiquitous application for SIMD is found in [[video game]]s: nearly every modern [[video game console]] since [[History of video game consoles (sixth generation)|1998]] has incorporated a SIMD processor somewhere in its architecture. The [[PlayStation 2]] was unusual in that one of its vector-float units could function as an autonomous [[digital signal processor]] (DSP) executing its own instruction stream, or as a coprocessor driven by ordinary CPU instructions. 3D graphics applications tend to lend themselves well to SIMD processing as they rely heavily on operations with 4-dimensional vectors. [[Microsoft]]&amp;#039;s [[Direct3D]] 9.0 now chooses at runtime processor-specific implementations of its own math operations, including the use of SIMD-capable instructions.&lt;br /&gt;
&lt;br /&gt;
A later processor that used vector processing is the [[Cell (processor)|Cell processor]] used in the PlayStation 3, which was developed by [[IBM]] in cooperation with [[Toshiba]] and [[Sony]]. It uses a number of SIMD processors (a [[non-uniform memory access]] (NUMA) architecture, each with independent [[cache memory|local store]] and controlled by a general purpose CPU) and is geared towards the huge datasets required by 3D and video processing applications. It differs from traditional ISAs by being SIMD from the ground up with no separate scalar registers.&lt;br /&gt;
&lt;br /&gt;
Ziilabs produced an SIMD type processor for use on mobile devices, such as media players and mobile phones.&amp;lt;ref&amp;gt;{{cite web |url=https://secure.ziilabs.com/products/processors/zms05.aspx |title=ZiiLABS ZMS-05 ARM 9 Media Processor |website=ZiiLabs |access-date=2010-05-24 |url-status=dead |archive-url=https://web.archive.org/web/20110718153716/https://secure.ziilabs.com/products/processors/zms05.aspx |archive-date=2011-07-18}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Larger scale commercial SIMD processors are available from ClearSpeed Technology, Ltd. and Stream Processors, Inc. [[ClearSpeed]]&amp;#039;s CSX600 (2004) has 96 cores each with two double-precision floating point units while the CSX700 (2008) has 192. Stream Processors is headed by computer architect [[Bill Dally]]. Their Storm-1 processor (2007) contains 80 SIMD cores controlled by a [[MIPS architecture|MIPS]] CPU.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Streaming SIMD Extensions]], [[MMX (instruction set)|MMX]], [[SSE2]], [[SSE3]], [[Advanced Vector Extensions]], [[AVX-512]]&lt;br /&gt;
* [[Instruction set architecture]]&lt;br /&gt;
*[[Flynn&amp;#039;s taxonomy]]&lt;br /&gt;
* SIMD within a register ([[SWAR]])&lt;br /&gt;
* [[Single program, multiple data]] (SPMD)&lt;br /&gt;
* [[OpenCL]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [https://arstechnica.com/articles/paedia/cpu/simd.ars SIMD architectures (2000)]&lt;br /&gt;
* [https://www.gamedeveloper.com/programming/wyatt-s-world-cracking-open-the-pentium-iii Cracking Open The Pentium 3 (1999)]&lt;br /&gt;
* [http://www.eecg.toronto.edu/~corinna/vector/svx/ Short Vector Extensions in Commercial Microprocessor]&lt;br /&gt;
* [http://software.intel.com/en-us/articles/optimizing-the-rendering-pipeline-of-animated-models-using-the-intel-streaming-simd-extensions Article about Optimizing the Rendering Pipeline of Animated Models Using the Intel Streaming SIMD Extensions]&lt;br /&gt;
* [https://web.archive.org/web/20130921070044/http://www.yeppp.info/ &amp;quot;Yeppp!&amp;quot;: cross-platform, open-source SIMD library from Georgia Tech]&lt;br /&gt;
* [https://computing.llnl.gov/tutorials/parallel_comp/ Introduction to Parallel Computing from LLNL Lawrence Livermore National Laboratory] {{Webarchive|url=https://web.archive.org/web/20130610122229/https://computing.llnl.gov/tutorials/parallel_comp/ |date=2013-06-10}}&lt;br /&gt;
&lt;br /&gt;
{{CPU technologies}}&lt;br /&gt;
{{Parallel computing}}&lt;br /&gt;
{{Authority control}}&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Simd}}&lt;br /&gt;
[[Category:Classes of computers]]&lt;br /&gt;
[[Category:Digital signal processing]]&lt;br /&gt;
[[Category:Flynn&amp;#039;s taxonomy]]&lt;br /&gt;
[[Category:Parallel computing]]&lt;br /&gt;
[[Category:SIMD computing| ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Flynnsche Klassifikation#SIMD (Single Instruction, Multiple Data)]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Artoria2e5</name></author>
	</entry>
</feed>