Questions tagged [nvidia]

For programming questions specifically related to Nvidia hardware. N.B. Questions about system configuration are usually off-topic here!

Nvidia is an American global technology company based in Santa Clara, California, best known for its graphics processors (GPUs).

More about Nvidia at http://en.wikipedia.org/wiki/Nvidia
Nvidia website at http://www.nvidia.com/content/global/global.php

3668 questions
32
votes
3 answers

Are cuda kernel calls synchronous or asynchronous

I read that one can use kernel launches to synchronize different blocks i.e., If i want all blocks to complete operation 1 before they go on to operation 2, I should place operation 1 in one kernel and operation 2 in another kernel. This way, I can…
Programmer
  • 6,565
  • 25
  • 78
  • 125
32
votes
2 answers

What is the correct version of CUDA for my nvidia driver?

I am using ubuntu 14.04. I want to install CUDA. But I don't know which version is good for my laptop. I trace my driver that is: $cat /proc/driver/nvidia/version NVRM version: NVIDIA UNIX x86_64 Kernel Module 304.125 Mon Dec 1 19:58:28 PST…
Jame
  • 3,746
  • 6
  • 52
  • 101
31
votes
1 answer

Android Nexus 7 Jelly Bean: startPreview/takePicture calling getCameraStereoMode logs an error

I just got a Nexus 7 I'm trying to port some code to. The following line works with no problem on a Xoom running Ice Cream: mCamera.startPreview(); It also works correctly on the Nexus 7, but it logs errors: E/NvOmxCamera( 126): OMX_ERRORTYPE…
PapaSloth
  • 488
  • 3
  • 7
30
votes
2 answers

What is CUDA like? What is it for? What are the benefits? And how to start?

I am interested in developing under some new technology and I was thinking in trying out CUDA. Now... their documentation is too technical and doesn't provide the answers I'm looking for. Also, I'd like to hear those answers from people that've had…
PedroC88
  • 3,708
  • 7
  • 43
  • 77
30
votes
7 answers

How do I customize nvidia-smi 's output to show PID username?

The output of nvidia-smi shows the list of PIDs which are running on the GPU: Thu May 10 09:05:07 2018 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 384.111 Driver Version: 384.111…
Dang Manh Truong
  • 795
  • 2
  • 10
  • 35
30
votes
1 answer

What's the relation between nvidia driver, cuda driver and cuda toolkit?

In the nvidia driver package, there is libcuda.so. Is the cuda driver the same as nvidia driver? And what's the relation between cuda toolkit and libcuda.so?
bydsky
  • 1,604
  • 2
  • 14
  • 30
29
votes
7 answers

Could not load dynamic library 'libcublas.so.10'; dlerror: libcublas.so.10: cannot open shared object file: No such file or directory;

When I try to run a python script , which uses tensorflow, it shows following error ... 2020-10-04 16:01:44.994797: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1 2020-10-04…
Ravi Dewangan
  • 293
  • 1
  • 3
  • 5
29
votes
4 answers

How can I get number of Cores in cuda device?

I am looking for a function that count number of core of my cuda device. I know each microprocessor have specific cores, and my cuda device has 2 microprocessors. I searched a lot to find a property function that count number of cores per…
Alsphere
  • 513
  • 1
  • 7
  • 22
27
votes
2 answers

How is CUDA memory managed?

When I run my CUDA program which allocates only a small amount of global memory (below 20 M), I got a "out of memory" error. (From other people's posts, I think the problem is related to memory fragmentation) I try to understand this problem, and…
xhe8
  • 419
  • 1
  • 5
  • 13
27
votes
2 answers

Maximum blocks per grid:CUDA

What is the maximum number of blocks in a grid that can created per kernel launch? I am slightly confused here since Now the compute capability table here says that there can be 65535 blocks per grid dimemsion in CUDA compute capability 2.0. Does…
smilingbuddha
  • 14,334
  • 33
  • 112
  • 189
27
votes
2 answers

Forcing NVIDIA GPU programmatically in Optimus laptops

I'm programming a DirectX game, and when I run it on an Optimus laptop the Intel GPU is used, resulting in horrible performance. If I force the NVIDIA GPU using the context menu or by renaming my executable to bf3.exe or some other famous game…
Smohn Jith
  • 305
  • 1
  • 3
  • 8
26
votes
1 answer

nvidia-smi: GPU's full name not displayed properly

On a Linux server, nvidia-smi can show GPU name, as well as other useful information. However, the full name is not displayed properly. How can I know the full name of GPUs?
fatpanda2049
  • 483
  • 1
  • 4
  • 9
26
votes
4 answers

Qt 5.12: Failed to find "GL/gl.h" in "/usr/include/libdrm"

I have a freshly installed Ubuntu 18.04.3 system (NVIDIA) with only Qt SDK 5.12.5, build-essential, git, and CMake installed. I'm trying to build a Qt project by opening the main CMakeLists.txt in Qt Creator: Check for working CXX compiler:…
juzzlin
  • 45,029
  • 5
  • 38
  • 50
26
votes
1 answer

Multiple OpenGLX rendering contexts fail on Linux with proprietary Nvidia Drivers

When I try to run over 128 current OpenGLX rendering contexts on individual threads, the call to glXMakeCurrent starts failing. Display *display = XOpenDisplay(":0") Window root_win = RootWindow(display, screen); Window win = XCreateWindow (display,…
Utku Zihnioglu
  • 4,714
  • 3
  • 38
  • 50
26
votes
2 answers

nvidia-smi process hangs and can't be killed with SIGKILL either

I'm on Ubuntu 14.04, CUDA toolkit 8, driver version 367.48. When I give nvidia-smi command, it just hangs indefinitely. When I login again and try to kill that nvidia-smi process, with kill -9 for example, it just isn't killed. If I give…
bio
  • 501
  • 1
  • 5
  • 16