[llvm] [llvm][tools] Improve llvm-gpu-loader checks (PR #184791)
Alex Duran via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 5 15:00:58 PST 2026
================
@@ -242,15 +243,22 @@ int main(int argc, const char **argv, const char **envp) {
}
InitArgs.NumPlatforms = 1;
InitArgs.Platforms = &Backend;
+ } else {
----------------
adurang wrote:
I'm not sure I see the benefit of doing that. The only other format we support right now is the bitcode and we could add a check here. I think it's better to error here with a more meaningful message than later with a "no device found" error which was due to an unsupported format.
https://github.com/llvm/llvm-project/pull/184791
More information about the llvm-commits
mailing list