Mercurial > hg > truffle
comparison src/share/vm/runtime/gpu.cpp @ 11842:8d8f63069f58
PTX warp limiter to available GPU processors
author | Morris Meyer <morris.meyer@oracle.com> |
---|---|
date | Mon, 30 Sep 2013 13:03:47 -0400 |
parents | 365d8f385fb5 |
children | f1a55428a8d7 |
comparison
equal
deleted
inserted
replaced
11841:6157a71e0a36 | 11842:8d8f63069f58 |
---|---|
79 // Add kernel execution functionality of other GPUs here | 79 // Add kernel execution functionality of other GPUs here |
80 } | 80 } |
81 return false; | 81 return false; |
82 } | 82 } |
83 | 83 |
84 int gpu::available_processors() { | |
85 if (gpu::has_gpu_linkage()) { | |
86 if (gpu::get_target_il_type() == gpu::PTX) { | |
87 return (gpu::Ptx::total_cores()); | |
88 } | |
89 // Add kernel execution functionality of other GPUs here | |
90 } | |
91 return 0; | |
92 } | |
93 |