Comments (4)
Besides that, AVX provides 256-bit YMM registers, and there have been released processors to the market that support AVX-512 with ZMM registers, which are really cool! We may think on how can we use these features for the Graphics32 library. The AVX-512 instructions are available on Skylake-X Core i7 and i9 models, which are quite affordable, as well as on more expensive Intel's Xeon Phi x200 (Knights Landing), which was released more than a year ago.
from graphics32.
At the moment I see at least two scenarios about how to include support for AVX.
Either some contributor does the adaptions in a fork (I'm willing to review and accept the pull request if it's proven to work reliable) or someone sponsors the development (to buy a recent computer with AVX-512 to get this included as well).
As far as I can see it the changes might take about 1-2 weeks of work, especially if it should get tested in many scenarios (especially older compilers, older computers etc.). In particular since AVX-512 <> AVX-512 nowadays (the supported features vary from processor to processor) it can get tricky to support all possible combinations.
from graphics32.
We have managed to get an i9 processor to test the AVX-512 instructions.
The AVX-512 is relatively new and, probably, in future, will be equipped only on most expensive processors.
As about AVX, it is more or less ubiquitous, equipped on all Intel processors except the cheapest Celeron and Pentium.
As about the different kinds, there are mostly 3 kinds of instructions:
- AVX
- AVX2
- AVX-512
As about the differences between AVX and AVX2 - they are not that significant. Mainly, processors that only have AVX but not AVX2 require an 'vzeroupper' instruction before and after AVX code, since Delphi uses legacy SSE, especially under 64-bit, and without 'vzeroupper' there will be huge transition penalties.
AVX-2 and AVX-512, to the contrary, don't have such huge penalties, and 'vzeroupper' is not neede or may even slow things down.
from graphics32.
It's better to use NASM, not the built-in Delphi assembler since it doesn't support AVX. I've done, for example, AVX, AVX2 and AVX-512 support in NASM for a FastMM4 fork: https://github.com/maximmasiutin/FastMM4-AVX
from graphics32.
Related Issues (20)
- EInvalidOp in MakeAlphaNonZeroUP HOT 10
- Repaint Optimizer "forgets" to update the bitmap HOT 2
- Repaint Optimizer "forgets" to update the bitmap 2 HOT 7
- Polygon grow using Clipper2 very very slow HOT 43
- Delphi 12 incompatibility HOT 1
- Polygon draw result looks strange HOT 18
- GR32_LowLevel.Mirror PUREPASCAL does not produce expected values HOT 11
- Revive jsRoundEx? HOT 1
- Lazarus design time support broken HOT 21
- TBitmap32.Textout interesting behavior HOT 12
- PNG support broken on 32-bit FPC HOT 4
- LF Line Endings in the .DPKs Cause File Corruption HOT 18
- Access Violation with color picker controls on Lazarus HOT 2
- BuildPolyLine produces concave curves that are unsuitable for polylines HOT 13
- TColorPickerGTK not displayed correctely after copy/paste HOT 4
- NeoLemmix / SuperLemmix pull request
- Commit "Fix for AV with tiled draw" breaks my code HOT 7
- Bug with layes visibility change HOT 15
- Repaint TCustomLayer and draw TBitmapLayer at the same time HOT 13
- TGaussianKernel is broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphics32.