You are not logged in.

#1 2016-11-02 20:08:56

denisal
Member
Registered: 2016-10-24
Posts: 9

[SOLVED] cuda-gdb missing libncurses.so.5

Hey all,
I am using Nsight Eclipse for remote debugging CUDA code on a server running Ubuntu 14.04.4 LTS with CUDA Toolkit 7.5. My local machine does not have a NVIDIA graphics card. On my local machine I recently moved from Ubuntu to Arch and just installed the cuda 8.0.44-2 package.

After that, compiling my CUDA projects locally works fine. But when I wanted to start cuda-gdb on my local machine to connect to cuda-gdbserver on the remote, I got this error:

cuda-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

I couldn't locate libncurses.so.5 on my system and then came across the AUR package ncurses5-compat-libs. Installing that solves the problem. I can now start cuda-gdb locally.

But I'm still surprised, since gcc5 gets installed with cuda but does not come with libncurses.so.5. And wasn't gcc5 added to the official repository to a large extend because of cuda not supporting gcc6? So it feels like I missed something to get cuda-gdb to work without needing to install ncurses5-compat-libs. Any ideas?

And while I'm at it: I now have the problem that my local cuda-gdb version is not compatible with the cuda-gdbserver version on the remote. When I try to connect from my local machine to a running cuda-gdbserver on the remote, I get:

cuda-gdb version (8.0.127) is not compatible with cuda-gdbserver version (7.5.123).
Please use the same version of cuda-gdb and cuda-gdbserver.

So what would be the Arch way here of getting my setup to work until the CUDA Toolkit on the server gets upgraded? Would this be an acceptable reason to downgrade my cuda package or is there a better fix?

Last edited by denisal (2016-11-03 10:05:46)

Offline

#2 2016-11-02 21:11:52

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] cuda-gdb missing libncurses.so.5

The maintainer is aware of this missing dependency, but the situation is unlikely to change. See https://bugs.archlinux.org/task/46598

Installing the ncurses5-compat-libs AUR package is the correct thing to do if you need to use cuda-gdb on your system.

Rather than downgrading your cuda package, I would recommend installing cuda-7.5 from the AUR. However, since cuda is a precompiled package, either solution would probably work just as well as the other.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-11-03 10:04:22

denisal
Member
Registered: 2016-10-24
Posts: 9

Re: [SOLVED] cuda-gdb missing libncurses.so.5

Alright. Guess I should have found that bug report myself... Well, thanks for clarifying!

Offline

#4 2017-01-26 12:23:34

Slava
Member
Registered: 2012-01-19
Posts: 7

Re: [SOLVED] cuda-gdb missing libncurses.so.5

WorMzy wrote:

The maintainer is aware of this missing dependency, but the situation is unlikely to change. See https://bugs.archlinux.org/task/46598

Well, that is ridiculous. Because while Cuda may be closed source, the cuda-gdb is actually open-sourced and can be built (albeit the process is quite painful). I think it would make sense to put cuda-gdb into a separate package, but there does not seem to be a great demand for it.

Offline

Board footer

Powered by FluxBB