From 331257be1bb282ac5330bc9e5c2bf713b25c6ae4 Mon Sep 17 00:00:00 2001 From: philsippl Date: Thu, 25 Jul 2024 15:19:20 +0000 Subject: [PATCH] log mem addresses --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/dot/share_db.rs | 2 ++ src/server/actor.rs | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5ba8ef444..e5ff1c3d5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -982,7 +982,7 @@ dependencies = [ [[package]] name = "cudarc" version = "0.10.0" -source = "git+https://github.com/rw0x0/cudarc.git?rev=origin/transmute#17ee7db80e4167db3b3aca93f8e06c97ebc50a02" +source = "git+https://github.com/worldcoin/cudarc.git?rev=e30e6ae#e30e6aea6ff7f96a7ad80ba5f070f33e3e9db57a" dependencies = [ "libloading", ] diff --git a/Cargo.toml b/Cargo.toml index ecda08e60..18cd10078 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ base64 = "0.22.1" bytemuck = "1.16" config = "0.14.0" clap = { version = "4.5.9", features = ["derive", "env"] } -cudarc = { git = "https://github.com/rw0x0/cudarc.git", rev = "origin/transmute", features = [ +cudarc = { git = "https://github.com/worldcoin/cudarc.git", rev = "e30e6ae", features = [ "cuda-12020", ] } eyre = "0.6.12" diff --git a/src/dot/share_db.rs b/src/dot/share_db.rs index f5813c272..84d20d7b0 100644 --- a/src/dot/share_db.rs +++ b/src/dot/share_db.rs @@ -464,6 +464,7 @@ impl ShareDB { .iter() .enumerate() .map(|(idx, chunk)| { + println!("db 1 alloc {:?}", idx); let mut slice = unsafe { self.device_manager .device(idx) @@ -480,6 +481,7 @@ impl ShareDB { .iter() .enumerate() .map(|(idx, chunk)| { + println!("db 0 alloc {:?}", idx); let mut slice = unsafe { self.device_manager .device(idx) diff --git a/src/server/actor.rs b/src/server/actor.rs index c8e36b255..684c3e3f2 100644 --- a/src/server/actor.rs +++ b/src/server/actor.rs @@ -684,6 +684,8 @@ impl ServerActor { &compact_device_sums.mask_query_insert, ), ] { + + println!("DB memory pointer {:?}", *db.code_gr.limb_0[i].device_ptr()); unsafe { helpers::dtod_at_offset( *db.code_gr.limb_0[i].device_ptr(),