comparison src/share/vm/graal/graalCompilerToGPU.cpp @ 11283:1cd1f8ff70a1

CR-20: PTX kernel invocation with arguments - from Bharadwaj
author Morris Meyer <morris.meyer@oracle.com>
date Sat, 10 Aug 2013 14:38:30 -0400
parents d55f24eac4b1
children 4a6b03a16808
comparison
equal deleted inserted replaced
11282:12661a449226 11283:1cd1f8ff70a1
89 89
90 // start value is the kernel 90 // start value is the kernel
91 jlong startValue = HotSpotInstalledCode::start(hotspotInstalledCode); 91 jlong startValue = HotSpotInstalledCode::start(hotspotInstalledCode);
92 92
93 // JavaCalls::call(&result, mh, &jca, CHECK_NULL); 93 // JavaCalls::call(&result, mh, &jca, CHECK_NULL);
94 tty->print_cr("executeExternalMethodVarargs: start: %x", (address)startValue); 94 // tty->print_cr("executeExternalMethodVarargs: start: %x", (address)startValue);
95 gpu::execute_kernel((address)startValue); 95
96 if (!gpu::execute_kernel((address)startValue, &jca)) {
97 return NULL;
98 }
96 99
97 if (jap.get_ret_type() == T_VOID) { 100 if (jap.get_ret_type() == T_VOID) {
98 return NULL; 101 return NULL;
99 } else if (jap.get_ret_type() == T_OBJECT || jap.get_ret_type() == T_ARRAY) { 102 } else if (jap.get_ret_type() == T_OBJECT || jap.get_ret_type() == T_ARRAY) {
100 return JNIHandles::make_local((oop) result.get_jobject()); 103 return JNIHandles::make_local((oop) result.get_jobject());