I recently finished installing the CUDA toolkit on my TK1. I used the ARM-64 .run file. (cuda_6.5.14_linux_aarch64_native.run) Attempting to run nvcc presents the error shown in the title, though the install seems to have been successful.
File info shows everything should be working, and is more or less consistent with my verson of Linux.
ubuntu@tegra-ubuntu:~$ file /usr/local/cuda-6.5/bin/nvcc
/usr/local/cuda-6.5/bin/nvcc: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.7.0, stripped
ubuntu@tegra-ubuntu:~$ uname -r
I rebooted the device after install, but forgot to copy the install logs from /tmp, so they’re gone. My guess is as good as anyone else’s why it’s not working.
EDIT: D’oh! I don’t know why I thought the TK1 was 64-bit. I must be losing my mind. I’m going to uninstall everything I just put on and see if the 32-bit version works.