comparison src/os/bsd/vm/gpu_bsd.cpp @ 13888:51584f76462d

pulled Ptx and Hsail classes out of gpu class namespace
author Doug Simon <doug.simon@oracle.com>
date Thu, 06 Feb 2014 11:14:19 +0100
parents 49db2c1e3bee
children 66e3af78ea96
comparison
equal deleted inserted replaced
13887:f3e4f746e9c6 13888:51584f76462d
21 * questions. 21 * questions.
22 * 22 *
23 */ 23 */
24 24
25 #include "runtime/gpu.hpp" 25 #include "runtime/gpu.hpp"
26 #include "ptx/vm/gpu_ptx.hpp"
27 #include "hsail/vm/gpu_hsail.hpp"
26 #include "utilities/ostream.hpp" 28 #include "utilities/ostream.hpp"
27 29
28 jobject gpu::probe_gpus(JNIEnv* env) { 30 jobject gpu::probe_gpus(JNIEnv* env) {
29 #ifdef __APPLE__ 31 #ifdef __APPLE__
30 /* 32 /*
31 * Let the CUDA driver initialization be the gate to GPU for now, pending 33 * Let the CUDA driver initialization be the gate to GPU for now, pending
32 * a better detection solution for NVIDA PTX and AMD HSAIL. 34 * a better detection solution for NVIDA PTX and AMD HSAIL.
33 */ 35 */
34 if (gpu::Ptx::register_natives(env)) { 36 if (Ptx::register_natives(env)) {
35 if (TraceGPUInteraction) { 37 if (TraceGPUInteraction) {
36 tty->print_cr("Assuming NVidia/PTX support (APPLE)"); 38 tty->print_cr("Assuming NVidia/PTX support (APPLE)");
37 } 39 }
38 return env->NewStringUTF("PTX"); 40 return env->NewStringUTF("PTX");
39 } 41 }