Slide 23
Slide 23 text
αϯϓϧϓϩάϥϜ࡞ͬͯΈ·ͨ͠
• https://github.com/zacky1972/simd_sample
• ϞϊΫϩԽͷը૾ϑΟϧλΛࡐʹ
• 8Ϗοτූ߸ͳ͠→32Ϗοτූ߸ͳ͠→32Ϗοτුಈখ
→{R, G, B} <= 0.299 * r + 0.587 * g + 0.114 * bɹ
→খҎԼ࢛ࣺޒೖ→32Ϗοτූ߸ͳ͠→8Ϗοτූ߸ͳ͠ɹ
• CݴޠͰॻ͍ͨ߹ (2छྨ: ޙड़)
Auto-vectorizationͷͨΊϧʔϓͰSIMDίʔυΛੜ
• Intrinsic (SIMD໋ྩΛCͰهड़͢Δํ๏ͷ1ͭ)Ͱॻ͍ͨ߹
• Intel Core i5 / AVX2
• ARMv8 / NEON
• Cݴޠ+Auto-vectorizationʹൺͯSIMD໋ྩΛखͰهड़ͯ͠࠷దԽΛਤΔͱ
2ʙ5ഒͷߴԽޮՌ͕͋Δ
• ͔͠SIMD໋ྩͷهड़ʹ·ͩ࠷దԽͷ༨͕͋Γͦ͏ͳײ৮͕͋Δ
23
©︎
2021 Susumu Yamazaki