THIS TRICK MADE MY CODE ALMOST 4X FASTER - AFK CODE ACADEMY
☕ Buy me a virtual coffee:https://ko-fi.com/valerio_afkk
Today I talk about Intel vector registers and SIMD (Single Instruction Multiple Data) operations. I explain how the SSE, AVX and AVX-512 extensions work, which introduced the 128-bit XMM, 256-bit YMM and 512-bit ZMM registers respectively, allowing you to perform arithmetic operations on groups of data at the same time, instead of on single values as normally happens. During the video I also explain fundamental concepts such as memory alignment, the use of aligned_alloc functions instead of the classic malloc, and how to handle edge cases when the number of elements is not perfectly divisible by the capacity of the vector registers.
If you liked this video, give it a Like and leave a comment.
📼 Subscribe to the Channel!
🖼 ️ Follow me on Instagramhttps://www.instagram.com/valerio_afk/
#asm #intel #simd
🔗 Useful Links:
https://learningdeeplearning.com/post/understanding-advance-vector-extensions-avx/..
https://github.com/valerio-afk/CA-25-01111
🎥 Watch the other videos in this channel:
🗞 ️ AFK Breaking News: • BREAKING NEWS
📜 AFK History/Stories: • STORIA/STORIE
🔎 AFK Under the hood: • UNDER THE HOOD
👨 💻 AFK CODE ACADEMY: • Python, C++, e Java - SVOLGO un compito UN...
🪵AFK VLOG: • VLOG
🛠 ️ Equipment used to make the videos:
📸 Camera: Panasonic Lumix DC-FZ82https://www.photographyblog.com/reviews/panasonic_lumix_dmc_fz82_review...]
💡 Lights: ESDDI 20"X28" Softbox Portable Photography Lighting Kit
📙 Teleprompter: ILOKNZI Liftable Autocue Teleprompter
🎤 Microphone: Lavalier Wireleshttps://tinyurl.com/3rtube4je4j]
✂ ️ Video Editor: Adobe Premiere http://www.tinyurl.com/adobepremiereprorepro]
🤳Photo Editor: Adobe Photoshhttps://tinyurl.com/adobephotoshopshop]
👍 Thumbnail Editor: Canhttps://www.canva.com/.com]
🗜 ️ Video conversion software: Handbrhttps://handbrake.fr/e.fr/]
🎨 Design software: Inkschttps://inkscape.org/.org/]
VIDEO CA-25-011