I am not giving advice but commenting to resurface this post for I am also curious. I have an AMD support GPU and keep getting the following error. I’m working on a Rust backend program using tch-rs  (PyTorch C++ Rust Bindings). 
note: “cc” “-Wl,–as-needed” “-Wl,-z,noexecstack” “-m64” “-Wl,–eh-frame-hdr” “-L” "