comparison src/share/vm/runtime/gpu.cpp @ 10879:d55f24eac4b1

PTX support for Linux
author Morris Meyer <morris.meyer@oracle.com>
date Thu, 25 Jul 2013 22:15:30 -0400
parents 147162b27799
children 4f69a5189e77
comparison
equal deleted inserted replaced
10878:d9fcc82766da 10879:d55f24eac4b1
22 * 22 *
23 */ 23 */
24 24
25 #include "precompiled.hpp" 25 #include "precompiled.hpp"
26 #include "runtime/gpu.hpp" 26 #include "runtime/gpu.hpp"
27 #include "ptx/gpu_ptx.hpp"
28 27
29 bool gpu::_available = false; // does the hardware exist? 28 bool gpu::_available = false; // does the hardware exist?
30 bool gpu::_gpu_linkage = false; // is the driver library to access the GPU installed 29 bool gpu::_gpu_linkage = false; // is the driver library to access the GPU installed
31 bool gpu::_initialized = false; // is the GPU defvice initialized 30 bool gpu::_initialized = false; // is the GPU device initialized
32 31
33 void gpu::init() { 32 void gpu::init() {
34 #ifdef TARGET_OS_FAMILY_bsd 33 #if defined(TARGET_OS_FAMILY_bsd) || defined(TARGET_OS_FAMILY_linux)
35 gpu::probe_gpu(); 34 gpu::probe_gpu();
36 #endif 35 #endif
37 // need multi-gpu TARGET ifdef 36 // need multi-gpu TARGET ifdef
38 gpu::probe_linkage(); 37 gpu::probe_linkage();
39 } 38 }
40