15int main(
int argc,
char *argv[]) {
19 int successful_alloc = 0;
25 for (
int i = 0;
i <
N;
i++) {
26 for (
int j = 0;
j <
N;
j++) {
31#pragma omp parallel for allocate(x_alloc: x) private(x) shared(result)
32 for (
int i = 0;
i <
N;
i++) {
33 x = (
int *)malloc(
N *
sizeof(
int));
35#pragma omp simd simdlen(16) aligned(x : 64)
36 for (
int j = 0;
j <
N;
j++) {
39 for (
int j = 0;
j <
N;
j++) {
47 errors += successful_alloc < 1;
49 for (
int i = 0;
i <
N;
i++) {
50 for (
int j = 0;
j <
N;
j++) {
55 omp_destroy_allocator(x_alloc);
omp_memspace_handle_t const omp_default_mem_space
void * omp_memspace_handle_t
void * omp_allocator_handle_t