nvidia suggested we use nvprune 6, but that doesn’t work if the object is not relocatable.
nvprune --arch sm_35 torch/lib/libtorch_cuda.so -o ~/Desktop/prune_test.so 
nvprune fatal   : Input file 'torch/lib/libtorch_cuda.so' not relocatable