# Cuda Emulation Mode

**URL:** <https://forums.developer.nvidia.com/t/cuda-emulation-mode/6917>\
**Category:** CUDA Programming and Performance\
**Created:** [December 19, 2008, 7:32pm UTC](https://forums.developer.nvidia.com/t/cuda-emulation-mode/6917 "2008-12-19T19:32:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![plasticsuperhero](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/plasticsuperhero/32/12071_2.png) [@plasticsuperhero](https://forums.developer.nvidia.com/u/plasticsuperhero)\
**Post date:** [December 19, 2008, 7:32pm UTC](https://forums.developer.nvidia.com/t/cuda-emulation-mode/6917/1 "2008-12-19T19:32:44Z")

</div>

Hi. I’m trying to set up the nvidia SDK on a linux cluster where none of the computers have CUDA-capable graphics cards. This is to have an environment to debug codes that will run on other machines we have which do have the cards. I downloaded the SDK and Toolkit, and installed them to ~/sdk, and ~/cuda. After setting my $LD\_LIBRARY\_PATH and $PATH appropriately, I ran nvcc on a test code, and it worked fine. When I try to run the executable, however, I get this error message:

./test: error while loading shared libraries: libcudart.so.2: cannot open shared object file: No such file or directory

The path to this libary file is in my LD\_LIBRARY\_PATH, so I’m confused as to why it isn’t working. In case it is relevant, the machines on the cluster run OpenSUSE 10.2. I do not have superuser permissions on these machines, but would still like to use them for testing and debugging purposes. If anyone has relevant information, please let me know. Thanks.

---

<div class="post-metadata">

**Author:** ![DexterMorgan103](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@DexterMorgan103](https://forums.developer.nvidia.com/u/DexterMorgan103)\
**Post date:** [December 20, 2008, 2:19am UTC](https://forums.developer.nvidia.com/t/cuda-emulation-mode/6917/2 "2008-12-20T02:19:54Z")

</div>

> [@](#):
>
> Hi. I’m trying to set up the nvidia SDK on a linux cluster where none of the computers have CUDA-capable graphics cards. This is to have an environment to debug codes that will run on other machines we have which do have the cards. I downloaded the SDK and Toolkit, and installed them to ~/sdk, and ~/cuda. After setting my $LD\_LIBRARY\_PATH and $PATH appropriately, I ran nvcc on a test code, and it worked fine. When I try to run the executable, however, I get this error message:
> 
> ./test: error while loading shared libraries: libcudart.so.2: cannot open shared object file: No such file or directory
> 
> The path to this libary file is in my LD\_LIBRARY\_PATH, so I’m confused as to why it isn’t working. In case it is relevant, the machines on the cluster run OpenSUSE 10.2. I do not have superuser permissions on these machines, but would still like to use them for testing and debugging purposes. If anyone has relevant information, please let me know. Thanks.

I get this error to, you have to setup the paths again. If there is a permenant way to link them I haven’t found it yet. But the great thing is it should still be cached somewhere. So just hit the up arrow in terminal and you can link it again.

---

<div class="post-metadata">

**Author:** ![fundoonick](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@fundoonick](https://forums.developer.nvidia.com/u/fundoonick)\
**Post date:** [February 15, 2011, 7:21pm UTC](https://forums.developer.nvidia.com/t/cuda-emulation-mode/6917/3 "2011-02-15T19:21:37Z")

</div>

I was getting the exact same error on my Linux 10.04 machine.  
I had set the LD\_LIBRARY\_PATH correctly but it wasnt working.  
So I added the required path to /etc/ld.so.conf and ran ldconfig as root.  
It worked!!

Hope this helps :)
