~ubuntu-branches/ubuntu/vivid/mpich/vivid-proposed

« back to all changes in this revision

Viewing changes to src/pm/hydra/tools/topo/hwloc/hwloc/tests/ports/include/sys/mpctl.h

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2014-04-01 20:24:20 UTC
  • mfrom: (5.2.4 sid)
  • Revision ID: package-import@ubuntu.com-20140401202420-t5ey1ia2klt5dkq3
Tags: 3.1-4
* [c3e3398] Disable test_primitives, which is unreliable on some platforms.
            (Closes: #743047)
* [265a699] Add minimal autotest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright © 2009 inria.  All rights reserved.
3
 
 * Copyright © 2009 Université Bordeaux 1
4
 
 * See COPYING in top-level directory.
5
 
 */
6
 
 
7
 
#ifndef HWLOC_PORT_SYS_MPCTL_H
8
 
#define HWLOC_PORT_SYS_MPCTL_H
9
 
 
10
 
typedef int spu_t, ldom_t, pthread_spu_t, pthread_ldom_t;
11
 
 
12
 
typedef enum mpc_request {
13
 
  MPC_GETNUMSPUS,
14
 
  MPC_GETFIRSTSPU,
15
 
  MPC_GETNEXTSPU,
16
 
 
17
 
  MPC_GETNUMSPUS_SYS,
18
 
  MPC_GETFIRSTSPU_SYS,
19
 
  MPC_GETNEXTSPU_SYS,
20
 
 
21
 
  MPC_GETCURRENTSTSPU,
22
 
  MPC_SETPROCESS,
23
 
  MPC_SETPROCESS_FORCE,
24
 
  MPC_SETLWP,
25
 
  MPC_SETLWP_FORCE,
26
 
  MPC_SETLWP_UP,
27
 
 
28
 
  MPC_SETLDOM,
29
 
  MPC_SETLWPLDOM,
30
 
 
31
 
  MPC_GETNUMLDOMS,
32
 
  MPC_GETFIRSTLDOM,
33
 
  MPC_GETNEXTLDOM,
34
 
  MPC_GETNUMLDOMS_SYS,
35
 
  MPC_GETFIRSTLDOM_SYS,
36
 
  MPC_GETNEXTLDOM_SYS,
37
 
 
38
 
  MPC_SPUTOLDOM,
39
 
  MPC_LDOMSPUS,
40
 
  MPC_LDOMSPUS_SYS,
41
 
 
42
 
  MPC_GETPROCESS_BINDVALUE,
43
 
  MPC_GETLWP_BINDVALUE
44
 
} mpc_request_t;
45
 
 
46
 
#define MPC_SPUFLOAT 0
47
 
#define MPC_LDOMFLOAT 1
48
 
#define MPC_SELFPID 2
49
 
#define MPC_SELFLWPPID 3
50
 
 
51
 
extern int mpctl(mpc_request_t, spu_t, ...);
52
 
 
53
 
#define _SC_CCNUMA_SUPPORT 0
54
 
#define _SC_PSET_SUPPORT 1
55
 
 
56
 
int pthread_processor_bind_np(int request, pthread_spu_t *answer, pthread_spu_t spu, pthread_t tid);
57
 
 
58
 
int pthread_ldom_bind_np(pthread_ldom_t *answer, pthread_ldom_t ldom, pthread_t tid);
59
 
 
60
 
#define PTHREAD_SELFTID_NP 0
61
 
#define PTHREAD_LDOMFLOAT_NP 0
62
 
#define PTHREAD_SPUFLOAT_NP 0
63
 
 
64
 
#define PTHREAD_BIND_ADVISORY_NP 0
65
 
#define PTHREAD_BIND_FORCED_NP 1
66
 
 
67
 
#endif /* HWLOC_PORT_SYS_MPCTL_H */