gpu support single sparse matrix?

조회 수: 4 (최근 30일)
Tung-Duong
Tung-Duong 2017년 3월 15일
답변: Mike Croucher 2025년 8월 13일
I can't create a single-precision sparse matrix on the GPU. Does version 2017a allow that yet?

채택된 답변

Joss Knight
Joss Knight 2017년 3월 15일
You can't create a single-precision sparse matrix on the CPU either, so the answer is no, this is not supported. Do you have an application in mind?
  댓글 수: 7
Tung-Duong
Tung-Duong 2017년 12월 12일
Thanks for the reply. That's also the type of application I have in mind, where collective behavior matters more than numerical precision. Which version do you use? With 2017a, I just tried single(A) where A is sparse matrix and it says "Attempt to convert to unimplemented sparse type".
Thomas Richner
Thomas Richner 2019년 7월 3일
2 years later and I still miss seriously miss single and half precision sparse every day. Sad. It isn't only about memory savings--the single precision compute performance of a nvidia 1080 ti is 10x that of double precision.
I'm hoping that with deep nerual nets gaining traction in Matlab, they might find reason to implement single and half precision sparse arrays. Pytorch has these.
Until then I'm left either converting back and forth between double and single (which is slow) or running entirely with double with smaller simulations.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Mike Croucher
Mike Croucher 2025년 8월 13일
Single Sparse is now supported, starting with R2025a on both the CPU and GPU. A detailed write up, including performance benchmarks, can be found at New in MATLAB: Single precision sparse matrices » The MATLAB Blog - MATLAB & Simulink

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by