comparison src/share/vm/runtime/gpu.hpp @ 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 b97e2515d392
children 66e3af78ea96
comparison
equal deleted inserted replaced
13887:f3e4f746e9c6 13888:51584f76462d
30 #include "utilities/array.hpp" 30 #include "utilities/array.hpp"
31 31
32 // Defines the interface to the graphics processor(s). 32 // Defines the interface to the graphics processor(s).
33 class gpu : AllStatic { 33 class gpu : AllStatic {
34 private: 34 private:
35 static int _initialized_gpus; 35 static int _initialized_gpus; // number of initialize GPU devices
36
37 // Notifies that a GPU device has been initialized.
38 static void initialized_gpu(const char* name);
39 36
40 public: 37 public:
38
39 // Notification of a GPU device that has been initialized.
40 static void initialized_gpu(const char* name);
41 41
42 // Gets a comma separated list of supported GPU architecture names. 42 // Gets a comma separated list of supported GPU architecture names.
43 static jobject probe_gpus(JNIEnv* env); 43 static jobject probe_gpus(JNIEnv* env);
44 44
45 // Gets the number of GPU devices that have been initialized.
45 static int initialized_gpus() { return _initialized_gpus; } 46 static int initialized_gpus() { return _initialized_gpus; }
46
47 # include "ptx/vm/gpu_ptx.hpp"
48 # include "hsail/vm/gpu_hsail.hpp"
49
50 }; 47 };
51 48
52 #endif // SHARE_VM_RUNTIME_GPU_HPP 49 #endif // SHARE_VM_RUNTIME_GPU_HPP