aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_dump/src
diff options
context:
space:
mode:
Diffstat (limited to 'zluda_dump/src')
-rw-r--r--zluda_dump/src/format.rs22
-rw-r--r--zluda_dump/src/format_generated.rs20
2 files changed, 15 insertions, 27 deletions
diff --git a/zluda_dump/src/format.rs b/zluda_dump/src/format.rs
index a6fc885..c1aac61 100644
--- a/zluda_dump/src/format.rs
+++ b/zluda_dump/src/format.rs
@@ -26,28 +26,6 @@ impl CudaDisplay for cuda_types::CUuuid {
}
}
-impl CudaDisplay for cuda_types::CUdevice {
- fn write(
- &self,
- _fn_name: &'static str,
- _index: usize,
- writer: &mut (impl std::io::Write + ?Sized),
- ) -> std::io::Result<()> {
- write!(writer, "{}", self.0)
- }
-}
-
-impl CudaDisplay for cuda_types::CUdeviceptr {
- fn write(
- &self,
- _fn_name: &'static str,
- _index: usize,
- writer: &mut (impl std::io::Write + ?Sized),
- ) -> std::io::Result<()> {
- write!(writer, "{:p}", self.0)
- }
-}
-
impl CudaDisplay for cuda_types::CUdeviceptr_v1 {
fn write(
&self,
diff --git a/zluda_dump/src/format_generated.rs b/zluda_dump/src/format_generated.rs
index 5d28997..742fb57 100644
--- a/zluda_dump/src/format_generated.rs
+++ b/zluda_dump/src/format_generated.rs
@@ -1,6 +1,16 @@
// Generated automatically by zluda_bindgen
// DO NOT EDIT MANUALLY
#![allow(warnings)]
+impl crate::format::CudaDisplay for cuda_types::CUdeviceptr_v2 {
+ fn write(
+ &self,
+ _fn_name: &'static str,
+ _index: usize,
+ writer: &mut (impl std::io::Write + ?Sized),
+ ) -> std::io::Result<()> {
+ write!(writer, "{:p}", self.0)
+ }
+}
impl crate::format::CudaDisplay for cuda_types::CUcontext {
fn write(
&self,
@@ -8,7 +18,7 @@ impl crate::format::CudaDisplay for cuda_types::CUcontext {
_index: usize,
writer: &mut (impl std::io::Write + ?Sized),
) -> std::io::Result<()> {
- write!(writer, "{:p}", *self)
+ write!(writer, "{:p}", self.0)
}
}
impl crate::format::CudaDisplay for cuda_types::CUmodule {
@@ -18,7 +28,7 @@ impl crate::format::CudaDisplay for cuda_types::CUmodule {
_index: usize,
writer: &mut (impl std::io::Write + ?Sized),
) -> std::io::Result<()> {
- write!(writer, "{:p}", *self)
+ write!(writer, "{:p}", self.0)
}
}
impl crate::format::CudaDisplay for cuda_types::CUfunction {
@@ -28,7 +38,7 @@ impl crate::format::CudaDisplay for cuda_types::CUfunction {
_index: usize,
writer: &mut (impl std::io::Write + ?Sized),
) -> std::io::Result<()> {
- write!(writer, "{:p}", *self)
+ write!(writer, "{:p}", self.0)
}
}
impl crate::format::CudaDisplay for cuda_types::CUlibrary {
@@ -38,7 +48,7 @@ impl crate::format::CudaDisplay for cuda_types::CUlibrary {
_index: usize,
writer: &mut (impl std::io::Write + ?Sized),
) -> std::io::Result<()> {
- write!(writer, "{:p}", *self)
+ write!(writer, "{:p}", self.0)
}
}
impl crate::format::CudaDisplay for cuda_types::CUkernel {
@@ -108,7 +118,7 @@ impl crate::format::CudaDisplay for cuda_types::CUstream {
_index: usize,
writer: &mut (impl std::io::Write + ?Sized),
) -> std::io::Result<()> {
- write!(writer, "{:p}", *self)
+ write!(writer, "{:p}", self.0)
}
}
impl crate::format::CudaDisplay for cuda_types::CUgraphicsResource {