#include <GlobalGPUMgr.h>
Definition at line 30 of file GlobalGPUMgr.h.
 
◆ RunWithAffinity()
      
        
          | RunWithAffinity::RunWithAffinity  | 
          ( | 
          const bool  | 
          valid,  | 
        
        
           | 
           | 
          const int  | 
          tempCpu  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 20 of file GlobalGPUMgr.C.
   21   validCpu = valid && (tempCpu >= 0) && (tempCpu < CmiNumCores());
    24     current = CPU_ALLOC(CmiNumCores());
    25     temp    = CPU_ALLOC(CmiNumCores());
    26     size    = CPU_ALLOC_SIZE(CmiNumCores());
    28     CPU_ZERO_S(size, current);
    29     CPU_ZERO_S(size, temp);
    31     pthread_getaffinity_np(pthread_self(), size, current);
    33     CPU_SET_S(tempCpu, size, temp);
    34     pthread_setaffinity_np(pthread_self(), size, temp);
  
 
 
◆ ~RunWithAffinity()
      
        
          | RunWithAffinity::~RunWithAffinity  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 38 of file GlobalGPUMgr.C.
   40     pthread_setaffinity_np(pthread_self(), size, current);
  
 
 
◆ kCudaOffset
  
  
      
        
          | constexpr int RunWithAffinity::kCudaOffset = 0 | 
         
       
   | 
  
static   | 
  
 
 
◆ kNcclOffset
  
  
      
        
          | constexpr int RunWithAffinity::kNcclOffset = 2 | 
         
       
   | 
  
static   | 
  
 
 
◆ kNvshmemOffset
  
  
      
        
          | constexpr int RunWithAffinity::kNvshmemOffset = 1 | 
         
       
   | 
  
static   | 
  
 
 
The documentation for this class was generated from the following files: