| 339 | } |
| 340 | |
| 341 | size_t getMaxNumThreads() |
| 342 | { |
| 343 | size_t maxNumThreads = 0; |
| 344 | for (std::map<Device*,size_t>::iterator i=g_num_threads_map.begin(); i != g_num_threads_map.end(); i++) |
| 345 | maxNumThreads = max(maxNumThreads, (*i).second); |
| 346 | if (maxNumThreads == 0) |
| 347 | maxNumThreads = std::numeric_limits<size_t>::max(); |
| 348 | return maxNumThreads; |
| 349 | } |
| 350 | |
| 351 | size_t getMaxCacheSize() |
| 352 | { |
no test coverage detected