GPU sparse, accumarray, non-uniform grid

버전 1.5.0.0 (97.9 KB) 작성자: Stefano
performance gains above 1000x over matlab spmv can be observed with cuda compatible GPU.
다운로드 수: 1.1K
업데이트 날짜: 2013/12/4

라이선스 보기

bare-bone interface with cusp sparse class for gpus,
support for single precision, real/complex.

Usage:
A=gcsparse(B,[format: 0=coo, 1=csr]);
or
A=gcsparse(col,row,val,[nrows,[ncols,[format]]]);
input B is a matlab array, sparse array or gcarray.

overloaded operators:
ctranspose: B=A.';
transpose: B=A';
multiply: x=A*y; (spmv)
format conversion:
B=real(A);A=complex(B);B=gcsparse(A,format);
rowptr= ptr2row(A);
row =grow2ptr(A);

examples:
real/complex speed test: testgsparse.m
accumarray: testRadavg.m
stencils: testgnufft.m (radon trasform example)

Notes:
format conversion row2ptr and ptr2row is unstable inside a function call. (the reason why is a mystery to me).

인용 양식

Stefano (2024). GPU sparse, accumarray, non-uniform grid (https://www.mathworks.com/matlabcentral/fileexchange/44423-gpu-sparse-accumarray-non-uniform-grid), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2013b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 GPU Computing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.5.0.0

reduced number of copies during format conversion,
testgnufft example compares with matlab radon/iradon, (>20x speedup using GTX titan).

1.4.0.0

added density compensation function for gnufft/gnuradon/gnuiradon.

1.3.0.0

fixed bug in gnufft

1.2.0.0

added class description