Mercurial > hg > graal-compiler
diff src/gpu/ptx/gpu_ptx.hpp @ 10577:9c7d9e2c8326
PTX kernel execution - no args or return value
author | Morris Meyer <morris.meyer@oracle.com> |
---|---|
date | Sat, 29 Jun 2013 21:29:34 -0400 |
parents | 7a3499bf5e2c |
children |
line wrap: on
line diff
--- a/src/gpu/ptx/gpu_ptx.hpp Sat Jun 29 11:40:52 2013 +0200 +++ b/src/gpu/ptx/gpu_ptx.hpp Sat Jun 29 21:29:34 2013 -0400 @@ -35,6 +35,7 @@ #endif static bool initialize_gpu(); static void * generate_kernel(unsigned char *code, int code_len, const char *name); + static bool execute_kernel(address kernel); private: typedef int (*cuda_cu_init_func_t)(unsigned int, int); @@ -45,7 +46,10 @@ typedef int (*cuda_cu_device_get_name_func_t)(char *, int, int); typedef int (*cuda_cu_device_get_func_t)(int *, int); typedef int (*cuda_cu_device_compute_capability_func_t)(int *, int *, int); - typedef int (*cuda_cu_launch_kernel_func_t)(int *, int *, int); + typedef int (*cuda_cu_launch_kernel_func_t)(void *, + unsigned int, unsigned int, unsigned int, + unsigned int, unsigned int, unsigned int, + unsigned int, void *, void **, void **); typedef int (*cuda_cu_module_get_function_func_t)(void *, void *, const char *); typedef int (*cuda_cu_module_load_data_ex_func_t)(void *, void *, unsigned int, int *, void **);