Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow scalars of custom-dtype objects as arguments (suggested by Bogd…
…an Opanchuk
  • Loading branch information
inducer committed May 27, 2014
1 parent 1e1b468 commit 9cd4203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycuda/driver.py
Expand Up @@ -116,7 +116,7 @@ def _build_arg_buf(args):
arg_data = []
format = ""
for i, arg in enumerate(args):
if isinstance(arg, np.number):
if isinstance(arg, (np.number, np.void)):
arg_data.append(arg)
format += arg.dtype.char
elif isinstance(arg, (DeviceAllocation, PooledDeviceAllocation)):
Expand Down

0 comments on commit 9cd4203

Please sign in to comment.