Skip to content

Commit

Permalink
Update omp requires location
Browse files Browse the repository at this point in the history
  • Loading branch information
hokkanen committed Jun 30, 2024
1 parent 88ce198 commit 779a01a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpu-openmp/docs/04-OpenMP-unstructured-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ void process_points() {
<div class="column">
```c
#pragma omp requires unified_shared_memory
typedef struct points {
double *x, *y;
int n;
}
void process_points() {
points p;
#pragma omp requires unified_shared_memory
p.size = n;
p.x = (double) malloc(...
p.y = (double) malloc(...
Expand Down

0 comments on commit 779a01a

Please sign in to comment.