question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: compile_kernel() got an unexpected keyword argument 'boundscheck'

See original GitHub issue

Hi, I am quite new to numba and was trying to play with it. Thus, I was trying to run the following simple example:

from numba import jit, cuda 
import numpy as np 
import os

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

if __name__ == '__main__':
    n = 10000000
    a = np.ones(n, dtype=np.float64)
    b = np.ones(n, dtype=np.float32)

    func2(a)
    os._exit(0)

but for some reason I am getting the TypeError:

TypeError: compile_kernel() got an unexpected keyword argument 'boundscheck'

I checked on the web for similar issues but I did not really found anything relevant. Any idea what might be wrong.

Thanks.

System info: Python 3.8 Windows 10 Numba 0.50

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
gmarkallcommented, Aug 17, 2020

Closing this as @jit(target=) is now deprecated.

0reactions
ttsesmcommented, Jul 8, 2020

I can verify that the latest provided example from @esc works here without issues as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CUDA GPU processing: TypeError: compile_kernel() got an ...
CUDA GPU processing: TypeError: compile_kernel() got an unexpected keyword argument 'boundscheck' · 2 · Consider using C/C++ instead, by following ...
Read more >
Recursion error with numba and cudatoolkit : r/pythonhelp
But when i call the entire function, I get this error: ... TypeError: compile_kernel() got an unexpected keyword argument 'boundscheck' ...
Read more >
TypeError: _cuda() got an unexpected keyword argument ...
I'm currently working through Fast.AI lesson one on a paperspace machine. I have pulled the latest fastai repo, and have updated the Python ......
Read more >
ChangeLog - OpenLisp by Eligis
2022/06/04: Fix compiler issue when REQUIRE is used with a keyword argument. 2022/05/29: Qualified port on Solaris 10 sparc with gcc 9.5.0 (-m64...
Read more >
Список изменений - OpenNet
ACPI: PM: Fix NULL argument handling in acpi_device_get/set_power() ... ACPI: utils: Add acpi_dev_uid_to_integer() helper to get _UID as integer.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found