Cytnx icon indicating copy to clipboard operation
Cytnx copied to clipboard

CUDA Version Issues: RegularNetwork::Launch and linalg::Trace Errors

Open Chan-Sing-Hong opened this issue 9 months ago • 2 comments

I encountered two errors while using the Cytnx CUDA version 1.0.0:

  1. RegularNetwork::Launch Error
RuntimeError: 
# Cytnx error occur at virtual cytnx::UniTensor cytnx::RegularNetwork::Launch()
# error: [ERROR][Launch][RegularNetwork] Error,Sparse or Block type UniTensor network contraction is not support.

Issue: Sparse or Block-type UniTensor network contraction is not supported in the CUDA version.

  1. linalg::Trace Error
RuntimeError:
Cytnx error occur at cytnx::Tensor cytnx::linalg::Trace(const cytnx::Tensor&, const cytnx::cytnx_uint64&, const cytnx::cytnx_uint64&)
error: [ERROR][Trace] GPU is under developing.

Issue: The Trace function cannot be implemented for GPU.

Are there any temporary solutions for these issues?

Chan-Sing-Hong avatar Apr 02 '25 07:04 Chan-Sing-Hong

Maybe move the network onto the CPU and try to call these functions on the CPU?

IvanaGyro avatar Apr 02 '25 07:04 IvanaGyro

Yes, that is one way to do it, but I am wondering if there is a way to handle it directly in CUDA.

Chan-Sing-Hong avatar Apr 02 '25 09:04 Chan-Sing-Hong