Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there any command or any file in the CUDA directory which can answer this question?

share|improve this question

1 Answer 1

file /path/to/cuda/bin/executable

I.e.,

file /home/user/cuda/bin/cudademo

share|improve this answer
    
Thanks for reply.cuda is in usr/local/cuda, so you mean cudademo is in usr/local/cuda/bin ? Because, I don't see cudademo there. –  user55717 May 11 '12 at 4:53
    
I dont know where you have installed it, and cant remember what the executables are called. I did a quick search on the location of the bins, and thats what it gave me. I wish I could put a paragraph mark </> anyway, /usr/local/cuda. Look for an executable it may be in the bin dir, it may be in the cuda directory, and then just run file on it. Will tell you if its 32bit or 64bit. –  Matt Barnes May 11 '12 at 5:21
    
I didn't find any executable in /usr/local/cuda, but I ran this: ......@ubuntu:/usr/local/cuda/bin$ file nvcc nvcc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), stripped. Does this mean its 64 bit ? Any other way to confirm ? –  user55717 May 11 '12 at 13:23
    
That's as far as I know. It is a 64bin. Looks to be the nvidia control panel. and /usually/ all the binaries are one arch. –  Matt Barnes May 11 '12 at 15:26
    
There are lines in some files which have x86_64 written. I guess mine have to be 64 bit. I had compatibility issues and have doubt, so I was looking for a solid proof. Thanks for help though ! –  user55717 May 22 '12 at 14:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.