Spack: nvcc: cannot execute binary file: Exec format error

Created on 20 Jul 2018  路  3Comments  路  Source: spack/spack

I believe my error comes from not organize paths correctly. I need help on fixing so that nvcc works correctly. SEE BELOW FOR DETAILS, THANK YOU.

When I run nvcc --version, this output:

bash: /usr/local/cuda-9.0/bin/nvcc: cannot execute binary file: Exec format error

MY BASHRC LOOK LIKE THIS:

export PATH=/usr/local/cuda-9.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/cuda/bin${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64\${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export CUDA_HOME=/usr/local/cuda-9.0
source /opt/ros/kinetic/setup.bash
export ROS_MASTER_URI=http://localhost:11311
export ROS_IP=192.168.1.47 
export LD_LIBRARY_PATH=/usr/local/lib:/opt/ros/kinetic/lib:/opt/ros/kinetic/lib/aarch64-linux-gnu:/usr/local/cuda-9.0/lib64:
export LD_LIBRARY_PATH=/usr/local/lib:/opt/ros/kinetic/lib:/opt/ros/kinetic/lib/aarch64-linux-gnu:/usr/local/lib:/usr/local/cuda-9.0/lib64
cuda

All 3 comments

What does this have to do with spack ?

@michaelkuhn yeah I repost there and found an answer, thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gweodoo picture gweodoo  路  3Comments

eschnett picture eschnett  路  3Comments

citibeth picture citibeth  路  3Comments

ax3l picture ax3l  路  3Comments

23skdu picture 23skdu  路  3Comments