Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ptx_compilation_test less strict and more robust
Comparing binary artifacts of different linking methods in the PTX compilation pipeline turned out to be too brittle. Differences occur especially with different driver versions which we not always control. The differences seem to be minimal though. Single bytes in the GPU binaries differ which is probably related to different register assignments and other things that don't affect the actual program. So this change replace the check for binary equivalence by a check that only compares the binary sizes. That's not ideal but better than nothing. If it turns out this is still too brittle we might need to remove this requirement as well. Ideally we would disassemble the GPU programs and do some smarter equivalence comparisons, but for now that's out of reach. PiperOrigin-RevId: 674314922
- Loading branch information