Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ぼくのかんがえたさいきょうCPU 2018 ベクトル演算

A6c77a6916863db882119442697d1051?s=47 houmei
April 24, 2018

ぼくのかんがえたさいきょうCPU 2018 ベクトル演算

A6c77a6916863db882119442697d1051?s=128

houmei

April 24, 2018
Tweet

More Decks by houmei

Other Decks in Technology

Transcript

  1. ΅͘ͷ͔Μ͕͑ͨ ͍͖͞ΐ͏CPU 2018.4.24 @houmei ϕΫτϧԋࢉ 18೥4݄24೔Ր༵೔

  2. ಺༰ • ΅͘ͷ͔Μ͕͍͖͑ͨ͞ΐ͏CPUͷղઆ • Ϩʔϯؒͷԋࢉʹ͍ͭͯʢϕΫτϧʣ twitter : @houmei blog :

    ஛ԼੈքౝͷܭࢉػΑ΋΍·࿩ 18೥4݄24೔Ր༵೔
  3. ϕΫτϧͱεΧϥ ɾσʔλશମΛ2ⁿόΠτ୯ҐͰ෼ׂͨ͠ ۠ըΛϨʔϯͱݺͿ ɾϨʔϯ͸͢΂ͯಉ͡ܕɺಉ͡αΠζ ɾϨʔϯ͕ͻͱ͚ͭͩͷ΋ͷΛεΧϥɺ ෳ਺͋Δ΋ͷΛϕΫτϧͱݺͿ FP32 FP32 FP32 FP32

    lane 0 lane 1 lane 2 lane 3 0 31 63 95 127 18೥4݄24೔Ր༵೔
  4. ݪଇ (1)ԋࢉ݁ՌRdͷσʔλαΠζɺϨʔϯ਺ɺܕ ͸Ұ൪໨ͷιʔε(Ra)ʹ߹ΘͤΔ (2)ೋ൪໨ͷιʔε(Rb)ͷϨʔϯ਺͕RaͷϨʔϯ ਺ΑΓগͳ͍৔߹͸܁Γฦ͠ద༻ (3)ೋ൪໨ͷιʔε(Rb)ͷϨʔϯ਺͕RaͷϨʔϯ ਺ΑΓଟ͍৔߹͸ԼҐͷϨʔϯΛద༻ (4)Ϩʔϯؒͷԋࢉʹ͍ͭͯ͸εΧϥԋࢉͷϧʔ ϧΛద༻ 18೥4݄24೔Ր༵೔

  5. ϕΫτϧ×ϕΫτϧʢ̍ʣ ɾRaͷϨʔϯ਺͕RbͷϨʔϯ਺ͱಉ͡৔߹ →ରԠ͢ΔϨʔϯͲ͏͠Ͱԋࢉ Lane3 D d D+d Lane2 C c

    C+c Lane1 B ʴ b = B+b Lane0 A a A+a Ra Rb Rd 18೥4݄24೔Ր༵೔
  6. ϕΫτϧ×ϕΫτϧʢ̎ʣ ɾRaͷϨʔϯ਺͕RbΑΓগͳ͍৔߹ →ରԠ͢ΔRbͷԼҐϨʔϯͲ͏͠Ͱԋࢉ Lane3 d Lane2 c Lane1 B ʴ

    b = B+b Lane0 A a A+a Ra Rb Rd 18೥4݄24೔Ր༵೔
  7. ϕΫτϧ×ϕΫτϧʢ̏ʣ ɾRaͷϨʔϯ਺͕RbΑΓଟ͍৔߹ →RbͷϨʔϯΛ܁Γฦ͠ద༻͠ԋࢉ Lane3 D D+b Lane2 C C+a Lane1

    B ʴ b = B+b Lane0 A a A+a Ra Rb Rd 18೥4݄24೔Ր༵೔
  8. ϕΫτϧ×εΧϥ ɾRaͷϨʔϯ਺͕RbΑΓଟ͍৔߹ͱಉ͡ →RbΛ܁Γฦ͠ద༻͠ԋࢉ Lane3 D D+a Lane2 C C+a Lane1

    B B+a Lane0 A ʴ a = A+a Ra Rb Rd 18೥4݄24೔Ր༵೔
  9. εΧϥ×ϕΫτϧ ɾRaͷϨʔϯ਺͕RbΑΓগͳ͍৔߹ͱಉ͡ →Rbͷ࠷ԼҐϨʔϯͰԋࢉ Lane3 d Lane2 c Lane1 b Lane0

    A ʴ a ʹ A+a Ra Rb Rd 18೥4݄24೔Ր༵೔
  10. ଈ஋ͷѻ͍ • ԋࢉͷୈೋΦϖϥϯυ͸ଈ஋ͷࢦఆ͕Մೳ • ଈ஋͸੔਺ͷεΧϥσʔλͱͯ͠ѻΘΕΔ • ଈ஋ͷαΠζ͸RaͷϨʔϯͷαΠζʹ߹Θͤූ ߸֦ு͞ΕΔ(.uम০ࢠͰθϩ֦ு) 18೥4݄24೔Ր༵೔

  11. ɹ ͭͮ͘ ΅͘ͷ͔Μ͕͍͖͑ͨ͞ΐ͏CPU 18೥4݄24೔Ր༵೔