Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
10576:aee899c96b0b | 10577:9c7d9e2c8326 |
---|---|
33 #ifdef __APPLE__ | 33 #ifdef __APPLE__ |
34 static bool probe_linkage_apple(); | 34 static bool probe_linkage_apple(); |
35 #endif | 35 #endif |
36 static bool initialize_gpu(); | 36 static bool initialize_gpu(); |
37 static void * generate_kernel(unsigned char *code, int code_len, const char *name); | 37 static void * generate_kernel(unsigned char *code, int code_len, const char *name); |
38 static bool execute_kernel(address kernel); | |
38 | 39 |
39 private: | 40 private: |
40 typedef int (*cuda_cu_init_func_t)(unsigned int, int); | 41 typedef int (*cuda_cu_init_func_t)(unsigned int, int); |
41 typedef int (*cuda_cu_ctx_create_func_t)(void *, int, int); | 42 typedef int (*cuda_cu_ctx_create_func_t)(void *, int, int); |
42 typedef int (*cuda_cu_ctx_detach_func_t)(int *); | 43 typedef int (*cuda_cu_ctx_detach_func_t)(int *); |
43 typedef int (*cuda_cu_ctx_synchronize_func_t)(int *); | 44 typedef int (*cuda_cu_ctx_synchronize_func_t)(int *); |
44 typedef int (*cuda_cu_device_get_count_func_t)(int *); | 45 typedef int (*cuda_cu_device_get_count_func_t)(int *); |
45 typedef int (*cuda_cu_device_get_name_func_t)(char *, int, int); | 46 typedef int (*cuda_cu_device_get_name_func_t)(char *, int, int); |
46 typedef int (*cuda_cu_device_get_func_t)(int *, int); | 47 typedef int (*cuda_cu_device_get_func_t)(int *, int); |
47 typedef int (*cuda_cu_device_compute_capability_func_t)(int *, int *, int); | 48 typedef int (*cuda_cu_device_compute_capability_func_t)(int *, int *, int); |
48 typedef int (*cuda_cu_launch_kernel_func_t)(int *, int *, int); | 49 typedef int (*cuda_cu_launch_kernel_func_t)(void *, |
50 unsigned int, unsigned int, unsigned int, | |
51 unsigned int, unsigned int, unsigned int, | |
52 unsigned int, void *, void **, void **); | |
49 typedef int (*cuda_cu_module_get_function_func_t)(void *, void *, const char *); | 53 typedef int (*cuda_cu_module_get_function_func_t)(void *, void *, const char *); |
50 typedef int (*cuda_cu_module_load_data_ex_func_t)(void *, void *, unsigned int, int *, void **); | 54 typedef int (*cuda_cu_module_load_data_ex_func_t)(void *, void *, unsigned int, int *, void **); |
51 | 55 |
52 static cuda_cu_init_func_t _cuda_cu_init; | 56 static cuda_cu_init_func_t _cuda_cu_init; |
53 static cuda_cu_ctx_create_func_t _cuda_cu_ctx_create; | 57 static cuda_cu_ctx_create_func_t _cuda_cu_ctx_create; |