Mentions légales du service

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

Start the GPU Faust class python wrapper with the Faust constructor (from...

Start the GPU Faust class python wrapper with the Faust constructor (from numpy arrays), display function and multiply by a numpy aray.

Update to gpu_mod@35e44f6d.

============ Test case
from pyfaust import Faust
from numpy.random import rand
from numpy.linalg import norm

M = rand(10,10)
gpu_F = Faust([M], gpu=0)
print(gpu_F)
gpu_FM = gpu_F*M

cpu_F = Faust([M])
cpu_FM = cpu_F*M

print('error gpu/cpu:', norm(cpu_FM-gpu_FM)/norm(gpu_FM))
=========================
parent b5ff23ef
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment