Installing pytorch - /usr/local/cuda/lib64/libcudnn.so: error adding symbols: File in wrong format collect2: error: ld returned 1 exit status

Hi @pylonicGateway, which version of PyTorch are you building? It looks to be this error:

https://github.com/pytorch/pytorch/pull/51834

Note that a workaround is included for this in my patch set for PyTorch 1.8:
https://gist.github.com/dusty-nv/ce51796085178e1f38e3c6a1663a93a1#file-pytorch-1-8-jetpack-4-4-1-patch