diff options
author | Andrzej Janik <[email protected]> | 2022-01-07 04:20:33 +0100 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2022-01-07 04:20:33 +0100 |
commit | 869efbe0e2597d130a973d38d0d9bbdb70a67874 (patch) | |
tree | 347bee64790847828ab412c4ccc4bfe66f8520c6 /zluda_dump/src/trace.rs | |
parent | 9390db962bf228902c5c63ed2d2861d820d18210 (diff) | |
download | ZLUDA-869efbe0e2597d130a973d38d0d9bbdb70a67874.tar.gz ZLUDA-869efbe0e2597d130a973d38d0d9bbdb70a67874.zip |
Move zluda_dump to the new CUDA infrastructure
Diffstat (limited to 'zluda_dump/src/trace.rs')
-rw-r--r-- | zluda_dump/src/trace.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/zluda_dump/src/trace.rs b/zluda_dump/src/trace.rs index 2afc1c5..59a0a0f 100644 --- a/zluda_dump/src/trace.rs +++ b/zluda_dump/src/trace.rs @@ -1,7 +1,8 @@ use ptx::{ast::PtxError, Token};
use ptx::{DisplayParseError, ModuleParserExt};
-use crate::{cuda::CUmodule, dark_api, log, Settings};
+use crate::{dark_api, log, Settings};
+use cuda_types::CUmodule;
use std::{
collections::HashMap,
ffi::{c_void, CStr, CString},
@@ -171,7 +172,7 @@ impl StateTracker { submodule_index: Option<usize>,
module_text: &str,
) {
- let (ast, errors) = ptx::ModuleParser::parse_unchecked(module_text);
+ let (_ast, errors) = ptx::ModuleParser::parse_unchecked(module_text);
if !errors.is_empty() {
fn_logger.log(log::LogEntry::ModuleParsingError(
DumpWriter::get_file_name(module_index, version, submodule_index, "log"),
@@ -185,10 +186,6 @@ impl StateTracker { ));
}
}
-
- pub(crate) fn module_exists(&self, hmod: CUmodule) -> bool {
- self.modules.contains_key(&hmod)
- }
}
struct ParsedModule {
|