Mercurial > hg > graal-jvmci-8
comparison src/gpu/ptx/gpu_ptx.cpp @ 10563:7a3499bf5e2c
PTX kernel get_function return
author | Morris Meyer <morris.meyer@oracle.com> |
---|---|
date | Thu, 27 Jun 2013 19:22:42 -0400 |
parents | 62838eadbf56 |
children | a6632ef9c84d |
comparison
equal
deleted
inserted
replaced
10562:12d134c0aa8d | 10563:7a3499bf5e2c |
---|---|
100 } | 100 } |
101 | 101 |
102 return status == 0; // CUDA_SUCCESS | 102 return status == 0; // CUDA_SUCCESS |
103 } | 103 } |
104 | 104 |
105 void gpu::Ptx::generate_kernel(unsigned char *code, int code_len, const char *name) { | 105 void *gpu::Ptx::generate_kernel(unsigned char *code, int code_len, const char *name) { |
106 | 106 |
107 void *cu_module; | 107 void *cu_module; |
108 const unsigned int jit_num_options = 3; | 108 const unsigned int jit_num_options = 3; |
109 int *jit_options = new int[jit_num_options]; | 109 int *jit_options = new int[jit_num_options]; |
110 void **jit_option_values = new void *[jit_num_options]; | 110 void **jit_option_values = new void *[jit_num_options]; |
132 | 132 |
133 status = _cuda_cu_module_get_function(&cu_function, cu_module, name); | 133 status = _cuda_cu_module_get_function(&cu_function, cu_module, name); |
134 if (TraceWarpLoading) { | 134 if (TraceWarpLoading) { |
135 tty->print_cr("gpu_ptx::_cuda_cu_module_get_function(%s):%x %d", name, cu_function, status); | 135 tty->print_cr("gpu_ptx::_cuda_cu_module_get_function(%s):%x %d", name, cu_function, status); |
136 } | 136 } |
137 return cu_function; | |
137 } | 138 } |
138 | 139 |
139 | 140 |
140 #ifdef __APPLE__ | 141 #ifdef __APPLE__ |
141 bool gpu::Ptx::probe_linkage_apple() { | 142 bool gpu::Ptx::probe_linkage_apple() { |