Public bug reported:
With the 460 driver on a 5.11 kernel, I'm unable to initialize a new
context.
ubuntu@blanka:~$ cat foo.c
#include<cuda.h>
#include<assert.h>
#include <stdio.h>
int main(){
int ret;
assert (cuInit(0) == 0);
CUcontext ctx;
CUdevice device;
assert(cuDeviceGet(&device,0) == 0 );
ret = cuCtxCreate(&ctx, 0, device);
printf("cuCtxCreate returned %d\n", ret);
return 0;
}
$ sudo ./foo
cuCtxCreate returned 1
This works fine with the 450 driver.
$ cat /proc/version
Linux version 5.11.0-13-generic (buildd@lgw01-amd64-035) (gcc (Ubuntu
10.2.1-23ubuntu1) 10.2.1 20210312, GNU ld (GNU Binutils for Ubuntu) 2.36.1)
#14-Ubuntu SMP Fri Mar 19 16:55:27 UTC 2021
$ dpkg -l | grep nvidia-cuda-dev
ii nvidia-cuda-dev:amd64 11.2.1-2
amd64 NVIDIA CUDA development
files
** Affects: nvidia-graphics-drivers-460-server (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
With the 460 driver on a 5.11 kernel, I'm unable to initialize a new
context.
ubuntu@blanka:~$ cat foo.c
#include<cuda.h>
#include<assert.h>
#include <stdio.h>
int main(){
- int ret;
- assert (cuInit(0) == 0);
- CUcontext ctx;
- CUdevice device;
+ int ret;
+ assert (cuInit(0) == 0);
+ CUcontext ctx;
+ CUdevice device;
- assert(cuDeviceGet(&device,0) == 0 );
- ret = cuCtxCreate(&ctx, 0, device);
- printf("cuCtxCreate returned %d\n", ret);
- return 0;
+ assert(cuDeviceGet(&device,0) == 0 );
+ ret = cuCtxCreate(&ctx, 0, device);
+ printf("cuCtxCreate returned %d\n", ret);
+ return 0;
}
$ sudo ./foo
cuCtxCreate returned 1
-
- This works fine the 450 driver.
+ This works fine with the 450 driver.
$ cat /proc/version
Linux version 5.11.0-13-generic (buildd@lgw01-amd64-035) (gcc (Ubuntu
10.2.1-23ubuntu1) 10.2.1 20210312, GNU ld (GNU Binutils for Ubuntu) 2.36.1)
#14-Ubuntu SMP Fri Mar 19 16:55:27 UTC 2021
$ dpkg -l | grep nvidia-cuda-dev
ii nvidia-cuda-dev:amd64 11.2.1-2
amd64 NVIDIA CUDA
development files
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1922599
Title:
fails to create a new context
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-460-server/+bug/1922599/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs