mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-20 00:14:45 +00:00
Check for presence of ".version" instead of ".address_size" (which is optional)
This commit is contained in:
parent
d7d38256e0
commit
e89b0c5d9c
1 changed files with 2 additions and 2 deletions
|
@ -156,8 +156,8 @@ unsafe fn record_module_image_raw(module: CUmodule, raw_image: *const ::std::os:
|
|||
}
|
||||
|
||||
unsafe fn record_module_image(module: CUmodule, image: &str) {
|
||||
if !image.contains(&".address_size") {
|
||||
os_log!("Malformed module image: {:?}", module)
|
||||
if !image.contains(&".version") {
|
||||
os_log!("Malformed module image: {:?}", module);
|
||||
} else {
|
||||
let mut errors = Vec::new();
|
||||
let ast = ptx::ModuleParser::new().parse(&mut errors, image);
|
||||
|
|
Loading…
Add table
Reference in a new issue