Merge trunk version 204345 into gupc branch.
[official-gcc.git] / libgupc / smp / upc_affinity.h
blob01b2a7b055fb3c09140e40a55bd3325adda6c1c1
1 /* Copyright (C) 2008-2013 Free Software Foundation, Inc.
2 This file is part of the UPC runtime library.
3 Written by Gary Funck <gary@intrepid.com>
4 and Nenad Vukicevic <nenad@intrepid.com>
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
11 any later version.
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 Under Section 7 of GPL version 3, you are granted additional
19 permissions described in the GCC Runtime Library Exception, version
20 3.1, as published by the Free Software Foundation.
22 You should have received a copy of the GNU General Public License and
23 a copy of the GCC Runtime Library Exception along with this program;
24 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
25 <http://www.gnu.org/licenses/>. */
28 #ifndef _UPC_AFFINITY_H_
29 #define _UPC_AFFINITY_H_
31 extern void __upc_affinity_cpu_avoid_free (const upc_cpu_avoid_p);
32 extern upc_cpu_avoid_p __upc_affinity_cpu_avoid_new (void);
33 extern void __upc_affinity_cpu_avoid_set (const int, const upc_cpu_avoid_p);
34 extern int __upc_affinity_init (const upc_info_p, const upc_cpu_avoid_p,
35 const char **err_msg);
36 extern void __upc_affinity_set (const upc_info_p, const int);
37 extern int __upc_affinity_supported (void);
39 #endif /* !_UPC_AFFINITY_H_ */