Révision 275 ETSN/MySteps_0.py
MySteps_0.py (revision 275) | ||
---|---|---|
41 | 41 |
res_np = np.empty_like(a_np) |
42 | 42 |
# Copy from Device to Host |
43 | 43 |
cl.enqueue_copy(queue, res_np, res_g) |
44 |
|
|
45 |
# Liberation of memory |
|
46 |
a_g.release() |
|
47 |
b_g.release() |
|
48 |
res_g.release() |
|
44 | 49 |
|
45 | 50 |
return(res_np) |
46 | 51 |
|
Formats disponibles : Unified diff