-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cc1plus not found, luarocks failed to install, and can't find CUDA #372
Comments
You need to install torch7 first. https://github.com/nagadomi/distro |
I already have torch7 installed. I installed it through this method because the method listed on the readme was not working. I guess the difference is that I just did I will try the recommendations in that issue you listed and report back. |
The above error is occurring while trying to install the required cutorch library as a dependency. You can check it with the following command.
If cutorch is installed successfully, it will exit without displaying any message. |
So I made a little progress, but my patience is growing thin. I feel like my WSL 2 instance is nothing like any other instance that anyone else has. Ever since I upgraded to WSL 2, it feels like everything broke and all I can do now is run Minecraft servers or use git. Running
It now shows:
I tried the following guides, to no avail:
The only other issue I noticed is that I was unable to install I think I will give up on this again and pick up on it some other time, as at this point, it's yet another WSL issue that I've encountered since upgrading to WSL 2 that is literally unfixable. |
GPU driver doesn't seem to detect the GPU device. |
wsl2 is virtualized and shared, and I seem to be able to export my completed image for sharing. This is my current environment: #windows subsystem for linux: It works very well recently, but recently Microsoft released the new 21277, I tried to upgrade, even if it works, but the efficiency of waifu2x is lower than the previous branch version, 20279 is the more stable FE dev branch I currently use. I suggest to remount the new image and start over. My image is from https://cloud-images.ubuntu.com/bionic/current/, I use this rootfs to mount it manually. |
In addition, please install cuda correctly according to NVIDIA’s official solution. In wsl2, you don’t need to install additional drivers, just install cuda-toolkit-10-2. Before that, you may need to update the source, please refer to |
I had done the installation as intended with just the toolkit, but it wasn't working. Nothing I tried worked, so I gave up on it. I ended up completely reinstalling Windows since I was having other bugs and issues with it. I also installed Ubuntu 20.04 alongside it so I can dual boot them and not deal with the slew of headaches and nuances that WSL provides. I have finally finished the installation on my Ubuntu install, and when restarting, all I did was install kyle@dark-linux-desktop:~/waifu2x$ th waifu2x.lua
images/miku_small_noise_scale.png: 0.22278690338135 sec Perhaps one day I will try WSL again, but it's given me so many problems that it just makes more sense to dual boot linux. I guess you can close this if you want since I will no longer be providing updates or testing with WSL. Edit: Also, to note for anyone else that may find this: Getting it working on Ubuntu bare metal didn't require the |
That's a good idea. I want to use it as a reference for performance loss. What GPU are you using? I use rtx2070super under wsl2, and the consumption under the default output: 0.41919994354248 sec |
I have an RTX 2070. Specifically the Zotac Mini which has the 400-A1 chip and is limited to 200W, instead of the more powerful 400A-A1. As you can see, it did it in After seeing another image take 0.4-1.2 seconds depending on the settings, it made me worried about total performance and if the native batching method improves performance. I was hoping to try to upscale/refresh anime, but that would put the render time of all the frames at about 4-12 hours per 24 minute episode. That's only upscaling/denoising and doesn't account for additional encoding time. |
Wow, thanks, I did not expect the performance loss so much, I currently train the model under wsl2. |
After encountering some install issues, torch and waifu2x was up and running in Ubuntu 20.04 with the following configuration: Install torch-cuda-10: Switch to version 8 of gcc and g++: Build torch-cuda-10: Activate torch-cuda (and optionally place in ~/.bashrc): Run tests: |
Hello,
I know it's probably a terrible idea, but I am trying to get Waifu2X working on WSL 2 with Ubuntu 20.04. I once tried to install CUDA onto WSL, but it was failing and I gave up quick.
This time, I tried installing CUDA 10 to Windows 10 and am currently in the process of running
./install_lua_modules.sh
. When I run it, it shows the following:So the main two things:
cc1plus
is missinghttps://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec
Running
th waifu2x.lua
causes the following:Here it seems that it can't find CUDA even though I installed 10.0 via this since the original install through
sudo apt install cuda
was downloading 11.2.I figure some of this may be due to it being WSL 2, but I was able to solve the majority of the other issues I had. Just got stuck on this, and running the following to solve
cc1plus
doesn't work.or
I was able to override gcc to version 7.5.0 because of an error about it being 8 or higher (it was 9). Though there's g++ and gcc. I set them both to:
This is running on Ubuntu 20.04 on WSL 2.
Let me know if I need to provide any other information.
The text was updated successfully, but these errors were encountered: