end offset is before start offset Value Error

0 views
Skip to first unread message

Bobby Garza

unread,
Jun 16, 2017, 5:49:45 PM6/16/17
to Numba Public Discussion - Public
I'm pretty sure this error has something to do with my stride and loop conditions, but i'm not sure what to change to fix this. I use the built in function for my start and the built in function for my stride.

start  = cuda.grid(1)
stride = cuda.gridsize(1)

my for loop looks like:

for i in range(start, list_of_vals.shape[0], stride): 

list_of_vals is a numpy array i pass my function from main() and the call to shape should give the loop the right size, but this isn't happening. 

Am I missing something simple or does this error mean there's something extremely wrong? 
I appreciate any help! 
Reply all
Reply to author
Forward
0 new messages