YouTube2Text

[CS61C FA20] Weekly Lecture 03.LIVE - Floating Point & RISC-V — Transcript

by CS 61C Departmental · 10,271 words · 1,669 segments · language en · Watch on YouTube

Full transcript

  1. 0:00perfect perfect thank you yeah perfect
  2. 0:02hey welcome everybody
  3. 0:04welcome everybody 61c
  4. 0:07still yeah let's start with a different
  5. 0:11class yeah
  6. 0:12all right a few things uh
  7. 0:16that we wanted to discuss today um and
  8. 0:18we're gonna go
  9. 0:19relatively quickly into that
  10. 0:22look my control works this uh you know
  11. 0:24that we're using this app
  12. 0:26and it's working on the ever release
  13. 0:28every other week and it works
  14. 0:30better and better so by the end of the
  15. 0:31semester we will be
  16. 0:34spectacular we might be out of beta we
  17. 0:37might actually be a
  18. 0:38be out of beta but that first time go
  19. 0:40ahead yeah
  20. 0:42anyways so we are in week three now uh
  21. 0:45what is happening is um we have
  22. 0:49covered floating point it's uh very fun
  23. 0:51so uh dan apparently had a lot of fun
  24. 0:53recording that lecture yeah it was great
  25. 0:55it was wonderful
  26. 0:56it took it took three days of my weekend
  27. 0:58to do one but one hour of lecture
  28. 1:00it normally would have taken me 50
  29. 1:02minutes to give the lecture i would have
  30. 1:03grabbed my slides
  31. 1:04give it three solid days to make the
  32. 1:06lecture so i hope you folks appreciate
  33. 1:07it but it's a lot of fun it's a lot of
  34. 1:08fun for these
  35. 1:09archival materials together and i want
  36. 1:11to check in to see if
  37. 1:13all of you have enjoyed the new clicker
  38. 1:16questions you know we made some mistake
  39. 1:17the first time we had too many we had 11
  40. 1:19and there was some confusion so we've
  41. 1:21reduced them down to hopefully being a
  42. 1:23much more mandible set of questions and
  43. 1:25each question the goal is to teach you
  44. 1:28something not
  45. 1:29did you watch minute 13 but did you
  46. 1:31teach you something so they're kind of
  47. 1:32actually in a way of writing exam
  48. 1:34questions into clicker questions so
  49. 1:36in a way we're trying to do this to
  50. 1:38again receive that feedback and always
  51. 1:39try to improve so thank you for that
  52. 1:41good feedback folks yeah we don't have
  53. 1:43to
  54. 1:44have those questions you know what size
  55. 1:46shoes does that
  56. 1:47mean on my third
  57. 1:50juggling did he drop it did he wink did
  58. 1:53it no none of that's going on so that's
  59. 1:54right
  60. 1:54yeah and
  61. 1:58risk five is uh in uh the first part a
  62. 2:02very simple introduction first five is
  63. 2:04in i managed to record the next
  64. 2:07lecture worked already so i'll try to
  65. 2:09post that relatively early along with um
  66. 2:13a bunch of risk five stuff by the
  67. 2:15weekend i know
  68. 2:16you're probably focused on quests at the
  69. 2:19moment but be
  70. 2:20really important to follow everything uh
  71. 2:23that is going on with with just five
  72. 2:24because we
  73. 2:25really need to get going with those labs
  74. 2:27next week
  75. 2:28yeah and we'll and we'll we'll this this
  76. 2:30is kind of a a switchover week this it
  77. 2:32is important that this
  78. 2:33this week's material is not covered on
  79. 2:36so we're not covering float or risk five
  80. 2:38for the quest this weekend
  81. 2:40but we're certainly going to be needing
  82. 2:41it very soon because there's a project
  83. 2:43coming up and there's more labs and
  84. 2:44projects after that so we'll do that as
  85. 2:47well and we are recording this we didn't
  86. 2:48record it last week and we got that
  87. 2:50record button
  88. 2:51we smashed the record button as the kids
  89. 2:52say so we've got that rolling for that
  90. 2:54um and again thank you for for all the
  91. 2:57support and all the great suggestions on
  92. 2:58piazza for how to improve
  93. 3:00good job down on smashing that record
  94. 3:03button
  95. 3:04so going into the you know jumping into
  96. 3:06the news
  97. 3:08there is here is us a chip that got a
  98. 3:11lot of press over the summer it was
  99. 3:12announced i think
  100. 3:13uh in june and then a little more
  101. 3:17details came out in a conference that
  102. 3:18was held
  103. 3:19in uh august it is um
  104. 3:23uh nvidia's new gpu but this
  105. 3:26you know they call it a graphics
  106. 3:28processing unit but this is
  107. 3:30pretty much everything other than a
  108. 3:32graphics
  109. 3:34computing unit so it is a
  110. 3:37domain specific machine
  111. 3:41however that accelerates multiple
  112. 3:43domains where we care about
  113. 3:46linear algebra so it's a very expensive
  114. 3:48uh
  115. 3:50chip it is a a big die and they do want
  116. 3:54to get
  117. 3:55i mean it's a foundation of you know
  118. 3:56multiple different products
  119. 3:58that nvidia will be offering
  120. 4:01they are taunting about its uh
  121. 4:05performance um and here are a few things
  122. 4:08that they're talking about
  123. 4:10um they're talking about their
  124. 4:14floating point performance
  125. 4:17that's why we picked this news for this
  126. 4:19week and what is interesting
  127. 4:21there they've introduced a brand new
  128. 4:24floating point
  129. 4:25format that has that is
  130. 4:29tf-32 now um dan has mentioned
  131. 4:32in the lecture that there are few that
  132. 4:35there is ie754 standard
  133. 4:38there are few other
  134. 4:41different standards that people who did
  135. 4:43not think uh
  136. 4:44floating point uh standard from is going
  137. 4:47to
  138. 4:48serve them well so they invented their
  139. 4:50own so we got b float
  140. 4:5116 that more than just google has
  141. 4:55adopted it is now adopted by intel's
  142. 4:58processors
  143. 5:00but nvidia has pushed something
  144. 5:02completely new
  145. 5:03they got tf32 someone would think that
  146. 5:07some kind of a 32 point floating point
  147. 5:09standard
  148. 5:10but no it's a 19-bit
  149. 5:13floating point standard and you're
  150. 5:16thinking 19 bits
  151. 5:18yeah and you start thinking about you
  152. 5:20know british machines of the 70s with
  153. 5:22you know i got a 35-bit int how about
  154. 5:26that anybody want a 35-bit int i mean
  155. 5:28what are we up to here it's ridiculous
  156. 5:31yeah they have good reasons it's worth
  157. 5:33reading about their blog posts why
  158. 5:35they want to do this i mean it basically
  159. 5:37took two parts
  160. 5:38from the you know appropriate mantissas
  161. 5:41and
  162. 5:42exponents from b float and
  163. 5:45and fp16 or from
  164. 5:48um and and and made it smaller so
  165. 5:51they're trying
  166. 5:52to save compute power but they're
  167. 5:53wasting uh quite a bit of
  168. 5:56data storage over there and that's kind
  169. 5:58of important
  170. 5:59we'll see how this plays out um this is
  171. 6:01not the first one
  172. 6:03there was a flex point that nirvana
  173. 6:05introduced a few years ago and that
  174. 6:07seems to be gone i mean it lasted for
  175. 6:08about a year they had it launched
  176. 6:10in one generation of products and gave
  177. 6:13up on that
  178. 6:14but nvidia claims spectacular
  179. 6:16performance in this
  180. 6:17um i am going to flip through a couple
  181. 6:20of these slides
  182. 6:22um and you know one of the first things
  183. 6:24that they're showing they're not talking
  184. 6:25about graphics here they're
  185. 6:27talking about accelerating high
  186. 6:28performance computing
  187. 6:30and they're showing um best in class
  188. 6:32numbers that are
  189. 6:35oh look at this is fun uh these bars are
  190. 6:37green in the presentation but what has
  191. 6:39happened
  192. 6:40is it's your it's the background
  193. 6:44this is the campanile technology
  194. 6:49there is a berkeley there is a berkeley
  195. 6:51benchmark on the bottom oh
  196. 6:53it's beautiful well what's better than
  197. 6:55the campanile for brentwood brooklyn
  198. 6:57benchmark
  199. 6:57more playful um yeah so
  200. 7:00and one of the big things that you know
  201. 7:02what sells a lot of these ambiguous
  202. 7:04chips is uh
  203. 7:04machine learning acceleration so
  204. 7:06accelerating different kinds of machine
  205. 7:08working
  206. 7:08machine learning workloads and what
  207. 7:11they've shown
  208. 7:12here is that they got some really nice
  209. 7:14performance for a single chip for a
  210. 7:16single gpu
  211. 7:17you know tends to beat everything else
  212. 7:20why they talk about that
  213. 7:21because these pods that google uses for
  214. 7:23their tensor processing units that we
  215. 7:25have shown in the first lecture
  216. 7:27do still beat collections of gpus by uh
  217. 7:31by a wide margin a few things that we
  218. 7:35have seen
  219. 7:35before um is
  220. 7:40um so i think we have shown this in the
  221. 7:42lecture and better get out of this
  222. 7:44of this slide over here
  223. 7:48so we have uh fp32
  224. 7:51which is an uh ieee standard
  225. 7:54we have uh fp16 which is a half
  226. 7:56precision half-precision ieee standard
  227. 7:58and then there are these two other
  228. 8:00things that have
  229. 8:01been showing up in uh particularly
  230. 8:04machine learning so google is using b
  231. 8:07float 16
  232. 8:08because they do want more of an exponent
  233. 8:10they want more of a range
  234. 8:12and they don't care that much about
  235. 8:13mantissa or significant
  236. 8:15and then now there is tf32 which
  237. 8:18basically
  238. 8:19plucks the exponent from b float or
  239. 8:22from fb16 and matches it with the
  240. 8:26you know mantissa from fp 16
  241. 8:29and puts everything together ends up in
  242. 8:3319 bits
  243. 8:34and just rolls on now when we look
  244. 8:38at a bunch of hardware that is out there
  245. 8:41that
  246. 8:41is used for different domains
  247. 8:44we end up with quite a bit of variety
  248. 8:48and this is going to make
  249. 8:49everybody's life real fun so if you
  250. 8:52target one of these
  251. 8:54how are you going to retarget your
  252. 8:56application to target something else
  253. 8:58if something is running with b float 16
  254. 9:02will it run with
  255. 9:03tf32 who knows
  256. 9:07i think a lot of us are going to have a
  257. 9:09lot of fun over the time again
  258. 9:11you know some people will think about
  259. 9:13you know we'll see that as job security
  260. 9:15i will keep
  261. 9:16all of this complete class this whole
  262. 9:19class and everyone else
  263. 9:20busy figuring this out now we are not
  264. 9:23neither dan nor i are experts in this we
  265. 9:25know a little bit but we do have in our
  266. 9:27department we do have a
  267. 9:28an expert so our
  268. 9:32you know not just a resident expert but
  269. 9:34a
  270. 9:35global expert is professor jim demille
  271. 9:39he has been in berkeley for a while he
  272. 9:42is a professor of mathematics and
  273. 9:44computer science
  274. 9:45and he was our former chair so he was a
  275. 9:48chair
  276. 9:49until a year ago but he also
  277. 9:51participated in the revision of 754
  278. 9:54standard
  279. 9:55and he knows a lot about numbers
  280. 9:59so jim do we hear you
  281. 10:02i hope so can you hear me absolutely
  282. 10:05thank you
  283. 10:06welcome jim for coming this is so great
  284. 10:08to have you here it's fun to be here
  285. 10:10tell stories about floating point
  286. 10:15very good so can you tell us a little
  287. 10:18bit about how you ended up in berkeley
  288. 10:20where where you came from how you became
  289. 10:21a
  290. 10:22computer scientist and mathematician at
  291. 10:24the same time and how did you
  292. 10:25end up loving floating point well uh
  293. 10:28so a brief history as i graduated from
  294. 10:31caltech
  295. 10:32when i was 19 and then i spent three
  296. 10:35years working at a startup and living on
  297. 10:37venice beach and doing a lot of body
  298. 10:39surfing and bicycling
  299. 10:41bicycling across the country and then i
  300. 10:43decided it was time to go back to grad
  301. 10:44school
  302. 10:45and i only applied to berkeley life was
  303. 10:47different back then
  304. 10:49and so i started as a grad student in
  305. 10:51the math department
  306. 10:52and professor william khan who i'll tell
  307. 10:54you more about was my advisor
  308. 10:56and he suggested that i move to computer
  309. 10:59science
  310. 11:00which is why i eventually got my phd
  311. 11:02here in 1983
  312. 11:04and just as professor khan who's retired
  313. 11:06now
  314. 11:07uh never you know was a joint faculty
  315. 11:10member in both computer science and
  316. 11:11mathematics
  317. 11:13when after i graduated i went and was a
  318. 11:15faculty member at nyu
  319. 11:16for a few years and then i came back to
  320. 11:18berkeley and i'm
  321. 11:20following his path and i'm also in both
  322. 11:22departments
  323. 11:25but while i was his student he was
  324. 11:28had established this ieee floating point
  325. 11:30standards committee
  326. 11:31because the community had decided for
  327. 11:33very good reasons
  328. 11:34that it was just too painful to have
  329. 11:36every uh company building computers
  330. 11:39have different rules for how floating
  331. 11:40point work and that's because if
  332. 11:42everybody does arithmetic slightly
  333. 11:44differently it makes
  334. 11:45writing portable code or debugging
  335. 11:47really really hard
  336. 11:49and so the time was right to have a
  337. 11:51standard so everybody
  338. 11:52could agree and that he was the world's
  339. 11:54expert
  340. 11:55and established that standard and shared
  341. 11:57it
  342. 11:58and uh i got to work on it while i was a
  343. 12:00grad student
  344. 12:01and write a bunch of papers on that as
  345. 12:03well as doing a bunch of linear algebra
  346. 12:05work
  347. 12:06and then after it became a standard in
  348. 12:09uh
  349. 12:10in 85 that he won the touring award
  350. 12:12that's how much recognition he got so
  351. 12:14the nobel prize in computer science in
  352. 12:151989
  353. 12:17and so uh while i was away
  354. 12:21in new york city i also became part of
  355. 12:23the team
  356. 12:24that produces all the basic linear
  357. 12:26algebra software that people use
  358. 12:27l apac and so it was a great delight to
  359. 12:30have
  360. 12:31be able to rely on one common arithmetic
  361. 12:33standard to write all these algorithms
  362. 12:35that everybody uses
  363. 12:37sounds fun and you're our department
  364. 12:40chair so how do you become a department
  365. 12:41chair is that like
  366. 12:43a rewarder of punishment so for many
  367. 12:45years my excuse was
  368. 12:47i can't be chair uh because i'm in two
  369. 12:49departments i owe half my teaching to
  370. 12:51both departments how you know how could
  371. 12:53i be chair
  372. 12:54but then that excuse broke down when
  373. 12:56mike jordan
  374. 12:57another colleague who's in joint two
  375. 12:58departments agreed to be the chair of
  376. 13:00statistics so i said okay
  377. 13:01that excuse no longer works and uh
  378. 13:04so then i became chair of each and it
  379. 13:07was a an amazing time to be chair
  380. 13:09there was just this you know extremely
  381. 13:11rapid growth
  382. 13:13um we ended up you know during my tenure
  383. 13:15with having the two largest depart
  384. 13:17majors on campus both l and scs and eeks
  385. 13:20and we added a third major data science
  386. 13:23which now has 900 majors signed up so
  387. 13:25maybe we'll have the three largest
  388. 13:26majors on campus
  389. 13:28and fortunately the you know the campus
  390. 13:31you know doesn't have unbounded
  391. 13:33resources as we all know
  392. 13:34but they were very generous and in terms
  393. 13:37of letting us hire
  394. 13:38and i had the pleasure of hiring 14 new
  395. 13:40faculty
  396. 13:41while i was chair so 10 in computer
  397. 13:44science
  398. 13:44and 4 in double e and i'm happy to say
  399. 13:47it's the most diverse crowd ever it was
  400. 13:49uh
  401. 13:49half men and half women and so
  402. 13:52a lot of those folks are you know have
  403. 13:55joined us just recently
  404. 13:56and so uh they're going to be making you
  405. 13:58you'll be seeing a lot of them in
  406. 13:59classrooms or in zoom rooms as you like
  407. 14:02and on top of all that uh we created we
  408. 14:05decided that the organization of
  409. 14:07the campus was not sufficient to deal
  410. 14:09with all the changes in the world
  411. 14:11and so uh we created new division of
  412. 14:14data science
  413. 14:15and you know we argued about the name
  414. 14:16for a long time that's what faculty do
  415. 14:18but
  416. 14:18if the official name is now the division
  417. 14:20of computing
  418. 14:21data science and society and uh jennifer
  419. 14:25uh chase from formerly microsoft is the
  420. 14:28new uh
  421. 14:29dean or associate provost of that
  422. 14:31organization
  423. 14:33and uh so we're reorganizing all sorts
  424. 14:35of things
  425. 14:36in the curriculum and research and
  426. 14:38fundraising and a new building
  427. 14:40to go around and that
  428. 14:44glad that uh that john kenny and jeff
  429. 14:46bochar have uh taken the reins to
  430. 14:48make all this work excellent and it
  431. 14:51looks like you managed to step down
  432. 14:53on time right before uh
  433. 14:56we got into into all of this what we are
  434. 14:59dealing right now
  435. 15:00yes um and and i got to go back to
  436. 15:02bicycling too which was nice so
  437. 15:04that's excellent news um
  438. 15:08so you're also a part of a four
  439. 15:11uh rather forces still so can you tell
  440. 15:14us what what's new with the
  441. 15:16in the 2019 so my first
  442. 15:19opportunity to contribute to that was
  443. 15:21when i was a grad student and
  444. 15:22the way the ieee standards work is the
  445. 15:24rule is every 10 years every standard
  446. 15:27has to be revisited to make sure it's
  447. 15:29still
  448. 15:29technically up to date and so the
  449. 15:33last revision was approved in 2019 and
  450. 15:36the chair of the committee turned out
  451. 15:38was another student of professor khan's
  452. 15:40uh david huff
  453. 15:41and i was a member and you know several
  454. 15:44a couple of my students and a lot of
  455. 15:45people from many industries in academia
  456. 15:47were in it
  457. 15:48and so after this many years what was
  458. 15:51worth changing
  459. 15:52and there's always a few bug fixes
  460. 15:54amazingly even after
  461. 15:5620 or 30 years so so here's one bug fix
  462. 15:59it turns out that the way min and max
  463. 16:01were defined
  464. 16:03were not right for everybody why is that
  465. 16:06i hope
  466. 16:06that dan told people about nan's yeah
  467. 16:08when he did i certainly did i how could
  468. 16:11you not
  469. 16:11yeah okay so what is the max of
  470. 16:14man and three uh it turns out that not
  471. 16:18everybody agrees on what the definition
  472. 16:20should be
  473. 16:20so now there are two definitions of max
  474. 16:22and men wow
  475. 16:23and they're both uh associative because
  476. 16:26it's really important to get the same
  477. 16:27answer no matter what order you do it in
  478. 16:29and one of them always propagates a nand
  479. 16:32so nan is treated as any possible number
  480. 16:35and in the other version of min and max
  481. 16:37it's treated as missing data
  482. 16:39so it's always passed over so
  483. 16:43and that's because that's what people
  484. 16:44wanted but the most interesting but so
  485. 16:47so they're little bug fixes but there's
  486. 16:48one
  487. 16:48important new mathematical instruction
  488. 16:51that we added
  489. 16:52and the motivation for this was
  490. 16:54reproducibility
  491. 16:56and and the fact that uh floating point
  492. 16:59and
  493. 16:59dan i hope told you about this is not
  494. 17:01associative if you add three numbers in
  495. 17:03different orders you can get different
  496. 17:04answers
  497. 17:05because of round off we showed that and
  498. 17:08so
  499. 17:08this has become and so it used to be you
  500. 17:10know you you type eight out out twice in
  501. 17:13a row
  502. 17:14your code you know makes you know does
  503. 17:16the same thing and a lot of people have
  504. 17:17depended on that
  505. 17:18for many years for both for debugging
  506. 17:20and for correctness
  507. 17:21but you can't depend on that anymore
  508. 17:23because all our computers are parallel
  509. 17:25and they schedule things dynamically and
  510. 17:26you have no idea what order
  511. 17:29results come out in and so a few years
  512. 17:32ago
  513. 17:33there was a an email to a mailing list
  514. 17:36where people
  515. 17:37share ideas about numerical software and
  516. 17:39there was a
  517. 17:40software developer from a company who
  518. 17:42said does anybody have
  519. 17:43some software that solves big sparse
  520. 17:46systems of equations
  521. 17:47and is guaranteed to be reproducible now
  522. 17:50why did he want it
  523. 17:51well he had customers who were civil
  524. 17:53engineers who
  525. 17:54who did you know made models of
  526. 17:57buildings and stuff
  527. 17:58and they had customers with lawyers and
  528. 18:00the lawyers said
  529. 18:02every time on your program that analyzes
  530. 18:05whether this building will fall down in
  531. 18:06an earthquake
  532. 18:07it can't change its mind it has to do
  533. 18:09that makes sense that makes sense yeah
  534. 18:11and so when i saw that i sent email to
  535. 18:14the 100 odd berkeley faculty on this
  536. 18:16mailing list to do you know large-scale
  537. 18:18simulations and i did i said
  538. 18:19did you folks know that reproducibility
  539. 18:22is dead
  540. 18:23you know is this going to be a problem
  541. 18:24for you and most people said how will i
  542. 18:26debug
  543. 18:27if i can't run my program again and get
  544. 18:29the same bug
  545. 18:30uh there was one person who said oh i
  546. 18:33know better
  547. 18:34i do error analysis that was professor
  548. 18:36khan but they're not many people like
  549. 18:37him
  550. 18:38and then there was one person who said
  551. 18:41oh um
  552. 18:42i do the way i do my science is i do
  553. 18:44these large-scale simulations looking
  554. 18:46for really really rare events
  555. 18:48and when they occur i have to reproduce
  556. 18:50them and then compute why they occurred
  557. 18:53and if i can't reproduce them i can't do
  558. 18:54my science
  559. 18:56that was professor govindji in civil
  560. 18:58engineering
  561. 18:59but the most interesting response was
  562. 19:02from professor stewart russell who's an
  563. 19:04ai professor in our department
  564. 19:06and it turns out that the united nations
  565. 19:08uses his software
  566. 19:1024x7 to detect underground nuclear tests
  567. 19:14which are all
  568. 19:14illegal and so he said well what if my
  569. 19:17my software says the north koreans did
  570. 19:20it and then they didn't do it that would
  571. 19:21just be a mess at the united nations
  572. 19:23so so there's all sorts of reasons to
  573. 19:25have reproducibility
  574. 19:26and so in the meantime a bunch of
  575. 19:28companies have responded so intel has a
  576. 19:30version of their
  577. 19:31math library that that slows down but
  578. 19:34gives you you know the same answer every
  579. 19:35time
  580. 19:36but the ieee floating point standard um
  581. 19:39decided to add a new instruction that we
  582. 19:41proposed and it's a new way to make
  583. 19:43floating point associative
  584. 19:45and and it's a very complicated
  585. 19:47algorithm but let me just say we had to
  586. 19:49add a new
  587. 19:50edition like instruction that rounded
  588. 19:52differently than before
  589. 19:53and so that's now in the standard wow
  590. 19:56fascinating that is fascinating my
  591. 19:59goodness
  592. 20:02i may have to add that to the lectures
  593. 20:04yeah well i actually wanted to ask a
  594. 20:06question from the lectures jim if you if
  595. 20:07you don't mind please um i i i know that
  596. 20:10there's been
  597. 20:11a fair bit of i'm not sure controversy
  598. 20:13but debate
  599. 20:14between uh professor khan and dr john
  600. 20:17gustafsson
  601. 20:18oh i can talk about that at great
  602. 20:20lengths i know
  603. 20:21i've been probably you've probably been
  604. 20:23in those debates i've seen some of them
  605. 20:24on youtube
  606. 20:24i i organized the great debate between
  607. 20:27khan
  608. 20:28that's right that's right at the uh
  609. 20:31computer arithmetic conference a few
  610. 20:33years ago yes
  611. 20:34right and i think that was taped on
  612. 20:35youtube i watched it it was fascinating
  613. 20:36to watch
  614. 20:37can you share your perspective on a unum
  615. 20:39i mean he claims
  616. 20:41actually a unum to a float is what a
  617. 20:43float is to a fixed point so let's
  618. 20:45let's have the final word on that let me
  619. 20:47start with just a little bit of ancient
  620. 20:49history
  621. 20:49when floating point numbers were first
  622. 20:52uh you know proposed as an idea for
  623. 20:55neumann
  624. 20:56thought they were a bad idea and that's
  625. 20:59because he said anybody who's
  626. 21:02competent using a computer should know
  627. 21:04what
  628. 21:05dynamic range their numbers are in and
  629. 21:07scale them all to fit in fixed point to
  630. 21:09fit an integer
  631. 21:10right right you know so so floating
  632. 21:12point is you know for people who aren't
  633. 21:13competent
  634. 21:14but 40.1
  635. 21:17obviously because it's much easier to to
  636. 21:20program and
  637. 21:20yeah yeah so
  638. 21:24so many floating point formats have been
  639. 21:26reinvented
  640. 21:27invented and reinvented over the years
  641. 21:29and
  642. 21:30unums were have the property
  643. 21:34that they have variable precision so
  644. 21:37they can use
  645. 21:37more bits for or fewer bits for the
  646. 21:39exponent depending on how big the
  647. 21:40exponent has to be
  648. 21:43so numbers near one have lots more
  649. 21:46mantissa bits and they're more accurate
  650. 21:48and numbers that are really large or
  651. 21:49really small have less precision
  652. 21:51so the first time this appeared was it
  653. 21:53was actually a homework problem in
  654. 21:55canoes volume 2.
  655. 21:57you know he said i did not
  656. 22:00invent this and the first uh proposed
  657. 22:03solution was published
  658. 22:04in 1971 um to do this
  659. 22:08and uh and then it sort of nobody paid
  660. 22:11attention then it was reinvented again
  661. 22:13in the 80s
  662. 22:14and in 1987 i wrote a paper
  663. 22:17uh which explained how it would mess up
  664. 22:19error analysis of all the standard
  665. 22:20algorithms
  666. 22:21so anyway gustafson decided to reinvent
  667. 22:25it
  668. 22:25but i think the thing that really made
  669. 22:27it uh people
  670. 22:29object was it was variable length so
  671. 22:31every number could have a different
  672. 22:33length depending on how many
  673. 22:35you know exponent mantissa bits it had
  674. 22:37and so that means how could you have an
  675. 22:38array you know
  676. 22:40if you have a 100 by 100 array where is
  677. 22:42a sub
  678. 22:43100 right right right right right
  679. 22:48the whole you know goal of saving memory
  680. 22:50which is gustafson's goal you know it
  681. 22:52doesn't work
  682. 22:52so so anyway he decided to go back to
  683. 22:55the drawing board and he invented
  684. 22:56something called
  685. 22:57posits and and that came out a few years
  686. 23:00ago
  687. 23:01and and those are also variable
  688. 23:03precision but it's fixed length
  689. 23:04fixed number of bits and um and so
  690. 23:07there's been
  691. 23:09several groups you know who've been
  692. 23:11who've been uh you know pushing it
  693. 23:13uh but let me just say i don't think
  694. 23:15it's a good idea
  695. 23:17um i have on my web page a link to a
  696. 23:20paper by some
  697. 23:21experts and the name of the paper is
  698. 23:24posits the good the bad and the ugly
  699. 23:27[Laughter]
  700. 23:29and so you know so they talk about all
  701. 23:31the things that can go wrong too but
  702. 23:32from the error analysis point of view
  703. 23:34making software correct
  704. 23:36it's just painful when numbers have
  705. 23:38different precisions depending on
  706. 23:39whether they're
  707. 23:40large or small or close to one or
  708. 23:42whatever right right and the other thing
  709. 23:43that's missing from posits
  710. 23:45it doesn't have nands and so if you you
  711. 23:48know divide zero by zero
  712. 23:50uh gus's and said oh you should just
  713. 23:51stop because your code is obviously
  714. 23:53wrong
  715. 23:54[Laughter]
  716. 23:56but you know this this just makes
  717. 23:57writing reliable code a little too hard
  718. 24:00right right yeah um one one uh
  719. 24:04comment about that you know risk five is
  720. 24:07uh
  721. 24:07open and anybody called invent an
  722. 24:10extension so
  723. 24:11this has been coming up uh multiple
  724. 24:13times by gustafson
  725. 24:15and others can we get a posits extension
  726. 24:18for x5 and they keep
  727. 24:20and then they keep showing interest in
  728. 24:22that well i had you know
  729. 24:23dave patterson about that last weekend
  730. 24:25and he wanted to know
  731. 24:27what's what are the arguments pro and
  732. 24:28con so i you know sent him a link to the
  733. 24:30good the bad and the ugly
  734. 24:32yeah very good but that's the beauty of
  735. 24:35this five it's completely democratic you
  736. 24:37can do
  737. 24:37whatever you want to do it including
  738. 24:40adding posits if it
  739. 24:41if it suits you well um so let me so so
  740. 24:44you you made the point that there are a
  741. 24:46lot of new
  742. 24:47formats being proposed not just unums
  743. 24:49and posits
  744. 24:50yeah b float 16 all these different
  745. 24:52things and and
  746. 24:54there was a paper just from a couple
  747. 24:56years ago called
  748. 24:57ternary arithmetic where there are only
  749. 24:59three numbers plus one
  750. 25:00minus one and zero so you know so it's
  751. 25:03wasting
  752. 25:04you know it uses two bits of course so
  753. 25:05it's wasting one of the patterns but
  754. 25:07right but there's a bunch of evidence
  755. 25:10that that's good enough for training
  756. 25:11neural nets all you need to know is you
  757. 25:13go up
  758. 25:13you go down or you not change
  759. 25:15interesting and
  760. 25:16so there is no one format that's going
  761. 25:18to make everybody happy
  762. 25:20and and it's a little bit of the wild
  763. 25:22west right now right but
  764. 25:23i think it's fair to say that you know
  765. 25:25not one format will make everybody happy
  766. 25:28but it makes sense final thoughts so
  767. 25:29flex point is kind of a distant relative
  768. 25:32of uh
  769. 25:34yeah so that that was from nirvana and
  770. 25:36just to tell a little side story on
  771. 25:38nirvana i was uh
  772. 25:40teaching 267 cs267 my parallel computing
  773. 25:43class
  774. 25:44you know this was a few years ago and i
  775. 25:46was teaching a new algorithm for
  776. 25:48multiplying matrices um that could go
  777. 25:51you know much faster than the previous
  778. 25:53ones and one of the students in the
  779. 25:54class thought it was a good idea
  780. 25:56and he founded nirvana
  781. 25:59a miraculous rashard and so
  782. 26:02so i was an advisor you know for that
  783. 26:04particular aspect of the work but not
  784. 26:06for uh for flex point so
  785. 26:10just as i mentioned everything is
  786. 26:11invented more than once so the old name
  787. 26:14for flex point is block floating point
  788. 26:16and it appeared
  789. 26:18in a 1963 book on air analysis by jim
  790. 26:22wilkinson who won
  791. 26:23the touring award in 1970 for his work
  792. 26:25and you know in that stuff
  793. 26:27so the idea has been around for a while
  794. 26:29and you know it has its pros and cons
  795. 26:32but again it puts a lot more burden on
  796. 26:34the programmer
  797. 26:35to figure out you know which numbers can
  798. 26:38i put together
  799. 26:40because they share a common exponent
  800. 26:42without losing too much precision
  801. 26:44and you know it sort of goes back to the
  802. 26:45neumann who said oh we should all just
  803. 26:47all scale stuff and
  804. 26:48use use you know integers you know
  805. 26:51versus let's make it easy to program
  806. 26:53you know life is trade-offs
  807. 26:57wonderful thank you uh so one final
  808. 27:00thought and then we will let you
  809. 27:02do whatever you need to do um so how are
  810. 27:05we going to handle all of these tf-32s
  811. 27:07and v-floats and
  812. 27:08and all like actually it's it's a soup
  813. 27:11yeah how do we handle the soup
  814. 27:13well all right um so we have a grant uh
  815. 27:16to keep maintaining la pac and scala
  816. 27:19pack
  817. 27:20you know these you know linear algebra
  818. 27:21libraries that everybody uses
  819. 27:23and one of the projects that we're doing
  820. 27:26is to ask
  821. 27:26are do these standard linear algebra
  822. 27:29algorithms work in b flow 16
  823. 27:31and so i propose this you know sort of
  824. 27:34half as a joke as a class project
  825. 27:36in my math 221 class this semester and a
  826. 27:38student said oh i want to do that
  827. 27:41so so what we're planning to do is uh
  828. 27:44port all of lapack to be float 16 and
  829. 27:48lapak comes with all this test code to
  830. 27:50see if whether it's correct or not
  831. 27:52and we're going to see whether it passes
  832. 27:53or fails all the tests
  833. 27:56interesting and so in the meantime
  834. 27:58though a lot of people are proposing
  835. 27:59mixed precision
  836. 28:01where you do you try to do a lot of the
  837. 28:03work in low precision
  838. 28:04say half precision and then you do a
  839. 28:07little bit of extra work at the end to
  840. 28:09clean up the answer
  841. 28:10and uh by doing it in higher precision
  842. 28:13and there's a bunch of algorithms
  843. 28:14been around for a while that work for
  844. 28:16some well-known problems
  845. 28:18um basically you solve the problem and
  846. 28:21do a few steps of newton's method to
  847. 28:23sort of clean it up
  848. 28:24yeah for some problems that's cheap and
  849. 28:26for some problems it's pretty expensive
  850. 28:28so it kind of depends
  851. 28:30it's it's like how i play golf you know
  852. 28:31you hit a big shot you get a rough thing
  853. 28:33and then when you're on the green you
  854. 28:34putt in at the higher resolution so that
  855. 28:35might make sense
  856. 28:36i like it nice yeah that's that's the
  857. 28:39claim for a100 so that you should be
  858. 28:42able to do multiple
  859. 28:43multi-resolutions so so so maybe a
  860. 28:46a lesson for the students is that you
  861. 28:48know you have to
  862. 28:49understand a little bit of enough math
  863. 28:52to understand where the errors can be
  864. 28:54so you're not surprised badly
  865. 28:59all right thank you jim and i believe
  866. 29:00you're you're teaching cs70 next
  867. 29:02semester so
  868. 29:03actually i just got changed to 170. oh
  869. 29:06perfect
  870. 29:07congratulations yes it is yes alessandro
  871. 29:10chase jason i will be teaching 170
  872. 29:12together wonderful
  873. 29:13all right so great i think people may
  874. 29:16uh some of the students may take 170
  875. 29:19next year may have you in their classes
  876. 29:21this coming spring that would be
  877. 29:22wonderful that would be great okay
  878. 29:26wonderful thank you very much thank you
  879. 29:28so much jim for what you've done for the
  880. 29:30department is and for joining us today
  881. 29:31thank you so much
  882. 29:32take care bye-bye wonderful take care
  883. 29:34that's great
  884. 29:36we have all right uh we have
  885. 29:40two um kind of polls to run
  886. 29:43um i think uh i'll hand them over to to
  887. 29:46then the first one
  888. 29:47sure i don't know how to start them but
  889. 29:49i'll first give the introduction for the
  890. 29:51first one
  891. 29:52um we have been
  892. 29:55thinking about how do we do this um
  893. 30:00how do we do the the clicker questions
  894. 30:02right
  895. 30:03because we do want to keep everybody on
  896. 30:05track but we
  897. 30:07are trying this time not to keep
  898. 30:09everybody on
  899. 30:10really too tight of a leash um we
  900. 30:13really need everybody to stay on track
  901. 30:17with the lectures such that we can
  902. 30:19proceed with homeworks and we can do the
  903. 30:21labs
  904. 30:22and they're all you know all whole
  905. 30:25thing or complete learning experience so
  906. 30:29um how do people feel so i'll hand it
  907. 30:32over to them
  908. 30:32about how do we administer these
  909. 30:36quicker questions sure so reason number
  910. 30:39three now
  911. 30:40yeah i mean again we're trying to
  912. 30:41optimize this is all new for us we want
  913. 30:43to basically
  914. 30:44be responding to what you'd like to see
  915. 30:46um
  916. 30:47and uh we want to have a little bit of
  917. 30:49time as well to talk about how to do the
  918. 30:51exam so we'll talk about that first but
  919. 30:52the first question is
  920. 30:54um you know these lectures sometimes
  921. 30:57they come in single one lecture
  922. 30:58pieces which we slice up into many
  923. 31:00pieces that's what i did for floating
  924. 31:01point and by the way that did grow a
  925. 31:03little bit longer than 50 minutes and
  926. 31:04that's okay because some lectures will
  927. 31:06go smaller than 50 minutes so it'll work
  928. 31:07out
  929. 31:08to be just about right we're not going
  930. 31:09to double load you in terms of lecture
  931. 31:11but this floaty was a little extra
  932. 31:12because i wanted to show you a little
  933. 31:12demo
  934. 31:13at the end of it um so that's an easy
  935. 31:16one that you know that one was you there
  936. 31:17but
  937. 31:18then we said you know do we have it due
  938. 31:19every single monday wednesday friday to
  939. 31:21keep you up like this
  940. 31:22or do we say let's try to do it once a
  941. 31:24week as a compromise of that and
  942. 31:26different people might
  943. 31:27thursday saturdays when it's time right
  944. 31:29exactly should they be do tuesday
  945. 31:30thursdays and saturdays or just kind of
  946. 31:32do thursdays
  947. 31:33and you have to do every other thing
  948. 31:34from last week up to every thursday so
  949. 31:36that's kind of where we
  950. 31:37how we're doing it and if there's any
  951. 31:38strong preference either way um you can
  952. 31:40do it and if by the way you would have
  953. 31:41preferred it monday wednesday friday
  954. 31:43we'll try to have it up in advance so
  955. 31:44that you could actually go ahead and do
  956. 31:46those things so that should that should
  957. 31:47work as well
  958. 31:48um that's the first part so thank you
  959. 31:50for that feedback it looks like people
  960. 31:51are really split on that i'm looking at
  961. 31:52the numbers here in the poll the poll
  962. 31:53looks like this was
  963. 31:55not tremendous help to you this is yeah
  964. 31:57they're all around the board
  965. 31:58every single bucket is there in the
  966. 32:00thing it's a very funny thing
  967. 32:02uh just so you know i mean every single
  968. 32:04uh
  969. 32:05all of us including tas had some
  970. 32:08opinions about how to do it right
  971. 32:10right and and some of that's borne out
  972. 32:14by data we actually surveyed the folks
  973. 32:15last summer
  974. 32:16and the folks last summer said almost
  975. 32:17overwhelmingly that they would be
  976. 32:19falling behind if it weren't for us
  977. 32:20keeping them
  978. 32:21up to pace every monday was a friday
  979. 32:23like that like a heartbeat uh
  980. 32:24summer does run a little bit faster than
  981. 32:26than spring and fall but still
  982. 32:28uh that was very useful to have that as
  983. 32:29a part of our conversation
  984. 32:31part two is um we want we wanted to have
  985. 32:35allow for you to have an asynchronous
  986. 32:38model
  987. 32:38uh that was the first the first pass you
  988. 32:40know the first draft is let's have them
  989. 32:41be asynchronous
  990. 32:42let's give them a whole day they can
  991. 32:44wake up sunday morning
  992. 32:45and then have a nice breakfast and pull
  993. 32:47out the exam the exams will be broken up
  994. 32:49into questions
  995. 32:50and every question will be a time where
  996. 32:52you jump in you're zoomed you know
  997. 32:53you're locked in
  998. 32:54and you can't stop you can't take a
  999. 32:56break mid question and then you gotta
  1000. 32:58freeze it and hopefully that question
  1001. 32:59doesn't take you more than 20 or 30
  1002. 33:00minutes so
  1003. 33:01hopefully you can give a good 23 minutes
  1004. 33:03you know big stretch and then go take a
  1005. 33:04stretch and then walk around and have
  1006. 33:06some food hit the restroom
  1007. 33:07and then come on back again so that's
  1008. 33:09the model that was gonna be the model
  1009. 33:11many people have shared on piazza that
  1010. 33:13there's a concern about how to do
  1011. 33:16the time lapse you know we we were
  1012. 33:18thinking if you
  1013. 33:19you need to have some way to verify
  1014. 33:21people just keeping a copacetic you know
  1015. 33:22having a nice thing and they're not
  1016. 33:23going on google or not and you know
  1017. 33:25their friends
  1018. 33:25so how do you do this without the
  1019. 33:27onerous and we've heard a lot of
  1020. 33:29negative comments about
  1021. 33:30synchronous zoom proctoring being really
  1022. 33:32hard for people at different time zones
  1023. 33:34and what happens if the thing goes down
  1024. 33:36i know you're watching blah blah people
  1025. 33:37are watching
  1026. 33:38they're seeing your room what if your
  1027. 33:39parents come in or if you're all the
  1028. 33:41so that's a concern so we wanted to
  1029. 33:43basically allow people to have an ace
  1030. 33:45and by the way synchronous means you and
  1031. 33:46you when you know you and the staff have
  1032. 33:48to be on the same computer
  1033. 33:50at the same time for some amount of time
  1034. 33:52and you have to kind of limit what that
  1035. 33:53time is
  1036. 33:54unlike the asynchronous model which says
  1037. 33:56just go home and take it for 24 hours if
  1038. 33:58you want to work for 20 hours that's
  1039. 33:59great you want it for two hours you work
  1040. 34:00for 30 minutes that's fine
  1041. 34:02it's just more relaxed in the
  1042. 34:03asynchronous model but we do it we do
  1043. 34:05understand
  1044. 34:06that some people are worried about their
  1045. 34:07phones not being able to do
  1046. 34:09um a time-lapse video we did do a test
  1047. 34:12and we found that the test
  1048. 34:13for and remember we don't expect people
  1049. 34:15to really because we're going to break
  1050. 34:16this up into pieces
  1051. 34:17you'll do one piece that's 20 minutes so
  1052. 34:19people it may not be that much work
  1053. 34:21on your phone in terms of the amount of
  1054. 34:22storage you need and the amount of
  1055. 34:24actual you know overheating your phone
  1056. 34:25might do because you're not going to be
  1057. 34:26there probably for an hour
  1058. 34:27you'll be in for a set of small
  1059. 34:29questions and then stop and then break
  1060. 34:30and then come back in so it may not be
  1061. 34:32and for each one of those we're going to
  1062. 34:33time lapse video
  1063. 34:35as well so that was the initial model
  1064. 34:38but some folks said well we can't
  1065. 34:40actually do that because my phone
  1066. 34:41doesn't have a time lapse and nobody in
  1067. 34:43my family has a towel up and i have no
  1068. 34:44access to a time lapse
  1069. 34:46phone that'll do that so how do i do
  1070. 34:48that so
  1071. 34:49bore i i would give bohr the great the
  1072. 34:51great pro the props for thinking of this
  1073. 34:54he said well what if we allowed for a
  1074. 34:56backup with zoom proctoring
  1075. 34:57so that means we know people usually
  1076. 34:59don't like zoom proctoring
  1077. 35:01usually although i'm looking at the
  1078. 35:02survey of the survey it's
  1079. 35:04equal preference for zoom proctoring an
  1080. 35:06equal preference without doing proctor
  1081. 35:08so that the idea is for people who don't
  1082. 35:11have access to that
  1083. 35:12um you you would be able to get online
  1084. 35:15and we're going to only
  1085. 35:16you know maybe have one time where you
  1086. 35:18have to get in there and it's going to
  1087. 35:19be
  1088. 35:20a fixed time we're going to be there you
  1089. 35:21have to lock in we have to start at the
  1090. 35:23same time
  1091. 35:23and it's not that whole flexibility is
  1092. 35:25gone you're in there
  1093. 35:27to you know you're in there stuck and we
  1094. 35:29have to watch you when you're watching
  1095. 35:30your thing and you're watching the
  1096. 35:31screen
  1097. 35:32and bruh and we've got the whole
  1098. 35:34situation and in that situation your
  1099. 35:36camera has got to show your whole
  1100. 35:38i mean we have to then to have a
  1101. 35:40conversation maybe on our side of how we
  1102. 35:41get the screen
  1103. 35:42and you and your desktop and how all of
  1104. 35:44that together if we if we do zoom
  1105. 35:46proctoring you have to then
  1106. 35:47have your camera above maybe you have to
  1107. 35:49have your camera as the zoom camera
  1108. 35:51showing both the screen and the desktop
  1109. 35:53so we can see the screen because you
  1110. 35:54obviously could have another window open
  1111. 35:56with some bad stuff so we need to be
  1112. 35:57able to see
  1113. 35:58what's on your screen and we didn't want
  1114. 35:59to have a time lapse of both the screen
  1115. 36:02so we didn't want to have both zoom
  1116. 36:03proctoring and a screen recording we'd
  1117. 36:05like to be able to have just one movie
  1118. 36:06for each of these things or a zoo a live
  1119. 36:08zoom that is able to see the whole
  1120. 36:10desktop
  1121. 36:11so this is a concern this is where we're
  1122. 36:13working with this fortunately this this
  1123. 36:15quest is not worth that many points
  1124. 36:17so it's not like well this is a 90 you
  1125. 36:18know worth 90 of your grade this is
  1126. 36:20worth a very small amount of your points
  1127. 36:21um and and we're going to try i think we
  1128. 36:24might have to try both because i'm
  1129. 36:25hearing that enough people
  1130. 36:26cannot do the time lapse that we have to
  1131. 36:28be able to to give a little bit
  1132. 36:30so i want to be able to have some
  1133. 36:32questions and concerns bro you want to
  1134. 36:33jump in yeah
  1135. 36:34there are some good questions that that
  1136. 36:36came through the chat
  1137. 36:38i don't know if i'm uh i i'm paying too
  1138. 36:41many
  1139. 36:41too much attention steven if you see
  1140. 36:43some maybe you can
  1141. 36:44read a few um there are comments over
  1142. 36:47there that uh i think some people
  1143. 36:48didn't realize that if it is a zoom
  1144. 36:50proctor that it's going to be a fixed
  1145. 36:52time we are not going to be correcting
  1146. 36:5424 hour
  1147. 36:55correct yeah dan and i are not going to
  1148. 36:57be sitting in front of screens for 24
  1149. 36:59hours
  1150. 37:00right um so so so we we almost want to
  1151. 37:03encourage people to take the advantage
  1152. 37:06of the asynchronous
  1153. 37:07do it whenever you comfortable
  1154. 37:09time-lapse model if that works
  1155. 37:11and encouraging people if they can't if
  1156. 37:14if you know you really prefer to just
  1157. 37:15the way you work or because of technical
  1158. 37:17reasons you really need to go with the
  1159. 37:19zoom proctor
  1160. 37:19we're going to have to find the time for
  1161. 37:21our staff and us to be there and
  1162. 37:23uh it'll be on sunday so we'll we'll
  1163. 37:25both be on piazza answering questions
  1164. 37:27and we'll be have you know the official
  1165. 37:29exam starts here an official exam ends
  1166. 37:30there and it'll be the same idea
  1167. 37:32either way by the way each person is
  1168. 37:34going to get hopefully a randomized exam
  1169. 37:36and so your exam should be different
  1170. 37:37than your neighbor's exam and you'll be
  1171. 37:38doing it
  1172. 37:39and being able to we'll be able to watch
  1173. 37:40you and have to be able to answer any
  1174. 37:42questions
  1175. 37:42so it's not like you'll get more support
  1176. 37:44if you're zoomed you're going to be me
  1177. 37:46here's the here's the thing about the
  1178. 37:47zoom proctoring you're going to have to
  1179. 37:49have your camera on
  1180. 37:50again that's a privacy concern which is
  1181. 37:52why we wanted to not have that as the
  1182. 37:53default
  1183. 37:54and your microphone has to be on both of
  1184. 37:56those have to be on so we're hearing
  1185. 37:57what's room you can't have
  1186. 37:59people in the room doing that so that's
  1187. 38:00very different you have to be on a fixed
  1188. 38:02time
  1189. 38:03with the camera microphone on but your
  1190. 38:05speakers are off so you're not hearing
  1191. 38:07what so if someone coughing you don't
  1192. 38:09want to hear everyone coughing in this
  1193. 38:10room but essentially it is like we're
  1194. 38:12all watching you at the same time
  1195. 38:13like that it's not any different so
  1196. 38:15that's i hope that i don't that affects
  1197. 38:17people's votes
  1198. 38:18but that's that's what the space of that
  1199. 38:20zoom proctoring situation is going to be
  1200. 38:21and it's a lot more
  1201. 38:22it's now we have to now manage two of
  1202. 38:24these exams to do this but most people
  1203. 38:26in the summer did not want to have zoom
  1204. 38:27proctoring and most people
  1205. 38:28were doing that so this is always a
  1206. 38:30backup for people who don't want to have
  1207. 38:31for
  1208. 38:32whatever reason the time lapse technical
  1209. 38:34reasons or or
  1210. 38:35or their own the way they study so yeah
  1211. 38:38there is a question that i saw multiple
  1212. 38:40times you know what
  1213. 38:41yes everyone's in the same room that's
  1214. 38:42the idea no no the time lapse time lapse
  1215. 38:44it's
  1216. 38:45like there's a standard setting in
  1217. 38:46iphone if you have an iphone it's like
  1218. 38:49takes a picture of you every five
  1219. 38:50seconds that's correct you want a
  1220. 38:52picture of you from behind your back
  1221. 38:54um and your screen and that's it it's
  1222. 38:56not a very big file
  1223. 38:58but you don't have an iphone then you
  1224. 39:00have to have an app
  1225. 39:01on android that will do that and we have
  1226. 39:03a policy in this class which is unlike
  1227. 39:05every other policy which is our exams
  1228. 39:07clobber
  1229. 39:08so if you do better in your midterm than
  1230. 39:10your quest then
  1231. 39:11that'll be that'll be the the way so
  1232. 39:14because of this clubber possibility
  1233. 39:16um you don't also need a tripod you can
  1234. 39:18have anything that can a box anything
  1235. 39:19that can place your camera above and
  1236. 39:20behind you
  1237. 39:21so it sees your screen and your desktop
  1238. 39:23a little an amazon box
  1239. 39:25tape it to the wall like literally you
  1240. 39:26could sit with your back against the
  1241. 39:28wall put on a windowsill i just
  1242. 39:29responded on piazza about that
  1243. 39:31but if you decide to go to the zoom
  1244. 39:32you're all in the same zoom meeting
  1245. 39:34everyone microphone and camera must be
  1246. 39:36on and but your speakers are off so you
  1247. 39:38can't hear anything you're just
  1248. 39:40delivering the data to us and we're
  1249. 39:41watching the whole room and capturing it
  1250. 39:43on recording so we have that there
  1251. 39:45um but no one's able to no and you're
  1252. 39:46able to see everybody else that's the
  1253. 39:48part of this
  1254. 39:48the privacy thing you have to find a
  1255. 39:50quiet space that you can do that
  1256. 39:51and that's a lot harder um we thought
  1257. 39:53that this was a lot easier a lot more
  1258. 39:55flexible
  1259. 39:56because you can do it you know do a a
  1260. 39:58couple of questions
  1261. 39:59go visit the refrigerator or do it yeah
  1262. 40:02you need to
  1263. 40:02exactly so so we we think you we thought
  1264. 40:06that the students would just eat it up
  1265. 40:07they would just oh we love thank you so
  1266. 40:09much
  1267. 40:09but enough people are like wave blah
  1268. 40:11blah blah blah technical technical
  1269. 40:12yeah i gotta have a box i don't have a
  1270. 40:14thing i'd rather be in the zoom just
  1271. 40:15make it easy
  1272. 40:16all right we'll give you that option too
  1273. 40:18so that was borah's great idea and i
  1274. 40:19think we'll support that as well
  1275. 40:20and we'll have to decide very quickly
  1276. 40:22what time that'll be and let you know
  1277. 40:24it'll be sunday so it's four days away
  1278. 40:25but we'll let you know as well as
  1279. 40:27revealing
  1280. 40:27uh sharing the official document uh
  1281. 40:30about the logistics of
  1282. 40:32you know here here are ten different
  1283. 40:33ways to put your camera above your
  1284. 40:35shoulder
  1285. 40:35here's a box here's a tape on a wall
  1286. 40:37here's sitting behind a windowsill
  1287. 40:39here's uh you know that kind of thing so
  1288. 40:40we'll have to do you know
  1289. 40:42here's my neighbor holding it up but
  1290. 40:44here's my neighbor holding it up
  1291. 40:45for an hour you know above my thing so
  1292. 40:48um
  1293. 40:48that's the place of that uh happy to try
  1294. 40:52to talk to more this is the chance for q
  1295. 40:53a this is the
  1296. 40:54ask me anything situation um
  1297. 40:57both of us yeah anybody can see the the
  1298. 41:00questions
  1299. 41:01actually they're in the chat so stephen
  1300. 41:04if you see them
  1301. 41:05they're also in q a and it's hard to
  1302. 41:07follow all of this yeah
  1303. 41:09a lot here i got a lot here um
  1304. 41:14and zoom proctoring you can't just
  1305. 41:16cannot disconnect audio i'll just i'll
  1306. 41:17click on that one
  1307. 41:18you'll have to have your audio on and
  1308. 41:20your video on both and
  1309. 41:21so we're hearing sound from the whole
  1310. 41:23from every room and we can mute you so
  1311. 41:25we can mute you and unmute you
  1312. 41:26uh but you'll have to have that on so if
  1313. 41:28someone were kind of whispering over
  1314. 41:29your shoulder telling you the answer we
  1315. 41:30would know that that's that's the idea
  1316. 41:32um so that's that one there's a question
  1317. 41:34though is the quest
  1318. 41:36digital only will it require submitting
  1319. 41:38any paperwork
  1320. 41:39uh currently no you will not need to
  1321. 41:41submit any paperwork no paperwork
  1322. 41:42exactly no paperwork and cs70 had a
  1323. 41:44whole policy about
  1324. 41:45you print the paper and you work on
  1325. 41:47paper none of this is there you get a
  1326. 41:48randomized exam as i think 70 did as
  1327. 41:50well
  1328. 41:51or to try to at least um and then so
  1329. 41:53this is everybody's a randomized exam as
  1330. 41:55much as we can
  1331. 41:56give randomization and it's all digital
  1332. 41:58you're going to be in in the system
  1333. 41:59called prayer learn and
  1334. 42:00here's the important thing we're going
  1335. 42:01to have a practiced quest
  1336. 42:03that's going to be released very very
  1337. 42:04soon if it's not already released uh
  1338. 42:06steven do we give a sense of eta for
  1339. 42:08that at all i don't know because
  1340. 42:10cece is the one who's spending okay so
  1341. 42:12so yeah but so but it's going to be very
  1342. 42:13soon we're going to have a practice exam
  1343. 42:15which means and by the way in the
  1344. 42:17practice exam i would encourage
  1345. 42:18everyone every single person to try to
  1346. 42:21put their phone above them and try to do
  1347. 42:22this and put it on for an hour
  1348. 42:24i don't think it's gonna take any of the
  1349. 42:25sub questions an hour but try it you
  1350. 42:27know give that kind of a high a high
  1351. 42:29order a
  1352. 42:29high water mark put your phone above you
  1353. 42:32try to capture that and get a sense and
  1354. 42:33we'll also try to share as many as much
  1355. 42:35as we can
  1356. 42:36examples in the we're going to have this
  1357. 42:37again the quest logistics stock that'll
  1358. 42:38have
  1359. 42:39all the examples of that um because it's
  1360. 42:42it's going to be a a real pain for folk
  1361. 42:44for folks to
  1362. 42:45to have to do zoom proctoring if
  1363. 42:47everybody has to get on the same time
  1364. 42:48zone so if they make the more people
  1365. 42:50that can
  1366. 42:51do this is asynchronous thing we think
  1367. 42:52it gives you by the way the zoom
  1368. 42:54proctoring we're going to have a finite
  1369. 42:55time
  1370. 42:56you know maybe double time so we'll have
  1371. 42:57two hours we're going to sit with you
  1372. 42:59to do that but you'll have 24 hours if
  1373. 43:01you do the
  1374. 43:02the the time lapse that's the other
  1375. 43:03difference is you can take a rest and
  1376. 43:05obviously not going to ask you 24 hours
  1377. 43:06to work
  1378. 43:06probably it's going to be we think it's
  1379. 43:08going to be less than an hour that's
  1380. 43:09what we think we're going to try to have
  1381. 43:10the exam that's doable in less than an
  1382. 43:12hour that's what we always try to do
  1383. 43:13um so that's the idea yeah and again we
  1384. 43:16are all we haven't done nobody's
  1385. 43:18administered an exam like this to 1200
  1386. 43:20people
  1387. 43:21right so we're trying our best right and
  1388. 43:24by the way
  1389. 43:25i should i should add somebody that had
  1390. 43:26an interesting point which is
  1391. 43:28you could do zoom if you have a second
  1392. 43:29computer if you have a second computer
  1393. 43:32that computer behind you could be your
  1394. 43:34your thing so you if you wanted to zoom
  1395. 43:36from a second device
  1396. 43:38you could zoom record if you can record
  1397. 43:40that you can record that it doesn't have
  1398. 43:42to be time-lapse if it's actually the
  1399. 43:43full video that's fine it'll be a bigger
  1400. 43:44data file but we can live with that too
  1401. 43:46so if you have something else to record
  1402. 43:47you like if you have a gopro or a second
  1403. 43:49computer doing zoom you can do that the
  1404. 43:50problem is
  1405. 43:51the normal zoom is only from out the
  1406. 43:53computer we need to see your desk space
  1407. 43:54we need to see what you're going
  1408. 43:56to see your screen and the zoom wouldn't
  1409. 43:57be able to do that you can do it from an
  1410. 43:59android phone you can just call in
  1411. 44:00into you know from a zoom app and right
  1412. 44:03so
  1413. 44:04so so the cloud recording yeah that you
  1414. 44:06could do that if you wanted to do that
  1415. 44:08so there are ways to you know be
  1416. 44:09creative about this and hopefully we'll
  1417. 44:10add this to all these logistics and the
  1418. 44:12logistics stock we're trying to support
  1419. 44:14everybody in this kind of new space but
  1420. 44:15again we're trying to be as flexible as
  1421. 44:16we can for everybody
  1422. 44:18i'm at 501 i'll make sure um so zoom
  1423. 44:21proctoring okay disconnect audio no you
  1424. 44:22cannot
  1425. 44:23um uh
  1426. 44:26again the camera is going to be showing
  1427. 44:28so i'm answering this one live
  1428. 44:30the camera is going to be showing your
  1429. 44:32desk your hands and your screen that's
  1430. 44:34the most important thing okay so we see
  1431. 44:36so on our table and by the way usually
  1432. 44:38these things are high resolution because
  1433. 44:39they're free they're just a picture
  1434. 44:40every time
  1435. 44:41not a whole full movie but it's a full
  1436. 44:42picture so we can actually be able to
  1437. 44:43read your screen
  1438. 44:44and see what you're doing for every
  1439. 44:46single frame we'll be able to go through
  1440. 44:47that and the smaller file format
  1441. 44:49so that's there um asynchronous can do
  1442. 44:52zoom yes you can uh and i answered that
  1443. 44:55live
  1444. 44:56because you could use from a second
  1445. 44:57computer for that um
  1446. 45:01a lot of questions boy um
  1447. 45:04the i'll do the answer there is no time
  1448. 45:06limit when you start the exam if you do
  1449. 45:08the asynchronous model you can start and
  1450. 45:10stop whenever you want to you just have
  1451. 45:11to
  1452. 45:11only you cannot start and stop within a
  1453. 45:14question
  1454. 45:15you do one question you cannot start and
  1455. 45:16stop and that question should be less
  1456. 45:18than
  1457. 45:18should be about 30 minutes max for each
  1458. 45:20of the small parts i think probably 10
  1459. 45:21minutes for some of them five minutes
  1460. 45:23for some people
  1461. 45:24to go take a break so you can't stop
  1462. 45:26once you started a question
  1463. 45:28but then you can take as much break as
  1464. 45:29you can for that so there's no time
  1465. 45:30limit 24 hours to do all the whatever
  1466. 45:32parts we have i think it's like three or
  1467. 45:33four
  1468. 45:34or maybe five parts we have to the exam
  1469. 45:36um
  1470. 45:42one question that they can take about
  1471. 45:43these due dates right i mean we
  1472. 45:45have among ourselves the the debate
  1473. 45:48there are different people who have
  1474. 45:49different learning styles so
  1475. 45:51you know it may work fine if everybody
  1476. 45:54if we have everybody uh watch every
  1477. 45:57lecture
  1478. 45:58when it's supposed to be monday
  1479. 45:59wednesday friday but some people may
  1480. 46:01prefer to watch two or three
  1481. 46:03um as long as they're not falling behind
  1482. 46:05and they're ready
  1483. 46:06for the labs and and homeworks and so on
  1484. 46:09so we're trying to accommodate that we
  1485. 46:11made a due date on thursday for two
  1486. 46:14reasons first
  1487. 46:15honestly if you look at risk five
  1488. 46:16lectures they are not three times 50
  1489. 46:19minutes they're less
  1490. 46:20and you should be able to there's
  1491. 46:22slightly more than two
  1492. 46:24um you know 50 minute slots that are in
  1493. 46:27there
  1494. 46:28even though i've thrown extra stuff in
  1495. 46:30there i still wrap it up in less than
  1496. 46:32three times 150 minutes i'm done in 120
  1497. 46:35minutes about two hours total
  1498. 46:40but we would like you to be ready for
  1499. 46:43the for the labs that are on wednesday
  1500. 46:47thursday and friday
  1501. 46:48and that's the big goal that's what we
  1502. 46:50are trying to set so we can try to
  1503. 46:51adjust uh
  1504. 46:52we'll try to see what we can do uh
  1505. 46:54without should we you know capture
  1506. 46:57um you know there is a strong preference
  1507. 46:59now i think to go
  1508. 47:00for um you know three times a week two
  1509. 47:03days for
  1510. 47:04due dates for clickers but the option
  1511. 47:07for that perhaps maybe to go friday
  1512. 47:09monday wednesday and then make sure that
  1513. 47:12every
  1514. 47:12everybody is done by wednesday and ready
  1515. 47:14for the labs that week
  1516. 47:17and we can try to adjust to that
  1517. 47:19actually there's a quick question can
  1518. 47:21you
  1519. 47:21can it's a proposal could you possibly
  1520. 47:23do the zoom recording for the time lapse
  1521. 47:25on the device you're taking the test on
  1522. 47:26the answers no
  1523. 47:27because we kind of have to make sure
  1524. 47:28your hands and your phone and everything
  1525. 47:30is clear so it's like
  1526. 47:31the model is the time lapse covers your
  1527. 47:34space your workspace
  1528. 47:35your desktop your phone your your what
  1529. 47:37computer you're using
  1530. 47:39if you only record the screen then you
  1531. 47:40could be on your phone texting your
  1532. 47:42friends and that's not cool
  1533. 47:43we basically try to reduce all the kind
  1534. 47:44of outside ways we're trying to lock the
  1535. 47:46house
  1536. 47:46and prevent all the outside obvious ways
  1537. 47:48for this and that's that's the reason we
  1538. 47:50have the phone over the shoulder
  1539. 47:51situation so you can't do that one um
  1540. 47:54dan what about if they have multiple
  1541. 47:55monitors
  1542. 47:57um i'm actually okay as long as this
  1543. 47:59camera can see the multiple monitors i
  1544. 48:00mean if you have to if you
  1545. 48:02if you want to be able to have by the
  1546. 48:04way we're going to ask you to do some c
  1547. 48:05programming in the exam
  1548. 48:06the practice exam this is very important
  1549. 48:08before this is really crucial
  1550. 48:09the practice exam is just to practice
  1551. 48:12with prairie learn the process exam is
  1552. 48:15not to simulate
  1553. 48:16exactly the difficulty or exactly the
  1554. 48:18topics that are on the exam
  1555. 48:20so there is a floating point question on
  1556. 48:22the practice exam
  1557. 48:23do not panic there's not floating point
  1558. 48:25on the quest
  1559. 48:27okay so that's just to give you we just
  1560. 48:28to throw you out kind of the kind of
  1561. 48:30questions
  1562. 48:30that how do you answer one is a multiple
  1563. 48:32choice one's a fill in the blank
  1564. 48:34we threw a floating point in there
  1565. 48:35because we had it in our back pocket but
  1566. 48:37it's not on the quest so
  1567. 48:38do note that the practice exam is and
  1568. 48:40we're going to send it out there very
  1569. 48:41soon
  1570. 48:42is going to is going to be not exactly
  1571. 48:44the model
  1572. 48:45or the difficulty with the question be
  1573. 48:46don't come to me say hey the practice
  1574. 48:48exam
  1575. 48:48was too easy compared to yes it's much
  1576. 48:51easier we're just throwing some basic
  1577. 48:52baby questions out there
  1578. 48:53that are not not just trivial what color
  1579. 48:55is the sky but actually it's maybe some
  1580. 48:57learning that happens in there with a
  1581. 48:58thing
  1582. 48:59but we threw floating point in there
  1583. 49:00because we had in our back pocket but
  1584. 49:02floating point is not on the exam so
  1585. 49:03it's not a model of the difficulty
  1586. 49:05but it is a model of kind of how you
  1587. 49:06interact with the system and you should
  1588. 49:08please do that before sunday
  1589. 49:09so you can practice it yes uh to to
  1590. 49:13to finish on a light note we are not
  1591. 49:16asking to calculate avogadro's number
  1592. 49:18from the color of the sky
  1593. 49:21you know how to do that that's right
  1594. 49:26six point something 6.023 to the
  1595. 49:29power of ten to the power of twenty
  1596. 49:31three twenty three right
  1597. 49:32from the color of the sky today because
  1598. 49:35there are too many colors
  1599. 49:36in the sky but you know on a clear day
  1600. 49:39you totally can
  1601. 49:40right it actually got brighter like i
  1602. 49:42can't believe that it's it's five
  1603. 49:43o'clock and it's
  1604. 49:44brighter you know why it's brighter by
  1605. 49:45the way you know why
  1606. 49:47because here's the cloud layer here's
  1607. 49:48the sun up here and now the sun is from
  1608. 49:50and now it's hitting from a skew angle
  1609. 49:52so it's cutting under it so it's
  1610. 49:53actually getting major
  1611. 49:54brighter at five o'clock than it is at
  1612. 49:56noon unbelievable um
  1613. 49:58that's it we'll try to answer more
  1614. 50:00questions on piazza we're going to
  1615. 50:01launch the practice quest
  1616. 50:02we'll have the logistic exam any last
  1617. 50:05thoughts stephen there was one more
  1618. 50:06important one was is the quest open book
  1619. 50:08can we have lecture slides textbooks
  1620. 50:10uh open on our computer you can have the
  1621. 50:12answer is
  1622. 50:13yes you just cannot do google searches
  1623. 50:15you can't ask your friends and you can't
  1624. 50:17do
  1625. 50:17stack overflow but anything we've given
  1626. 50:19you it's all open book anything we've
  1627. 50:20given you you can use you can use a book
  1628. 50:22pull the book out anything we've given
  1629. 50:23you or anything from a resource book but
  1630. 50:25you just can't
  1631. 50:26search on the web that's the idea it's a
  1632. 50:28big difference from past
  1633. 50:30uh yeah very different by the way and
  1634. 50:32this and this would be true but this
  1635. 50:33would be true for
  1636. 50:34either either model whether you decide
  1637. 50:36to go asynchronous or zoom proctored
  1638. 50:38that same policy of being open book to
  1639. 50:40be for everybody that makes sense
  1640. 50:43all right good stuff
  1641. 50:46well we're late for our five o'clock
  1642. 50:48meeting bar thanks everybody
  1643. 50:50we hope you hope we have this we hope
  1644. 50:53this helped good to see everybody
  1645. 50:55we'll see you next time there is a
  1646. 50:57question before we close it there is a
  1647. 50:58question about what happened to the
  1648. 50:59group
  1649. 51:00tutoring uh my group tutoring is on
  1650. 51:02wednesday my individuals on friday
  1651. 51:04borah's individual wednesday group is on
  1652. 51:06friday so on friday
  1653. 51:08bori will be having his group tutoring i
  1654. 51:09believe or you can give the thumbs up to
  1655. 51:11that or not
  1656. 51:12let's try to organize that so we can
  1657. 51:14probably it's it's very close to the
  1658. 51:16to the quest so we will just talk about
  1659. 51:19that now and we'll let you guys know how
  1660. 51:20okay okay perfect perfect a serious
  1661. 51:23review session so topical review
  1662. 51:25sessions such that
  1663. 51:26yeah that makes a sense compressed
  1664. 51:28version of what we have done so far
  1665. 51:29perfect perfect good stuff thanks
  1666. 51:31everybody good to see you all take care
  1667. 51:33and we recorded it successfully we did
  1668. 51:34this all right
  1669. 51:36we remembered thanks steven

About this transcript

This page contains the full transcript of [CS61C FA20] Weekly Lecture 03.LIVE - Floating Point & RISC-V by CS 61C Departmental, generated from the public captions YouTube serves with the video. The transcript has 10,271 words across 1,669 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.