# TEBD with GPU - error with eigen

**URL:** <https://itensor.discourse.group/t/tebd-with-gpu-error-with-eigen/1266>\
**Category:** ITensor Julia Questions\
**Tags:** julia\
**Created:** [November 4, 2023, 5:44pm UTC](https://itensor.discourse.group/t/tebd-with-gpu-error-with-eigen/1266 "2023-11-04T17:44:54Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mtfishman](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/mtfishman/32/11_2.png) [@mtfishman](https://itensor.discourse.group/u/mtfishman)\
**Post date:** [November 5, 2023, 10:26pm UTC](https://itensor.discourse.group/t/tebd-with-gpu-error-with-eigen/1266/6 "2023-11-05T22:26:21Z")

</div>

Interesting that it works for `NDTensors.cu` but not `cu`.

The only difference between the two is that `NDTensors.cu` preserves the element type of the tensors, while `cu` converts to single precision. See [Memory management · CUDA.jl](https://cuda.juliagpu.org/stable/usage/memory/#Type-preserving-upload), `NDTensors.cu` is just a wrapper around `using Adapt; x_gpu = adapt(CuArray, x_cpu)`.

I’m not sure why there would be an issue using single precision in the code you shared, it would be worth investigating. @kmp5 has been doing some analysis of timings and accuracy/stability of using single precision vs. double precision with DMRG, I think it is still an area of research to some extent which algorithms still have good convergence and also get speedups from using single precision, most of our experience is using double precision on CPU.

---

_[View the full topic](https://itensor.discourse.group/t/tebd-with-gpu-error-with-eigen/1266)._
