Skip to content

Commit

Permalink
log mem addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
philsippl committed Jul 25, 2024
1 parent 65843c0 commit 331257b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions src/dot/share_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/server/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 331257b

Please sign in to comment.