Error using rand function with gpu suport
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi all together,
I am using rand function with gpu support as ( rand(size, type, 'gpuArray') ) with R2013a on the cluster. I receive the following error. "Error using rand Output class must be 'single' or 'double'." The point is that, when I run it locally on my machine, there is no error. The Matlab version of my machine is R2015b. It would be appreciated if someone let me know what the problem is? Is it related to matlab version or the property of the CUDA device on the server? Should I specify something to use the gpu in this case (ex. DriverVersion, ComputeCapability, etc)?
Any help would be appreciated. Bests
댓글 수: 0
답변 (1개)
Edric Ellis
2015년 12월 2일
The ability to call rand(size, type, 'gpuArray') was added in R2014a. This is mentioned in the MATLAB release notes for 14a - see the item "Support array-creation functions in your class".
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 GPU Computing in MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!