18

Tensorflow 2.9.1 on Ubuntu 20.04 with CUDA 11.2 keeps writing to the stdout the following error whenever I try to build a few layers:

2022-06-05 08:32:29.319040: I tensorflow/stream_executor/cuda/cuda_dnn.cc:384] Loaded cuDNN version 8100
2022-06-05 08:32:29.527708: I tensorflow/core/platform/default/subprocess.cc:304] Start cannot spawn child process: No such file or directory

No traceback or anything. The model seems to build normally, though, but I wonder if there are any performance implications.

What can be the reason of this error? Is there a way to increase the verbosity of the output without rebuilding the Tensorflow binary?

6
  • 2
    Hi @Mike, Tensorflow 2.9 is compatible with CUDA 11.2 according to the tested build configurations. Please downgrade CUDA 11.7 to 11.2 and try again.
    – user11530462
    Jun 13, 2022 at 4:09
  • 2
    @Tfer3 Problem repeats on CUDA 11.2
    – Mike Land
    Jun 19, 2022 at 6:15
  • are you by any chance running tensorflow inside a nspawn container?
    – ghylander
    Sep 29, 2022 at 9:23
  • @ghylander, nope
    – Mike Land
    Sep 29, 2022 at 13:08
  • 3
    Any news on this one? I have similar problem on WSL2. Training keeps running, but I suspect because of that the paralelism does not work effectively.
    – Pawel
    Oct 19, 2022 at 10:19

1 Answer 1

9
+50

Execute

$ export PATH="${PATH}:/usr/local/nvidia/bin:/usr/local/cuda/bin"

before starting your cPython notebook kernel / interpreter.

2
  • 1
    This worked, thanks! What is the reasoning behind?
    – lollalolla
    Feb 9 at 9:09
  • You told me that during CUDA compilation the compiler reported cannot spawn child process: No such file or directory. It wants to spawn compiler tools. It appeared you had not correctly installed those tools, had not updated .bash_profile to include them in $PATH, so I proposed a workaround for the partially completed install.
    – J_H
    Feb 9 at 17:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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