Rust-GPU / Rust-CUDA

Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust.
Apache License 2.0
3.16k stars 120 forks source link

SIGSEGV at librustc_driver-f92801b4d17b5b5b.so(+0xb118b0) #37

Open andll opened 2 years ago

andll commented 2 years ago

I was trying to port ed25519 verification to gpu, and after #35 was fixed and some changes to original ed25519 crate, I was able to get past compilation rust errors, but then codegen failed with SIGSEGV (see below).

If someone has time to look at issues like that, I have an example here: https://github.com/andll/Rust-CUDA/commit/a92ebc549fd84f6c9821dd52c49c0ba04858040d

  $ cargo run -p add

  /home/ubuntu/.rustup/toolchains/nightly-2021-12-04-aarch64-unknown-linux-gnu/bin/../lib/librustc_driver-f92801b4d17b5b5b.so(+0xb118b0)[0xffff94d518b0]
  linux-vdso.so.1(__kernel_rt_sigreturn+0x0)[0xffff9bb5f5c0]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x7611a8)[0xffff90a531a8]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x76146c)[0xffff90a5346c]
  /usr/local/cuda-11.5/nvvm/lib64/libnvvm.so.4(+0x761540)[0xffff90a53540]
  error: could not compile `add_gpu`

  Caused by:
    process didn't exit successfully: `rustc --crate-name add_gpu --edition=2021 examples/cuda/gpu/add_gpu/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type cdylib --crate-type rlib --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C metadata=9757d2d6d1bce9e0 --out-dir /home/ubuntu/Rust-CUDA/target/cuda-builder/nvptx64-nvidia-cuda/release/deps --target nvptx64-nvidia-cuda -L dependency=/home/ubuntu/Rust-CUDA/target/cuda-builder/nvptx64-nvidia-cuda/release/deps -L dependency=/home/ubuntu/Rust-CUDA/target/cuda-builder/release/deps --extern 'noprelude:alloc=/home/ubuntu/Rust-CUDA/target/cuda-builder/nvptx64-nvidia-cuda/release/deps/liballoc-26092049209c9db4.rlib' --extern 'noprelude:compiler_builtins=/home/ubuntu/Rust-CUDA/target/cuda-builder/nvptx64-nvidia-cuda/release/deps/libcompiler_builtins-09155fb5e15047c5.rlib' --extern 'noprelude:core=/home/ubuntu/Rust-CUDA/target/cuda-builder/nvptx64-nvidia-cuda/release/deps/libcore-df7e97b0028cb699.rlib' --extern cuda_std=/home/ubuntu/Rust-CUDA/target/cuda-builder/nvptx64-nvidia-cuda/release/deps/libcuda_std-6692aef9e92e8928.rlib --extern ed25519_dalek=/home/ubuntu/Rust-CUDA/target/cuda-builder/nvptx64-nvidia-cuda/release/deps/libed25519_dalek-56a7ccfaaf280698.rlib -Z unstable-options -Zcodegen-backend=/home/ubuntu/Rust-CUDA/target/debug/deps/librustc_codegen_nvvm.so '-Cllvm-args=-arch=compute_61 --override-libm'` (signal: 11, SIGSEGV: invalid memory reference)

$ cargo -vV
cargo 1.58.0-nightly (294967c53 2021-11-29)
release: 1.58.0
commit-hash: 294967c53f0c70d598fc54ca189313c86c576ea7
commit-date: 2021-11-29
host: aarch64-unknown-linux-gnu
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.80.0-DEV (sys:0.4.51+curl-7.80.0 vendored ssl:OpenSSL/1.1.1l)
os: Ubuntu 18.04 (bionic) [64-bit]

$ llvm-config --version
7.0.1