Skip to content

Instantly share code, notes, and snippets.

@cheshire
Created February 7, 2020 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cheshire/f929aa118978f4bcad03a3da11209d27 to your computer and use it in GitHub Desktop.
Save cheshire/f929aa118978f4bcad03a3da11209d27 to your computer and use it in GitHub Desktop.
Reproducer buffer assignment
BufferAssignment:
allocation 0: 0x1416bdf62800, size 144, maybe-live-out:
value: <24 dot.1 @0> (size=72,offset=0): f64[3,3]{1,0}
value: <26 fusion.1 @0> (size=144,offset=0): f64[3,6]{1,0}
value: <29 fusion.4 @0> (size=32,offset=0): f64[1,2,2]{2,1,0}
allocation 1: 0x1416bdf628b0, size 144, maybe-live-out:
value: <21 reduce.322 @0> (size=144,offset=0): f64[3,6]{1,0}
value: <28 fusion.3 @0> (size=72,offset=0): f64[3,3]{1,0}
value: <30 fusion.5 @0> (size=32,offset=0): f64[2,2]{1,0}
allocation 2: 0x1416bdf62960, size 72, parameter 8, shape |f64[1,3,3]| at ShapeIndex {}:
value: <19 arg8.9 @0> (size=72,offset=0): f64[1,3,3]{2,1,0}
allocation 3: 0x1416bdf62a10, size 32, parameter 1, shape |f64[1,2,2]| at ShapeIndex {}:
value: <14 arg1.2 @0> (size=32,offset=0): f64[1,2,2]{2,1,0}
allocation 4: 0x1416bdf62ac0, size 24, parameter 0, shape |f64[3,1,1]| at ShapeIndex {}:
value: <11 arg0.1 @0> (size=24,offset=0): f64[3,1,1]{2,1,0}
allocation 5: 0x1416bdf62b70, size 24, parameter 7, shape |f64[1,3]| at ShapeIndex {}:
value: <18 arg7.8 @0> (size=24,offset=0): f64[1,3]{1,0}
allocation 6: 0x1416bdf62c20, size 24, parameter 4, shape |f64[3,1]| at ShapeIndex {}:
value: <10 arg4.5 @0> (size=24,offset=0): f64[3,1]{1,0}
allocation 7: 0x1416bdf62cd0, size 16, output shape is |(f64[3,6], f64[3,6])|, maybe-live-out:
value: <22 tuple.325{} @0> (size=16,offset=0): (f64[3,6]{1,0}, f64[3,6]{1,0})
allocation 8: 0x1416bdf62d80, size 16, parameter 5, shape |f64[1,2]| at ShapeIndex {}:
value: <13 arg5.6 @0> (size=16,offset=0): f64[1,2]{1,0}
allocation 9: 0x1416bdf62e30, size 12, parameter 6, shape |f32[1,3]| at ShapeIndex {}:
value: <17 arg6.7 @0> (size=12,offset=0): f32[1,3]{1,0}
allocation 10: 0x1416bdf62ee0, size 12, parameter 2, shape |f32[3,1]| at ShapeIndex {}:
value: <9 arg2.3 @0> (size=12,offset=0): f32[3,1]{1,0}
allocation 11: 0x1416bdf62f90, size 8, constant:
value: <15 constant.50 @0> (size=8,offset=0): f64[]
allocation 12: 0x1416bdf63040, size 8, parameter 3, shape |f32[1,2]| at ShapeIndex {}:
value: <12 arg3.4 @0> (size=8,offset=0): f32[1,2]{1,0}
allocation 13: 0x1416bdf630f0, size 8, thread-local:
value: <2 add.101 @0> (size=8,offset=0): f64[]
allocation 14: 0x1416bdf631a0, size 8, thread-local:
value: <6 lhs.319 @0> (size=8,offset=0): f64[]
allocation 15: 0x1416bdf63250, size 8, thread-local:
value: <7 rhs.320 @0> (size=8,offset=0): f64[]
allocation 16: 0x1416bdf63300, size 8, thread-local:
value: <8 add.321 @0> (size=8,offset=0): f64[]
allocation 17: 0x1416bdf633b0, size 8, thread-local:
value: <3 lhs.182 @0> (size=8,offset=0): f64[]
allocation 18: 0x1416bdf63460, size 8, thread-local:
value: <4 rhs.183 @0> (size=8,offset=0): f64[]
allocation 19: 0x1416bdf63510, size 8, thread-local:
value: <5 add.184 @0> (size=8,offset=0): f64[]
allocation 20: 0x1416bdf635c0, size 8, thread-local:
value: <0 lhs.99 @0> (size=8,offset=0): f64[]
allocation 21: 0x1416bdf63670, size 8, thread-local:
value: <1 rhs.100 @0> (size=8,offset=0): f64[]
allocation 22: 0x1416bdf63720, size 896, preallocated-temp:
value: <16 reduce.102 @0> (size=16,offset=0): f64[1,2]{1,0}
value: <20 reduce.185 @0> (size=24,offset=80): f64[1,3]{1,0}
value: <23 dot @0> (size=32,offset=864): f64[2,2]{1,0}
value: <25 fusion @0> (size=864,offset=0): f64[3,6,6]{2,1,0}
value: <27 fusion.2 @0> (size=72,offset=0): f64[1,3,3]{2,1,0}
Total bytes used: 1504
Used values:
<0 lhs.99 @0>
positions:
lhs.99
uses:
add.101, operand 0
<1 rhs.100 @0>
positions:
rhs.100
uses:
add.101, operand 1
<2 add.101 @0>
positions:
add.101
uses:
<3 lhs.182 @0>
positions:
lhs.182
uses:
add.184, operand 0
<4 rhs.183 @0>
positions:
rhs.183
uses:
add.184, operand 1
<5 add.184 @0>
positions:
add.184
uses:
<6 lhs.319 @0>
positions:
lhs.319
uses:
add.321, operand 0
<7 rhs.320 @0>
positions:
rhs.320
uses:
add.321, operand 1
<8 add.321 @0>
positions:
add.321
uses:
<9 arg2.3 @0>
positions:
arg2.3
uses:
fusion.1, operand 3
fusion, operand 3
<10 arg4.5 @0>
positions:
arg4.5
uses:
fusion.1, operand 2
fusion, operand 2
<11 arg0.1 @0>
positions:
arg0.1
uses:
<12 arg3.4 @0>
positions:
arg3.4
uses:
fusion.5, operand 2
<13 arg5.6 @0>
positions:
arg5.6
uses:
fusion.5, operand 1
<14 arg1.2 @0>
positions:
arg1.2
uses:
fusion.5, operand 0
<15 constant.50 @0>
positions:
constant.50
uses:
reduce.185, operand 1
reduce.322, operand 1
reduce.102, operand 1
<16 reduce.102 @0>
positions:
reduce.102
uses:
fusion.1, operand 1
<17 arg6.7 @0>
positions:
arg6.7
uses:
fusion.3, operand 2
<18 arg7.8 @0>
positions:
arg7.8
uses:
fusion.3, operand 1
<19 arg8.9 @0>
positions:
arg8.9
uses:
fusion.3, operand 0
<20 reduce.185 @0>
positions:
reduce.185
uses:
fusion.1, operand 0
<21 reduce.322 @0>
positions:
reduce.322
tuple.325 {1}
uses:
tuple.325, operand 1
<22 tuple.325{} @0>
positions:
tuple.325 {}
uses:
<23 dot @0>
positions:
dot
uses:
fusion.4, operand 0
fusion, operand 1
<24 dot.1 @0>
positions:
dot.1
uses:
fusion.2, operand 0
fusion, operand 0
<25 fusion @0>
positions:
fusion
uses:
reduce.322, operand 0
<26 fusion.1 @0>
positions:
fusion.1
tuple.325 {0}
uses:
tuple.325, operand 0
<27 fusion.2 @0>
positions:
fusion.2
uses:
reduce.185, operand 0
<28 fusion.3 @0>
positions:
fusion.3
uses:
dot.1, operand 0
dot.1, operand 1
<29 fusion.4 @0>
positions:
fusion.4
uses:
reduce.102, operand 0
<30 fusion.5 @0>
positions:
fusion.5
uses:
dot, operand 0
dot, operand 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment