Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/target-cpu/fragments/c-wrappers.in
ViewVC logotype

Diff of /branches/vis15/src/compiler/target-cpu/fragments/c-wrappers.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4446, Mon Aug 22 14:22:30 2016 UTC revision 4447, Mon Aug 22 16:38:37 2016 UTC
# Line 98  Line 98 
98  {  {
99      @PREFIX@::world *w = reinterpret_cast<@PREFIX@::world *>(wrld);      @PREFIX@::world *w = reinterpret_cast<@PREFIX@::world *>(wrld);
100      if (nw == 0)      if (nw == 0)
101          w->sched->numWorkers = w->sched->cpuInfo.numHWCores;          w->_sched->_numWorkers = w->_sched->_numHWCores;
102      else      else
103          w->sched->numWorkers = nw;          w->_sched->_numWorkers = nw;
104  }  }
105    
106  uint32_t @PREFIX@_get_num_workers (@PREFIX@_world_t *wrld)  uint32_t @PREFIX@_get_num_workers (@PREFIX@_world_t *wrld)
107  {  {
108      @PREFIX@::world *w = reinterpret_cast<@PREFIX@::world *>(wrld);      @PREFIX@::world *w = reinterpret_cast<@PREFIX@::world *>(wrld);
109      return w->sched->numWorkers;      return w->_sched->_numWorkers;
110  }  }
111    
112  #endif /* DIDEROT_TARGET_PARALLEL */  #endif /* DIDEROT_TARGET_PARALLEL */

Legend:
Removed from v.4446  
changed lines
  Added in v.4447

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0