summaryrefslogtreecommitdiff
path: root/openmp/libompd/src/ompd-types.h
blob: 86b1cb11f5a7abd12761b47b7149a34338c4f1ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * @@name:   ompd-types.h
 */

//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef __OMPD_TYPES_H
#define __OMPD_TYPES_H

extern "C" {
#include "omp-tools.h"
}

#define OMPD_TYPES_VERSION 20180906 /* YYYYMMDD Format */

/* Kinds of device threads  */
#define OMPD_THREAD_ID_PTHREAD ((ompd_thread_id_t)0)
#define OMPD_THREAD_ID_LWP ((ompd_thread_id_t)1)
#define OMPD_THREAD_ID_WINTHREAD ((ompd_thread_id_t)2)
/* The range of non-standard implementation defined values */
#define OMPD_THREAD_ID_LO ((ompd_thread_id_t)1000000)
#define OMPD_THREAD_ID_HI ((ompd_thread_id_t)1100000)

/* Memory Access Segment definitions for Host and Target Devices */
#define OMPD_SEGMENT_UNSPECIFIED ((ompd_seg_t)0)

/* Kinds of device device address spaces */
#define OMPD_DEVICE_KIND_HOST ((ompd_device_t)1)
/* The range of non-standard implementation defined values */
#define OMPD_DEVICE_IMPL_LO ((ompd_device_t)1000000)
#define OMPD_DEVICE_IMPL_HI ((ompd_device_t)1100000)
#endif