Hello to everyone.
I'm trying to install the AUTOMATIC1111 webui for stable diffusion within my /compat/ubuntu distro using the FreeBSD linuxulator. You can find the proper repository for this tool here :
github.com
at some point of the installation,I should do :
the error says that Torch is not able to detect my GPU. I don't know the reason,I'm not a developer,but I can make some assumptions. Maybe Torch does not detect CUDA. But I know,from the past,that shkhln has been able to allow Blender to detect CUDA natively on FreeBSD. The whole procedure about how to do that is explained here :
forums.freebsd.org
In summary,if I want that Blender detects CUDA,I should launch it with this command :
on the same way,I've thought that the same method could be applied to python3 with the script launch.py and I tried to write something like this :
unfortunately I've got the same error. At this point I imagine the file launch.py should be modified in some way to use the GPU.
I'm trying to install the AUTOMATIC1111 webui for stable diffusion within my /compat/ubuntu distro using the FreeBSD linuxulator. You can find the proper repository for this tool here :
GitHub - AUTOMATIC1111/stable-diffusion-webui: Stable Diffusion web UI
Stable Diffusion web UI. Contribute to AUTOMATIC1111/stable-diffusion-webui development by creating an account on GitHub.
at some point of the installation,I should do :
Code:
$ python3 ./launch.py
Python 3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0]
Commit hash: 360feed9b55fb03060c236773867b08b4265645d
Installing torch and torchvision
Traceback (most recent call last):
File "./launch.py", line 294, in <module>
prepare_environment()
File "./launch.py", line 209, in prepare_environment
run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'")
File "./launch.py", line 73, in run_python
return run(f'"{python}" -c "{code}"', desc, errdesc)
File "./launch.py", line 49, in run
raise RuntimeError(message)
RuntimeError: Error running command.
Command: "/usr/bin/python3" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'"
Error code: 1
stdout: <empty>
stderr: Traceback (most recent call last):
File "<string>", line 1, in <module>
AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
the error says that Torch is not able to detect my GPU. I don't know the reason,I'm not a developer,but I can make some assumptions. Maybe Torch does not detect CUDA. But I know,from the past,that shkhln has been able to allow Blender to detect CUDA natively on FreeBSD. The whole procedure about how to do that is explained here :

Can CUDA be installed on FreeBSD now ?
Hello to everyone. I've just read this thread : https://forums.developer.nvidia.com/t/cuda-and-nv-un-register-os-un-lock-user-pages/174678/13 where has been asked to modify the code of the freebsd driver to support CUDA. I read that it has been done. So,now can we install CUDA on FreeBSD by...
In summary,if I want that Blender detects CUDA,I should launch it with this command :
Code:
./nv-sglrun blender
on the same way,I've thought that the same method could be applied to python3 with the script launch.py and I tried to write something like this :
Code:
mario@marietto:/home/marietto/Desktop/New/CG/CUDA/libc6-shim/bin # ./nv-sglrun /compat/ubuntu/usr/bin/python3 /compat/ubuntu/home/marietto/stable-diffusion-webui/./launch.py
unfortunately I've got the same error. At this point I imagine the file launch.py should be modified in some way to use the GPU.