question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not load dynamic library 'libcuda.so.1'

See original GitHub issue

Followed the instructions here

~ » cat /proc/version                                                                                                                                                             1 ↵ jlam@MAKERPC
Linux version 4.4.0-20150-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #1000-Microsoft Thu Jun 12 17:34:00 PST 2020

I’m running build 20150, but am getting this error:

Python 3.6.10 |Anaconda, Inc.| (default, May  8 2020, 02:54:21)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow.compat.v1 as tf
>>>
>>> tf.enable_eager_execution(tf.ConfigProto(log_device_placement=True))
>>>
>>> print(tf.add([1.0, 2.0], [3.0, 4.0]))
2020-06-17 16:36:05.469811: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2020-06-17 16:36:05.469926: E tensorflow/stream_executor/cuda/cuda_driver.cc:313] failed call to cuInit: UNKNOWN ERROR (303)
2020-06-17 16:36:05.470029: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (MAKERPC): /proc/driver/nvidia/version does not exist
2020-06-17 16:36:05.470532: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2020-06-17 16:36:05.483133: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3400000000 Hz
2020-06-17 16:36:05.487879: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7fffe52ac420 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-06-17 16:36:05.488038: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
tf.Tensor([4. 6.], shape=(2,), dtype=float32)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
PatriceVignolacommented, Sep 8, 2020

Hi @jflam , just a heads up that Nvidia released their preview driver for DirectML support on WSL! You can download it from here.

1reaction
jstoeckercommented, Jun 18, 2020

@espresso3389

Can you try the following in WSL bash and confirm you see the libs mounted in the Linux file system?

~$ ls /usr/lib/wsl/lib
libd3d12.so  libdirectml.so  libdxcore.so

If you don’t see those libs, can you try closing the terminal with WSL session, then running wsl --shutdown, then restarting it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tensorflow cannot open libcuda.so.1 - Stack Overflow
libcuda.so.1 is a symlink to a file that is specific to the version of your NVIDIA drivers. It may be pointing to the...
Read more >
Couldn't open CUDA library libcuda.so.1. · Issue #4078 - GitHub
In the step where I have to run bazel-bin/tensorflow/cc/tutorials_example_trainer --use_gpu. I get the following messages:
Read more >
Problem on connecting tensorflow with cuda
Hii, i want to install tensorflow in a linux machine where cuda is present.
Read more >
Cannot load libcuda.so.1 - Ask Ubuntu
Shotcut fails to export to anything but webm and AVI with error: ... It seems the latest is already installed $ dpkg -S...
Read more >
dlerror: libcuda.so.1: cannot open shared object file: No such ...
Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found