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
Branches
Tags
No related merge requests found
......@@ -133,18 +133,18 @@ function F = rand_bsr(M, N, BM, BN, varargin)
is_real = true;
end
else
error('BSR Fausts are not yet supported on GPU')
% if(field == COMPLEX)
% core_obj = mexFaustGPUCplx('rand_bsr', M, N, min_num_factors, max_num_factors, BM, BN, density);
% is_real = false;
% else %if(field == REAL)
% if(strcmp(class, 'double'))
% core_obj = mexFaustGPUReal('rand_bsr', M, N, min_num_factors, max_num_factors, BM, BN, density);
% else % float/single
% core_obj = mexFaustGPURealFloat('rand_bsr', M, N, min_num_factors, max_num_factors, BM, BN, density);
% end
% is_real = true;
% end
% dev is 'gpu'
if(strcmp(field, 'complex'))
core_obj = mexFaustGPUCplx('rand_bsr', M, N, min_num_factors, max_num_factors, BM, BN, density);
is_real = false;
else %if(field == REAL)
if(strcmp(class, 'double'))
core_obj = mexFaustGPUReal('rand_bsr', M, N, min_num_factors, max_num_factors, BM, BN, density);
else % float/single
core_obj = mexFaustGPURealFloat('rand_bsr', M, N, min_num_factors, max_num_factors, BM, BN, density);
end
is_real = true;
end
end
if(core_obj == 0)
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