Is there any command or any file in the CUDA directory which can answer this question?
Asked
Active
Viewed 1,365 times
1 Answers
1
file /path/to/cuda/bin/executable
I.e.,
file /home/user/cuda/bin/cudademo

belacqua
- 23,120

Matt Barnes
- 830
-
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 04: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 05: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