11 at[0].
value = 2 * 1024 * 1024;
15 printf(
"allocator hbw created: %p\n", (
void *)
a);
16#pragma omp parallel num_threads(2)
18 int i = omp_get_thread_num();
21 printf(
"th %d, ptr %p\n",
i,
p[
i]);
28 if ((
p[0] == NULL &&
p[1] != NULL) || (
p[0] != NULL &&
p[1] == NULL)) {
32 printf(
"failed: pointers %p %p\n",
p[0],
p[1]);
37 if (
p[0] != NULL &&
p[1] != NULL) {
41 printf(
"failed: pointers %p %p\n",
p[0],
p[1]);
void const char const char int ITT_FORMAT __itt_group_sync p
void * omp_allocator_handle_t
omp_memspace_handle_t const omp_high_bw_mem_space
omp_allocator_handle_t const omp_null_allocator
void omp_free(void *ptr, omp_allocator_handle_t allocator)
void * omp_alloc(size_t size, omp_allocator_handle_t allocator)