cupy

How to use cupy.lib.stride_tricks.as_strided(x, shape=None, strides=None)

How to use cupy.lib.stride_tricks.as_strided(x, shape=None, strides=None) Question: I was using: np.lib.stride_tricks.sliding_window_view with a 1D-array and two parameters (the array and the length of the subset n) to slice it into slices of n elements (n < 1D-array.shape, of course) I think I can go faster with cupy and I started with: cupy.lib.stride_tricks.as_strided(x, shape=None, strides=None) Documentation …

Total answers: 2

Clear all cached kernels from CuPY to force kernel compilation

Clear all cached kernels from CuPY to force kernel compilation Question: In the CuPY documentation, it is stated that "CuPy caches the kernel code sent to GPU device within the process, which reduces the kernel compilation time on further calls." This means that when one calls a function from CuPY, subsequent calls to this function …

Total answers: 1

Installing cusignal on windows 10

Installing cusignal on windows 10 Question: I wanted to install the cusignal python package on windows and I was following the instructions on the following github link. It says to run the following commands: conda create –name cusignal-dev conda activate cusignal-dev conda install numpy numba scipy cudatoolkit pip pip install cupy-cuda101 cd python python setup.py …

Total answers: 2

How to use WMMA functions in Cupy kernels?

How to use WMMA functions in Cupy kernels? Question: How to use WMMA functions such as wmma::load_matrix_sync in cupy.RawKernel or cupy.RawModule? can someone provide a minimal example? Asked By: omer sahban || Source Answers: We can combine information on cupy RawKernel and wmma programming to provide most of the needed material. I don’t intend to …

Total answers: 1