LLVM OpenMP
20.0.0git
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
c
d
e
g
h
i
m
n
p
r
s
t
u
Functions
c
d
e
g
i
m
n
p
r
s
u
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
_
a
b
c
d
e
i
k
l
m
n
o
p
r
t
u
Enumerations
_
b
c
d
f
k
l
n
o
s
t
Enumerator
_
a
b
c
d
e
f
k
l
n
o
p
r
s
t
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
runtime
test
env
omp_alloc_env_invalid.c
Go to the documentation of this file.
1
// RUN: %libomp-compile
2
// RUN: env OMP_ALLOCATOR=111 %libomp-run 2>&1 | FileCheck %s
3
// RUN: env OMP_ALLOCATOR=omp_default_mem_alloc_xyz %libomp-run 2>&1 | FileCheck %s
4
// UNSUPPORTED: gcc
5
6
// Both invocations of the test should produce (different) warnings:
7
// OMP: Warning #42: OMP_ALLOCATOR: "111" is an invalid value; ignored.
8
// OMP: Warning #189: Allocator omp_const_mem_alloc is not available, will use default allocator.
9
#include <stdio.h>
10
#include <omp.h>
11
int
main
() {
12
volatile
int
n =
omp_get_max_threads
();
// causes library initialization
13
return
0;
14
}
15
16
// CHECK: {{^OMP: Warning #[0-9]+}}: {{.*$}}
main
int main()
Definition:
omp_alloc_env_invalid.c:11
omp_get_max_threads
int omp_get_max_threads()
Generated on Thu Jun 12 2025 12:16:48 for LLVM OpenMP by
1.9.6