Mercurial > hg > truffle
comparison src/gpu/ptx/vm/gpu_ptx.hpp @ 11842:8d8f63069f58
PTX warp limiter to available GPU processors
author | Morris Meyer <morris.meyer@oracle.com> |
---|---|
date | Mon, 30 Sep 2013 13:03:47 -0400 |
parents | 365d8f385fb5 |
children | c7abc8411011 |
comparison
equal
deleted
inserted
replaced
11841:6157a71e0a36 | 11842:8d8f63069f58 |
---|---|
32 #define GRAAL_CUDA_SUCCESS 0 | 32 #define GRAAL_CUDA_SUCCESS 0 |
33 /**< Device shares a unified address space with the host */ | 33 /**< Device shares a unified address space with the host */ |
34 #define GRAAL_CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING 41 | 34 #define GRAAL_CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING 41 |
35 #define GRAAL_CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR 75 | 35 #define GRAAL_CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR 75 |
36 #define GRAAL_CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR 76 | 36 #define GRAAL_CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR 76 |
37 #define GRAAL_CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT 16 | |
37 #define GRAAL_CU_JIT_MAX_REGISTERS 0 | 38 #define GRAAL_CU_JIT_MAX_REGISTERS 0 |
38 #define GRAAL_CU_JIT_THREADS_PER_BLOCK 1 | 39 #define GRAAL_CU_JIT_THREADS_PER_BLOCK 1 |
39 #define GRAAL_CU_JIT_INFO_LOG_BUFFER 3 | 40 #define GRAAL_CU_JIT_INFO_LOG_BUFFER 3 |
40 #define GRAAL_CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES 4 | 41 #define GRAAL_CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES 4 |
41 #define GRAAL_CUDA_ERROR_NO_BINARY_FOR_GPU 209 | 42 #define GRAAL_CUDA_ERROR_NO_BINARY_FOR_GPU 209 |
71 friend class gpu; | 72 friend class gpu; |
72 | 73 |
73 protected: | 74 protected: |
74 static bool probe_linkage(); | 75 static bool probe_linkage(); |
75 static bool initialize_gpu(); | 76 static bool initialize_gpu(); |
77 static unsigned int total_cores(); | |
76 static void * generate_kernel(unsigned char *code, int code_len, const char *name); | 78 static void * generate_kernel(unsigned char *code, int code_len, const char *name); |
77 static bool execute_warp(int dimX, int dimY, int dimZ, address kernel, PTXKernelArguments & ka, JavaValue &ret); | 79 static bool execute_warp(int dimX, int dimY, int dimZ, address kernel, PTXKernelArguments & ka, JavaValue &ret); |
78 static bool execute_kernel(address kernel, PTXKernelArguments & ka, JavaValue &ret); | 80 static bool execute_kernel(address kernel, PTXKernelArguments & ka, JavaValue &ret); |
79 public: | 81 public: |
80 #if defined(__x86_64) || defined(AMD64) || defined(_M_AMD64) | 82 #if defined(__x86_64) || defined(AMD64) || defined(_M_AMD64) |