~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/processor.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_PROCESSOR_H
8
 
#define HWLOC_PORT_SYS_PROCESSOR_H
9
 
 
10
 
/* Solaris */
11
 
#include <sys/procset.h>
12
 
typedef int processorid_t;
13
 
#define PBIND_NONE -1
14
 
#define PBIND_QUERY -2
15
 
 
16
 
extern int processor_bind(idtype_t idtype, id_t id, processorid_t processorid, processorid_t *obind);
17
 
 
18
 
/* AIX */
19
 
typedef short cpu_t;
20
 
#define BINDPROCESS 1
21
 
#define BINDTHREAD 2
22
 
#define PROCESSOR_CLASS_ANY ((cpu_t)(-1))
23
 
extern int bindprocessor(int What, int Who, cpu_t Where); 
24
 
 
25
 
extern cpu_t mycpu(void);
26
 
 
27
 
#endif /* HWLOC_PORT_SYS_PROCESSOR_H */