comparison src/gpu/hsail/vm/hsailKernelArguments.hpp @ 14969:a6c144380ce7

HSAIL: added UseHSAILDeoptimization VM option for disabling HSAIL deopt support Contributed-by: Eric Caspole <eric.caspole@amd.com>
author Doug Simon <doug.simon@oracle.com>
date Fri, 04 Apr 2014 12:22:49 +0200
parents 3e9a960f0da1
children 06eedda53e14
comparison
equal deleted inserted replaced
14968:169caf662ac7 14969:a6c144380ce7
77 virtual void pushLong(jlong j) { 77 virtual void pushLong(jlong j) {
78 bool pushed = Hsail::_okra_push_long(_kernel, j); 78 bool pushed = Hsail::_okra_push_long(_kernel, j);
79 assert(pushed == true, "arg push failed"); 79 assert(pushed == true, "arg push failed");
80 } 80 }
81 virtual void pushTrailingArgs() { 81 virtual void pushTrailingArgs() {
82 // Last argument is the exception info block 82 if (UseHSAILDeoptimization) {
83 if (TraceGPUInteraction) { 83 // Last argument is the exception info block
84 tty->print_cr("[HSAIL] exception block=" PTR_FORMAT, _exceptionHolder); 84 if (TraceGPUInteraction) {
85 tty->print_cr("[HSAIL] exception block=" PTR_FORMAT, _exceptionHolder);
86 }
87 pushObject(_exceptionHolder);
85 } 88 }
86 pushObject(_exceptionHolder);
87 } 89 }
88 90
89 // For kernel arguments we don't pass the final int parameter 91 // For kernel arguments we don't pass the final int parameter
90 // since we use the HSAIL workitemid instruction in place of that int value 92 // since we use the HSAIL workitemid instruction in place of that int value
91 virtual void handleFinalIntParameter() { 93 virtual void handleFinalIntParameter() {