aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_dump/src/dark_api.rs
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-12-08 00:29:00 +0100
committerAndrzej Janik <[email protected]>2021-12-08 00:29:00 +0100
commit50e793e869a35875e7ea25d8ad1e9123e89f745f (patch)
tree79c453e724785205c70c1c1b2497e83860a22c00 /zluda_dump/src/dark_api.rs
parentdd915688bdee6cd3f9d1496a0639e280f488a570 (diff)
downloadZLUDA-50e793e869a35875e7ea25d8ad1e9123e89f745f.tar.gz
ZLUDA-50e793e869a35875e7ea25d8ad1e9123e89f745f.zip
Improve logging of dumps
Diffstat (limited to 'zluda_dump/src/dark_api.rs')
-rw-r--r--zluda_dump/src/dark_api.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/zluda_dump/src/dark_api.rs b/zluda_dump/src/dark_api.rs
index b9fd9c2..3ae50ed 100644
--- a/zluda_dump/src/dark_api.rs
+++ b/zluda_dump/src/dark_api.rs
@@ -491,7 +491,8 @@ unsafe fn record_submodules(
if fatbin_file_kind == FATBIN_FILE_HEADER_KIND_PTX {
let decompressed = decompress_kernel_module(fatbin_file);
match decompressed {
- Some(decompressed) => {
+ Some(mut decompressed) => {
+ decompressed.pop(); // remove trailing zero
state.record_new_submodule(module, version, &*decompressed, fn_logger, "ptx")
}
None => fn_logger.log(log::LogEntry::Lz4DecompressionFailure),