Skip to content
Snippets Groups Projects
Commit 7d152385 authored by Matei BARBU's avatar Matei BARBU
Browse files

cuda: advanced: exercices: trigo: something to show

parent be83449e
No related branches found
No related tags found
1 merge request!6Lab6 support
......@@ -3,3 +3,26 @@
Aveți de implementat următoarea funcție.
$$f(x) = sin(x) (1 - cos(x))$$
## Rezultate așteptate
Valoarea aproximativă a primelor 16 elemente.
```
0.247767
0.029497
0.205485
0.216438
0.306368
0.003817
0.018312
0.195158
0.010511
0.078677
0.051371
0.112533
0.023474
0.063318
0.342286
0.310301
```
......@@ -32,6 +32,8 @@ int compute_NoUnifiedMem(void) {
// TODO-plain: Copiere device_b (GPU/VRAM) => date host_b (CPU/RAM)
// TODO print first partial results
free(host_a);
free(host_b);
......
......@@ -24,6 +24,8 @@ int compute_UnifiedMem(void) {
kernel_compute<<<NUM_ELEM / 256, 256>>>(host_a, host_b, NUM_ELEM);
// TODO print first partial results
// TODO-unified: Dealocare memorie unificata
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment