ashwin / coursera-heterogeneous

Resources to work offline on the assignments of Heterogenous Parallel Programming course from Coursera.
71 stars 60 forks source link

Add diagnostics #22

Closed mehaase closed 11 years ago

mehaase commented 11 years ago

Adding a diagnostics program. I was getting memory errors, and this program helped me figure out what was going on.

iemejia commented 11 years ago

isn't this like mp0 ? wouldn't it be better to improve mp0 then with the missing parts you wanted (extra deviceInfo) ? In particular because mp0 was not noted I think it would be better to improve it than to create a new file to make almost the same thing. I don't know what the rest of you think ?

ashwin commented 11 years ago

@mehaase I agree with @iemejia. Not only is this like MP0, this simple information is rarely useful to solve the really tricky bugs in CUDA. Most errors require the programmer to inject printf statements or read out data to the host to diagnose it. Pretty dirty and hard work :smile:

Anyway, unless I see at least one other user requesting such a diagnostic, I will be closing this issue. I hope you can understand and I look forward to more contributions from you :+1:

mehaase commented 11 years ago

OK. I didn't realize mp0 already had diagnostics.