I have modified a cupy example to test a simple function, but some variables do not seem to take the right values. Here is the code:
cupy
import cupy