Mercurial > hg > graal-compiler
comparison src/gpu/ptx/vm/gpu_ptx.hpp @ 13624:220ed109bf77
initial code for calling PTX kernel code from Java with parameter marshaling and return value unmarshaling performed by a wrapper specified via manual graph construction
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 13 Jan 2014 22:32:27 +0100 |
parents | 1a7e7011a341 |
children | 27acedac70b7 |
comparison
equal
deleted
inserted
replaced
13623:c70dddf5ce4a | 13624:220ed109bf77 |
---|---|
101 typedef unsigned long long CUdeviceptr; | 101 typedef unsigned long long CUdeviceptr; |
102 #else | 102 #else |
103 typedef unsigned int CUdeviceptr; | 103 typedef unsigned int CUdeviceptr; |
104 #endif | 104 #endif |
105 | 105 |
106 typedef int CUdevice; /**< CUDA device */ | 106 typedef int CUdevice; /* CUDA device */ |
107 | |
108 static jlong execute_kernel_from_vm(JavaThread* thread, jlong kernel, jlong parametersAndReturnValueBuffer, jint parametersAndReturnValueBufferSize, int encodedReturnTypeSize); | |
107 | 109 |
108 private: | 110 private: |
109 typedef int (*cuda_cu_init_func_t)(unsigned int); | 111 typedef int (*cuda_cu_init_func_t)(unsigned int); |
110 typedef int (*cuda_cu_ctx_create_func_t)(void*, unsigned int, CUdevice); | 112 typedef int (*cuda_cu_ctx_create_func_t)(void*, unsigned int, CUdevice); |
111 typedef int (*cuda_cu_ctx_destroy_func_t)(void*); | 113 typedef int (*cuda_cu_ctx_destroy_func_t)(void*); |