diff options
Diffstat (limited to 'zluda_dump/src/format_generated.rs')
-rw-r--r-- | zluda_dump/src/format_generated.rs | 20 |
1 files changed, 15 insertions, 5 deletions
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 { |