Skip to content
Discussion options

You must be logged in to vote

Hello,

cuTensorNet does support C-contiguous arrays and there are a few misses in your current approach.

  1. all input/output arrays are generated as 1D cupy.ndarrays in the script, therefore the A_d.strides in your change is only of size one, not corresponding to the fulll ndarray, at the top, you would need to do cp.random.random((np.prod(extent_A),), dtype=np.float32).reshape(extent_A) such that A_d.strides is of the correct size. This is needed for all input/output arrays for generic strides support.
  2. cutensornet requires strides to not be scaled while cupy.ndarray.strides is scaled by the element items, therefore, strides_in needs to be modified with below, same for the strides specifica…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Jinghong-Zhang
Comment options

@yangcal
Comment options

@Jinghong-Zhang
Comment options

@yangcal
Comment options

@Jinghong-Zhang
Comment options

Answer selected by Jinghong-Zhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #177 on March 11, 2025 18:17.