Skip to content
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

'g2s_cuda.so' is missing #67

Closed
cgotelli opened this issue Jul 24, 2023 · 4 comments
Closed

'g2s_cuda.so' is missing #67

cgotelli opened this issue Jul 24, 2023 · 4 comments

Comments

@cgotelli
Copy link

Hello,
I have a problem during the installation of G2S on Ubuntu WSL for Windows 10. I am receiving the following message when I install it manually from build/c++-build/install.bat:

make[1]: Entering directory '/mnt/c/Users/EPFL-LHE/Desktop/MPS/G2S-master/build/c++-build'
Creation of /usr/local if needed
cp: cannot stat './g2s_cuda.so': No such file or directory
warning: 'g2s_cuda.so' is missing, this is probably due to the absance of CUDA compiler.
Installation c++ finished!
make[1]: Leaving directory '/mnt/c/Users/EPFL-LHE/Desktop/MPS/G2S-master/build/c++-build'

I have installed CUDA both for Windows 10 and for WSL-Ubuntu, available at this link.
Do you have any idea of what could be causing this missing library? I checked and the GPU is not being used when I run some tests from Matlab 2023.
Thank you very much in advance for your help.
Best,
Clemente Gotelli

@mgravey
Copy link
Member

mgravey commented Jul 24, 2023

So normally it is functional, just because you cannot use CUDA, it will use the CPU instead.

First question you want/need to use CUDA ? Like under 1000x1000pixel simulation/TI, it's usually not interesting. Just that you know before losing time with it.

In WSL, do you have CUDA in your path ? are the commands nvidia-smi and nvcc working ?

Normally, the brew (linuxbrew in this case) install includes this library. But if CUDA is not in the path, it will still not work.

Best,
Mathieu

@cgotelli
Copy link
Author

Thanks for your answer!
I checked the 'nvidia-smi' and 'nvcc --version' commands, and both work.

Mon Jul 24 13:04:47 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.86.01              Driver Version: 536.67       CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce GTX 1080        On  | 00000000:01:00.0  On |                  N/A |
|  0%   54C    P2              42W / 210W |   2327MiB /  8192MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A        23      G   /Xwayland                                 N/A      |
+---------------------------------------------------------------------------------------+
 nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Nov_18_09:45:30_PST_2021
Cuda compilation tools, release 11.5, V11.5.119
Build cuda_11.5.r11.5/compiler.30672275_0

I re-launched the install.bat file from the original zip, and I get the same error. I also tried with the brew installation, but I could not make it work because I got this error:

==> Fetching open-geocomputing/brew/g2s
==> Downloading brew-bottles.open-geocomputing.org//g2s-0.98.018.x86_64_linux.bottle.1.tar.gz
Already downloaded: /home/cmgotelli/.cache/Homebrew/downloads/a656b95617bd3460d1933b6bdcb4f00ffcc8b82862b0258081249ec6d5fb58f7--g2s-0.98.018.x86_64_linux.bottle.1.tar.gz
==> Installing g2s from open-geocomputing/brew
==> Pouring g2s-0.98.018.x86_64_linux.bottle.1.tar.gz
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/g2s/./0.98.015/bin/g2s': Permission denied
Error: Failure while executing; `/usr/bin/env cp -pR /tmp/d20230724-2712-yp193n/g2s/. /home/linuxbrew/.linuxbrew/Cellar/g2s` exited with 1. Here's the output:
cp: cannot create regular file '/home/linuxbrew/.linuxbrew/Cellar/g2s/./0.98.015/bin/g2s': Permission denied

Ideally, I would like to use images bigger than 1000 by 1000, then check if it's worth it.

Thanks again for your time :)

@mgravey
Copy link
Member

mgravey commented Jul 24, 2023

Both issues are weird! let me contact you my email.

@mgravey
Copy link
Member

mgravey commented Jul 26, 2023

I don't really know from where the bug is from.
To any reader of this issue: if you have the same issue, please feel free to reopen it.

@mgravey mgravey closed this as completed Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants