Skip to content

Commit

Permalink
Drop np.int from curandom for numpy deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Dec 20, 2022
1 parent 4fca42e commit f426d48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycuda/curandom.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def fill_uniform(self, data, stream=None):
func = self.generators["uniform_float"]
elif data.dtype == np.float64:
func = self.generators["uniform_double"]
elif data.dtype in [np.int, np.int32, np.uint32]:
elif data.dtype in [np.int32, np.uint32]:
func = self.generators["uniform_int"]
elif data.dtype in [np.int64, np.uint64] and self.generator_bits >= 64:
func = self.generators["uniform_long"]
Expand Down

0 comments on commit f426d48

Please sign in to comment.