mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-03 22:59:58 +00:00
Index from 0
This commit is contained in:
parent
fedf88180a
commit
a005c92c61
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ unsafe fn record_module_image(module: CUmodule, image: &str) {
|
||||||
|
|
||||||
unsafe fn try_dump_module_image(image: &str) -> Result<(), Box<dyn Error>> {
|
unsafe fn try_dump_module_image(image: &str) -> Result<(), Box<dyn Error>> {
|
||||||
let mut dump_path = get_dump_dir()?;
|
let mut dump_path = get_dump_dir()?;
|
||||||
dump_path.push(format!("module_{:04}.ptx", MODULES.as_ref().unwrap().len()));
|
dump_path.push(format!("module_{:04}.ptx", MODULES.as_ref().unwrap().len() - 1));
|
||||||
let mut file = File::create(dump_path)?;
|
let mut file = File::create(dump_path)?;
|
||||||
file.write_all(image.as_bytes())?;
|
file.write_all(image.as_bytes())?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue