Yana
0
Q:

how to run python code on the gpu

from numba import jit, cuda 

# function optimized to run on gpu  
@jit(target ="cuda")                          
def func2(a): 
    for i in range(10000000): 
        a[i]+= 1
1

New to Communities?

Join the community