Does the code run on the GPU after transferring data to the GPU using the gpuArray function?
이전 댓글 표시
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
답변 (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
lu zhang
2021년 11월 30일
Walter Roberson
2021년 11월 30일
GPUs can be quite fast.
Use gputimeit() to estimate speed.
카테고리
도움말 센터 및 File Exchange에서 GPU Computing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!