Uploaded by jenkinsmdorian

Jenkins CSI4650 Assignment2

advertisement
Dorian Jenkins
CSI-4650
Mar 19 2023
Assignment 2
Exercise 1:
Exercise 2:
Array a holds 1 from index 0-199. Array b holds 3 from index 0-99 and 4 from 100-199.
Exercise 3:
10 trials: 0.156640 ms // 1000 trials: 0.472992 ms // 100000 trials: 33.457504 ms
Trial rate: 10 > 1000 = rate of 100 // 1000 > 100000 = rate of 100
Duration rate: .15664 > .472992 = rate of ~3.02 // .472992 > 33.457504 = rate of 70.74
So NO, it is not the same rate of change.
Exercise 4:
Better in some instances, but generally worse compared to CUDA as trials get higher.
Exercise 5:
Durations were obviously significantly higher without CUDA, when higher N’s (longer arrays)
are being added. CUDA helped longer array operations significantly.
Download