mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-19 16:04:44 +00:00
Inform about ELF binaries in dumper
This commit is contained in:
parent
06a5cff2d8
commit
eec55d9d02
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,10 @@ pub unsafe fn cuModuleLoadData(
|
|||
}
|
||||
|
||||
unsafe fn record_module_image_raw(module: CUmodule, raw_image: *const ::std::os::raw::c_void) {
|
||||
if *(raw_image as *const u32) == 0x464c457f {
|
||||
eprintln!("[ZLUDA_DUMP] Unsupported ELF module: {:?}", raw_image);
|
||||
return;
|
||||
}
|
||||
let image = to_str(raw_image);
|
||||
match image {
|
||||
None => eprintln!("[ZLUDA_DUMP] Malformed module image: {:?}", raw_image),
|
||||
|
|
Loading…
Add table
Reference in a new issue