This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Single-file reproducer for the ChipStar hipRTC cache bug. | |
| // | |
| // Bug summary: when CHIP_MODULE_CACHE_DIR is enabled and a previously-cached | |
| // SPIR-V is loaded, hiprtcCompileProgram() returns HIPRTC_SUCCESS without | |
| // running the LLVM HipEmitLoweredNames pass, so the program's | |
| // name-expression -> lowered-name map stays empty. hiprtcGetLoweredName() | |
| // then returns a pointer to an empty string, and the caller's downstream | |
| // hipModuleGetFunction("") fails with hipErrorLaunchFailure. | |
| // | |
| // Run twice with a fresh CHIP_MODULE_CACHE_DIR: |