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

Mem_alloc called with inconsistent type #46

Open
robertmaxton42 opened this issue Aug 16, 2018 · 0 comments
Open

Mem_alloc called with inconsistent type #46

robertmaxton42 opened this issue Aug 16, 2018 · 0 comments

Comments

@robertmaxton42
Copy link

~/anaconda3/envs/tensorflow/lib/python3.6/site-packages/reikna/cluda/cuda.py in __init__(self, size)
     56 
     57     def __init__(self, size):
---> 58         self._buffer = cuda.mem_alloc(size)
     59         self.size = size
     60 

ArgumentError: Python argument types in
    pycuda._driver.mem_alloc(numpy.int64)
did not match C++ signature:
    mem_alloc(unsigned long)

-- I should confess that this only showed up because of a separate bug in my own code - I was passing in an array much smaller than the Computation was asking for, so it was reallocating, I believe. But the error looked to me like a real bug I had happened to stumble on by mistake - I'm not sure when this code is meant to be called in normal operation, but I think that should be uint64 up there? - so I thought I'd report it anyway, so you knew about it.

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