root/opal/mca/hwloc/hwloc201/hwloc/include/private/solaris-chiptype.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright © 2009-2010 Oracle and/or its affiliates.  All rights reserved.
   3  *
   4  * Copyright © 2017 Inria.  All rights reserved.
   5  * $COPYRIGHT$
   6  *
   7  * Additional copyrights may follow
   8  *
   9  * $HEADER$
  10  */
  11 
  12 
  13 #ifdef HWLOC_INSIDE_PLUGIN
  14 /*
  15  * these declarations are internal only, they are not available to plugins
  16  * (functions below are internal static symbols).
  17  */
  18 #error This file should not be used in plugins
  19 #endif
  20 
  21 
  22 #ifndef HWLOC_PRIVATE_SOLARIS_CHIPTYPE_H
  23 #define HWLOC_PRIVATE_SOLARIS_CHIPTYPE_H
  24 
  25 struct hwloc_solaris_chip_info_s {
  26   char *model;
  27   char *type;
  28   /* L1i, L1d, L2, L3 */
  29 #define HWLOC_SOLARIS_CHIP_INFO_L1I 0
  30 #define HWLOC_SOLARIS_CHIP_INFO_L1D 1
  31 #define HWLOC_SOLARIS_CHIP_INFO_L2I 2
  32 #define HWLOC_SOLARIS_CHIP_INFO_L2D 3
  33 #define HWLOC_SOLARIS_CHIP_INFO_L3  4
  34   long cache_size[5]; /* cleared to -1 if we don't want of that cache */
  35   unsigned cache_linesize[5];
  36   unsigned cache_associativity[5];
  37   int l2_unified;
  38 };
  39 
  40 /* fills the structure with 0 on error */
  41 extern void hwloc_solaris_get_chip_info(struct hwloc_solaris_chip_info_s *info);
  42 
  43 #endif /* HWLOC_PRIVATE_SOLARIS_CHIPTYPE_H */

/* [<][>][^][v][top][bottom][index][help] */