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
Call to cuInit results in CUDA_ERROR_NO_DEVICE: #5793
Comments
And the information by running numba -s |
Time Stamp Hardware Information OS Information Python Information LLVM information CUDA Information ROC Information HSA is not currently supported on this platform (win32). SVML Information Threading Layer Information Numba Environment Variable Information Conda Information Current Conda Env
|
someone please help me |
a |
Why do you do: os.environ["CUDA_VISIBLE_DEVICES"]="-1" ? Does it work if you remove that line? |
This issue is marked as stale as it has had no activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with any updates and confirm that this issue still needs to be addressed. |
@humezawa we never hear back from you, is this issue still present for you? |
Closing this as the issue appears to be explained - please reopen it if the problem persists when |
There is my code
import os
from numba import cuda
import numpy as np
to measure exec time
from timeit import default_timer as timer
n = 10000000
os.environ["CUDA_VISIBLE_DEVICES"]="-1"
threadsperblock = 32
blockspergrid = (n + (threadsperblock - 1)) // threadsperblock
function optimized to run on gpu
@cuda.jit()
def func2(a):
print('ok')
a = np.ones(n, dtype = np.float64)
start = timer()
func2blockspergrid, threadsperblock
print("with GPU:", timer()-start)
I am working on spyder in windows and downloaded all my packages using conda.
every time I run my code there is the output.
CudaAPIError: Call to cuInit results in CUDA_ERROR_NO_DEVICE
CudaSupportError: Error at driver init:
[100] Call to cuInit results in CUDA_ERROR_NO_DEVICE:
The text was updated successfully, but these errors were encountered: