Does the code run on the GPU after transferring data to the GPU using the gpuArray function?
Mostra commenti meno recenti
I am a novice, I used the gpuArray function for transferring data to GPU , but the code run on the CPU. How can I get code to run on the GPU
Risposte (1)
Any operations you do on a gpuArray object will be done on the GPU. Operations you do on other objects (not gpuArrays) will be executed on the CPU.
2 Commenti
lu zhang
il 30 Nov 2021
Walter Roberson
il 30 Nov 2021
GPUs can be quite fast.
Use gputimeit() to estimate speed.
Categorie
Scopri di più su GPU Computing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!