Skip to content
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

ERROR: No registered converter was able to produce a C++ rvalue of type unsigned int from this Python object of type float #1

Open
deimsdeutsch opened this issue Mar 7, 2019 · 0 comments

Comments

@deimsdeutsch
Copy link

E:\github\Object-Tracking-PyCUDA>python OTVA_PYCUDA.py
OTVA_PYCUDA.py:101: UserWarning: The CUDA compiler succeeded, but said the following:
kernel.cu

mod = compiler.SourceModule(kernel_code)
Window 1 histogram cpu time is 0.05217933654785156
Window 2 histogram cpu time is 0.039226531982421875
C:\Program Files\Python36\lib\site-packages\pycuda\elementwise.py:75: UserWarning: The CUDA compiler succeeded, but said the following:
kernel.cu

options=options, keep=keep)
Traceback (most recent call last):
File "OTVA_PYCUDA.py", line 182, in
given_hist(img_gpu1, bin_gpu1, block=(1, 1, 1), grid=(h1 * w1 / 96, 1, 1))
File "C:\Program Files\Python36\lib\site-packages\pycuda\driver.py", line 402, in function_call
func._launch_kernel(grid, block, arg_buf, shared, None)
TypeError: No registered converter was able to produce a C++ rvalue of type unsigned int from this Python object of type float

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant