import numpy as np from time import time  INPUT1 = np.arange(0, 1_000_000, dtype=np.int32) INPUT2 = np.arange(2, 1_000_002, dtype=np.int32) assert INP

Not just NVIDIA: GPU programming that runs everywhere

submited by
Style Pass
2024-02-13 18:00:02

import numpy as np from time import time INPUT1 = np.arange(0, 1_000_000, dtype=np.int32) INPUT2 = np.arange(2, 1_000_002, dtype=np.int32) assert INPUT1.shape == INPUT2.shape

import numpy as np from time import time INPUT1 = np.arange(0, 1_000_000, dtype=np.int32) INPUT2 = np.arange(2, 1_000_002, dtype=np.int32) assert INPUT1.shape == INPUT2.shape

Leave a Comment