Mercurial > hg > truffle
diff src/share/vm/runtime/gpu.hpp @ 11606:4f69a5189e77
Create runtime object based on GPUIL type newly added to gpu class; some code refactoring.
author | bharadwaj |
---|---|
date | Wed, 11 Sep 2013 17:02:40 -0400 |
parents | 49bb1bc983c6 |
children | 365d8f385fb5 |
line wrap: on
line diff
--- a/src/share/vm/runtime/gpu.hpp Wed Sep 11 21:04:24 2013 +0200 +++ b/src/share/vm/runtime/gpu.hpp Wed Sep 11 17:02:40 2013 -0400 @@ -36,12 +36,12 @@ class gpu: AllStatic { public: + + enum TargetGPUIL { NONE = 0, PTX = 1, HSAIL = 2}; static void init(void); static void probe_gpu(); - static void probe_linkage(); - static void initialize_gpu(); static void * generate_kernel(unsigned char *code, int code_len, const char *name); @@ -66,10 +66,19 @@ static bool has_gpu_linkage() { return _gpu_linkage; } + static void set_target_il_type(TargetGPUIL value) { + _targetIL = value; + } + + static enum gpu::TargetGPUIL get_target_il_type() { + return _targetIL; + } + protected: static bool _available; static bool _gpu_linkage; static bool _initialized; + static TargetGPUIL _targetIL; // Platform dependent stuff #ifdef TARGET_OS_FAMILY_linux