Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4eb1e49f authored by hhakim's avatar hhakim
Browse files

Integrate GPU BSR matrices into matfaust.rand_bsr.

parent d9694198
No related branches found
No related tags found
No related merge requests found
...@@ -133,18 +133,18 @@ function F = rand_bsr(M, N, BM, BN, varargin) ...@@ -133,18 +133,18 @@ function F = rand_bsr(M, N, BM, BN, varargin)
is_real = true; is_real = true;
end end
else else
error('BSR Fausts are not yet supported on GPU') % dev is 'gpu'
% if(field == COMPLEX) if(strcmp(field, 'complex'))
% core_obj = mexFaustGPUCplx('rand_bsr', M, N, min_num_factors, max_num_factors, BM, BN, density); core_obj = mexFaustGPUCplx('rand_bsr', M, N, min_num_factors, max_num_factors, BM, BN, density);
% is_real = false; is_real = false;
% else %if(field == REAL) else %if(field == REAL)
% if(strcmp(class, 'double')) if(strcmp(class, 'double'))
% core_obj = mexFaustGPUReal('rand_bsr', M, N, min_num_factors, max_num_factors, BM, BN, density); core_obj = mexFaustGPUReal('rand_bsr', M, N, min_num_factors, max_num_factors, BM, BN, density);
% else % float/single else % float/single
% core_obj = mexFaustGPURealFloat('rand_bsr', M, N, min_num_factors, max_num_factors, BM, BN, density); core_obj = mexFaustGPURealFloat('rand_bsr', M, N, min_num_factors, max_num_factors, BM, BN, density);
% end end
% is_real = true; is_real = true;
% end end
end end
if(core_obj == 0) if(core_obj == 0)
throw(MException('FAUST:OOM', 'Out of Memory')) throw(MException('FAUST:OOM', 'Out of Memory'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment