Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempted to zero-initialize type CUDA_MEMCPY3D_st, which is invalid #30

Open
stijnh opened this issue Aug 15, 2021 · 0 comments
Open

Comments

@stijnh
Copy link

stijnh commented Aug 15, 2021

Calling CUDA_MEMCPY3D_st::default() results in the following error on rustc 1.53.0 for cuda-driver-sys 0.3.0:

thread 'node047' panicked at 'attempted to zero-initialize type `CUDA_MEMCPY3D_st`, which is invalid', /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/core/src/mem/mod.rs:625:9
stack backtrace:
   0: rust_begin_unwind
             at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/std/src/panicking.rs:493:5
   1: core::panicking::panic_fmt
             at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/core/src/panicking.rs:92:14
   2: core::panicking::panic
             at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/core/src/panicking.rs:50:5
   3: core::mem::zeroed
             at /rustc/07e0e2ec268c140e607e1ac7f49f145612d0f597/library/core/src/mem/mod.rs:625:9
   4: <cuda_driver_sys::CUDA_MEMCPY3D_st as core::default::Default>::default
<...>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant