comparison src/share/vm/runtime/gpu.hpp @ 12743:f1a55428a8d7

more HSAIL support in the C++ layer for executing HSAIL code on the simulator Contributed-by: Eric Caspole <eric.caspole@amd.com>
author Doug Simon <doug.simon@oracle.com>
date Sun, 10 Nov 2013 13:18:09 +0100
parents 8d8f63069f58
children 49db2c1e3bee
comparison
equal deleted inserted replaced
12742:40924dbc623b 12743:f1a55428a8d7
51 static bool execute_warp(int dimX, int dimY, int dimZ, 51 static bool execute_warp(int dimX, int dimY, int dimZ,
52 address kernel, PTXKernelArguments & ptxka, JavaValue & ret); 52 address kernel, PTXKernelArguments & ptxka, JavaValue & ret);
53 53
54 static bool execute_kernel(address kernel, PTXKernelArguments & ptxka, JavaValue & ret); 54 static bool execute_kernel(address kernel, PTXKernelArguments & ptxka, JavaValue & ret);
55 55
56 // No return value from HSAIL kernels
57 static bool execute_kernel_void_1d(address kernel, int dimX, jobject args, methodHandle& mh);
58
56 static void set_available(bool value) { 59 static void set_available(bool value) {
57 _available = value; 60 _available = value;
58 } 61 }
59 62
60 static bool is_available() { return _available; } 63 static bool is_available() { return _available; }
90 # include "gpu_linux.hpp" 93 # include "gpu_linux.hpp"
91 #endif 94 #endif
92 #ifdef TARGET_OS_FAMILY_solaris 95 #ifdef TARGET_OS_FAMILY_solaris
93 #endif 96 #endif
94 #ifdef TARGET_OS_FAMILY_windows 97 #ifdef TARGET_OS_FAMILY_windows
98 # include "gpu_windows.hpp"
95 #endif 99 #endif
96 #ifdef TARGET_OS_FAMILY_bsd 100 #ifdef TARGET_OS_FAMILY_bsd
97 # include "gpu_bsd.hpp" 101 # include "gpu_bsd.hpp"
98 #endif 102 #endif
99 103
100 public: 104 public:
101 # include "ptx/vm/gpu_ptx.hpp" 105 # include "ptx/vm/gpu_ptx.hpp"
106 # include "hsail/vm/gpu_hsail.hpp"
102 107
103 }; 108 };
104 109
105 110
106 #endif // SHARE_VM_RUNTIME_GPU_HPP 111 #endif // SHARE_VM_RUNTIME_GPU_HPP