0
!	#$%!       		#(       )
*			       +			,	*
++
-
.
/
(
(
*
!       (0
!	0
1		2	#3
!!
!
#            	#$%	!	!
,-$.
#$%!!
#$%!!
()	*+*+*
44
$%
(         (
)       *+,        -
*    .            )       .               /**.0   -1            )       -1*            /**.1                           11 ...
)       .#
*-
*#
)       !                 **+,  1          )       !                 *             )       !                 **+, 1
)       2                   1*+,
3
Upcoming SlideShare
Loading in...5
×

[Harvard CS264] 15a - Jacket: Visual Computing (James Malcolm, Accelereyes)

932

Published on

http://cs264.org

http://goo.gl/068h1

Published in: Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
932
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
13
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "[Harvard CS264] 15a - Jacket: Visual Computing (James Malcolm, Accelereyes)"

  1. 1. ! #$%! #( )
  2. 2. * + , *
  3. 3. ++
  4. 4. -
  5. 5. .
  6. 6. /
  7. 7. (
  8. 8. (
  9. 9. *
  10. 10. ! (0
  11. 11. ! 0
  12. 12. 1 2 #3
  13. 13. !!
  14. 14. !
  15. 15. # #$% ! !
  16. 16. ,-$.
  17. 17. #$%!!
  18. 18. #$%!!
  19. 19. () *+*+*
  20. 20. 44
  21. 21. $%
  22. 22. ( (
  23. 23. ) *+, -
  24. 24. * . ) . /**.0 -1 ) -1* /**.1 11 / ) * /*#
  25. 25. ) .#
  26. 26. *-
  27. 27. *#
  28. 28. ) ! **+, 1 ) ! * ) ! **+, 1
  29. 29. ) 2 1*+,
  30. 30. 3
  31. 31. ) 2 1*4 ) 2 +, ,#3
  32. 32. ) +, +,1#(,
  33. 33. ) 2 2 1
  34. 34. ) .#
  35. 35. 564 74 74 :84 5 4 Neuro-imaging Bio-Research Video Processing Radar Imaging Medical Devices Georgia Tech CDC Google System Spencer Planning Tech 84 984 564 674 984 Weather Modeling Power Engineering Track Bad Guys Drug Delivery Bioinformatics NCAR IIT India BAE Georgia Tech Leibniz Systems Research
  36. 36. $%
  37. 37. ;5
  38. 38. ( (=
  39. 39. 9 *?:*9 *?:*(@*9 *AA ,#
  40. 40. ,
  41. 41. #**
  42. 42. *
  43. 43. **
  44. 44. * AA f32 A = f32::rand(n,n); f32 B = sin(A) + 0.3; f32 b = B(span, 4); // specific column5 #
  45. 45. ( ,
  46. 46. float jkt_sum(int n, float *device_src)
  47. 47. ,
  48. 48. ,// random (x,y) samplesf32 x = f32::rand(n_total,1);f32 y = f32::rand(n_total,1);// how many inside unit circle?f32 dist = sqrt(x*x + y*y);b8 is_inside = (dist 1);// estimate pifloat pi = 4 * sum_vector(is_inside) / n_total; 44
  49. 49. ,1
  50. 50. 1
  51. 51. 1
  52. 52. 1
  53. 53. #(
  54. 54. #(
  55. 55. #(
  56. 56. ( ( ( -
  57. 57. -
  58. 58. -
  59. 59. # # B,
  60. 60. C
  61. 61. ,1
  62. 62. !
  63. 63. #
  64. 64. ,, // multiple FFTs at various powers gfor (i = 0; i nfft; ++i) B(span,i) = fft(pow(A(span,i), i));5
  65. 65. ,
  66. 66. D
  67. 67. E A
  68. 68. ,5 #
  69. 69. ,5 !
  70. 70. ,#
  71. 71. ,
  72. 72. ,1
  73. 73. !
  74. 74. ,5 ##(
  75. 75. 5 0
  76. 76. F(
  77. 77. ,
  78. 78. #
  79. 79. ,,#
  80. 80. # $%
  81. 81. $ 5 +,G
  82. 82. *!**
  83. 83. *AA
  84. 84. ,#
  85. 85. ,
  86. 86. 5
  87. 87. G
  88. 88. *
  89. 89. (
  90. 90. #(5 #B,C5
  91. 91. 5
  92. 92. *$*H
  93. 93. / 6
  94. 94. * #( !78 *
  95. 95. % * 9/:
  96. 96. 8 0;
  97. 97. 8 -
  98. 98. ;
  99. 99. 0 =
  100. 100. #(
  101. 101. 9: #
  102. 102. ?
  103. 103. ! - /
  104. 104. !7 ,
  105. 105. 8 @0A 8 A0 (
  106. 106. -
  107. 107. -
  108. 108. -
  109. 109. *
  110. 110. #
  111. 111. - 9 : 6
  112. 112. **
  113. 113. ?,8
  114. 114. -
  115. 115. *- 44
  116. 116. / ! 7
  117. 117. ; ,
  118. 118. *
  119. 119. 0;
  120. 120. ?,8
  121. 121. *
  122. 122. 0 9:5 0
  123. 123. /
  124. 124. /01 !+@8 B@B+C +C DB 3
  125. 125. ;
  126. 126. ,
  127. 127. 3
  128. 128. B@B+C + DB, 3
  129. 129. #
  130. 130. , B
  131. 131. B@ +E +C + 3 2 B@B+C + DB 3 B@ +A +E + 3 #
  132. 132. 8 B@B+C +) DB, 3 B
  133. 133. B@ +@ +A +) 3 345 0
  134. 134. B@B+C ++ DB, 3 0 0 L B@ + +@ ++ 3 BB@ +++ 0 L FGGH?!I2J 3 BB@ ++ + +++ 3
  135. 135. 1
  136. 136. K++ - !++ 3 !+8
  137. 137. BB@ ++@ FGG..G2J 3 B
  138. 138. B@ ++A + A 3 B@ + ++@ ++A 3
  139. 139. B*@ ++C *@* 3 BB-@ ++ FGG#%?G2J 3 -B*@ ++E ++C ++ 3
  140. 140. B*@ ++ ++E 3 B
  141. 141. -B*@ F+2J ++ 3
  142. 142. #
  143. 143. , 0
  144. 144. , *
  145. 145. 68
  146. 146. 8 $
  147. 147. *
  148. 148. ?,8 *
  149. 149. IA
  150. 150. 678$9
  151. 151. J#
  152. 152. 5 .#,
  153. 153. 5 ,
  154. 154. AA#
  155. 155. *##
  156. 156. #*5
  157. 157. 2
  158. 158. #
  159. 159. :8$9
  160. 160. 5
  161. 161. 2
  162. 162. 5
  163. 163. ;5 +2
  164. 164. 2
  165. 165. AA*2*;*K*
  166. 166. * (*5 !
  167. 167. #
  168. 168. f32 A(cpu_ptr, n); // push host array to device c64::rand(n); // generate on device 0
  169. 169. $* M
  170. 170. 8 $* -
  171. 171. /8
  172. 172. 00;
  173. 173. 8
  174. 174. *
  175. 175. 8
  176. 176. , -** , BB I
  177. 177. ?,8 0I ;
  178. 178. = #
  179. 179. *
  180. 180. (
  181. 181. N
  182. 182. - * ! O %!$! - (
  183. 183. *
  184. 184. I*
  185. 185. 7
  186. 186. #I I
  187. 187. - #
  188. 188. -
  189. 189. (
  190. 190. * B - *
  191. 191. 7
  192. 192. fn = gcompile(code_string); fn(A); fn(B); // re-apply ( *
  193. 193. - * ?,
  194. 194. ,,2#
  195. 195. :8 $9 ( , ,#L ($ $%
  196. 196. F ,A 0I* +*
  197. 197. #,,
  198. 198. A$ 678 $9 1
  199. 199. ,#
  200. 200. , #
  201. 201. $
  202. 202. #
  203. 203. %
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×