# CUDA application for matrix multiplication

**URL:** <https://root-forum.cern.ch/t/cuda-application-for-matrix-multiplication/62542>\
**Category:** TMVA\
**Tags:** root, rootcling\
**Created:** [December 26, 2024, 4:18pm UTC](https://root-forum.cern.ch/t/cuda-application-for-matrix-multiplication/62542 "2024-12-26T16:18:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![terawatt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/terawatt/32/25153_2.png) [@terawatt](https://root-forum.cern.ch/u/terawatt)\
**Post date:** [December 26, 2024, 4:18pm UTC](https://root-forum.cern.ch/t/cuda-application-for-matrix-multiplication/62542/1 "2024-12-26T16:18:07Z")

</div>

Dear colleagues,  
I’m looking for fast matrix multiplication technique and usage of GPU capabilities with TCuda class looks very promising.  
But I cannot find any example how to use this class in ROOT interpreter. When I trying to call TMVA::DNN::TCuda t, I get error: unknown type name ‘TCuda’.  
It would be great to see a minimal example that allows one to use this class (or any other) for “low-level” access to GPU from ROOT.

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [December 27, 2024, 5:43pm UTC](https://root-forum.cern.ch/t/cuda-application-for-matrix-multiplication/62542/2 "2024-12-27T17:43:10Z")

</div>

Hi,

Thanks for the question and apologies for the slow reaction: this is a holiday period.  
We do not have such examples yet, but in general you have a point: this is the reason why we are investing in CUDA, for example making it available to ROOT, also in interpreted mode ( see [this draft PR](https://github.com/root-project/root/pull/17317), for example).  
For the specific TMVA question, let me add in the loop @moneta , our expert.

Cheers,  
D
