3 ms·
I just solved a bug in someone's CUDA agent based modelling library which caused a runtime error when compiling for a more recent CUDA compute architecture. Th
by Robadob 14y ago
I just solved a bug in someone's CUDA agent based modelling library which caused a runtime error when compiling for a more recent CUDA compute architecture.
The actual bug was due to the more recent architecture enforcing pointer alignment, while the older implementations just ignored it.
My fixing of the bug, created other bugs (largely due to my lack of CUDA experience)and I eventually solved it by coincidence when applying my fixes from a reset across the whole code, rather than at a local level.
I may have made no progress towards the task in these 2 full days I spent working solving this issue, however I have greatly improved my CUDA programming knowledge and debugging technique, which I would have otherwise never done, so when I inevitably reach another bug It should (hopefully) be much quicker for me to solve.
- seanmcdirmid 14y agoAh, pointer alignment bugs...I remember this being a big thing when porting C code from the X86 to the Alpha.