From 779a01a47094156d3dfe26403d8b374ddeefd6ca Mon Sep 17 00:00:00 2001 From: Jaro Hokkanen Date: Sun, 30 Jun 2024 10:48:38 +0300 Subject: [PATCH] Update omp requires location --- gpu-openmp/docs/04-OpenMP-unstructured-data.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpu-openmp/docs/04-OpenMP-unstructured-data.md b/gpu-openmp/docs/04-OpenMP-unstructured-data.md index ff9315570..512befa91 100644 --- a/gpu-openmp/docs/04-OpenMP-unstructured-data.md +++ b/gpu-openmp/docs/04-OpenMP-unstructured-data.md @@ -105,6 +105,8 @@ void process_points() {
```c +#pragma omp requires unified_shared_memory + typedef struct points { double *x, *y; int n; @@ -112,8 +114,6 @@ typedef struct points { void process_points() { points p; - - #pragma omp requires unified_shared_memory p.size = n; p.x = (double) malloc(... p.y = (double) malloc(...