From 9348af0ebb2202a60a726d1ece849364c19ccb3c Mon Sep 17 00:00:00 2001 From: Ben Blain Date: Mon, 21 Apr 2025 10:01:19 +0400 Subject: [PATCH] Fix listing of numpy types during init `np.sctypeDict` now requires the long name of the datatype, not the single-character name. This is a minimal change to fix this. --- skcuda/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skcuda/misc.py b/skcuda/misc.py index 63dea7c..b5c0557 100644 --- a/skcuda/misc.py +++ b/skcuda/misc.py @@ -634,7 +634,7 @@ def diff(x_gpu): # List of available numerical types provided by numpy: -num_types = [np.sctypeDict[t] for t in \ +num_types = [np.sctypeDict[np.dtype(t).name] for t in \ np.typecodes['AllInteger']+np.typecodes['AllFloat']] # Numbers of bytes occupied by each numerical type: