Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/gpu/ptx/gpu_ptx.cpp Thu Jun 27 22:00:18 2013 +0200 +++ b/src/gpu/ptx/gpu_ptx.cpp Thu Jun 27 19:22:42 2013 -0400 @@ -102,7 +102,7 @@ return status == 0; // CUDA_SUCCESS } -void gpu::Ptx::generate_kernel(unsigned char *code, int code_len, const char *name) { +void *gpu::Ptx::generate_kernel(unsigned char *code, int code_len, const char *name) { void *cu_module; const unsigned int jit_num_options = 3; @@ -134,6 +134,7 @@ if (TraceWarpLoading) { tty->print_cr("gpu_ptx::_cuda_cu_module_get_function(%s):%x %d", name, cu_function, status); } + return cu_function; }