1

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

1 Answer 1

1

file /path/to/cuda/bin/executable

I.e.,

file /home/user/cuda/bin/cudademo

5
  • 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, 2012 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. May 11, 2012 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, 2012 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. May 11, 2012 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, 2012 at 14:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .