Mercurial > hg > graal-compiler
diff src/gpu/ptx/gpu_ptx.cpp @ 10566:a6632ef9c84d
GPU generate_kernel return for Cuda function
author | Morris Meyer <morris.meyer@oracle.com> |
---|---|
date | Thu, 27 Jun 2013 19:57:43 -0400 |
parents | 7a3499bf5e2c |
children | 9c7d9e2c8326 |
line wrap: on
line diff
--- a/src/gpu/ptx/gpu_ptx.cpp Thu Jun 27 19:30:44 2013 -0400 +++ b/src/gpu/ptx/gpu_ptx.cpp Thu Jun 27 19:57:43 2013 -0400 @@ -55,9 +55,11 @@ } } -void gpu::generate_kernel(unsigned char *code, int code_len, const char *name) { +void * gpu::generate_kernel(unsigned char *code, int code_len, const char *name) { if (gpu::has_gpu_linkage()) { - gpu::Ptx::generate_kernel(code, code_len, name); + return (gpu::Ptx::generate_kernel(code, code_len, name)); + } else { + return NULL; } }