a.32.1.c
来自「用于进行gcc测试」· C语言 代码 · 共 28 行
C
28 行
/* { dg-do compile } *//* { dg-require-effective-target tls_native } */#include <stdlib.h>float *work;int size;float tol;void build (void);#pragma omp threadprivate(work,size,tol)voida32 (float t, int n){ tol = t; size = n;#pragma omp parallel copyin(tol,size) { build (); }}voidbuild (){ int i; work = (float *) malloc (sizeof (float) * size); for (i = 0; i < size; ++i) work[i] = tol;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?