Mercurial > hg > graal-compiler
comparison src/gpu/ptx/vm/gpu_ptx.hpp @ 11291:4a6b03a16808
Fix PTX test to prevent crash; trivial code cleanup
author | bharadwaj |
---|---|
date | Mon, 12 Aug 2013 13:12:14 -0400 |
parents | 1cd1f8ff70a1 |
children | 49bb1bc983c6 |
comparison
equal
deleted
inserted
replaced
11290:686d6d99352c | 11291:4a6b03a16808 |
---|---|
42 | 42 |
43 /** | 43 /** |
44 * End of array terminator for the extra parameter to | 44 * End of array terminator for the extra parameter to |
45 * ::cuLaunchKernel | 45 * ::cuLaunchKernel |
46 */ | 46 */ |
47 #define GRAAL_CU_LAUNCH_PARAM_END ((void*)0x00) | 47 #define GRAAL_CU_LAUNCH_PARAM_END ((void *) 0x00) |
48 | 48 |
49 /** | 49 /** |
50 * Indicator that the next value in the extra parameter to | 50 * Indicator that the next value in the extra parameter to |
51 * ::cuLaunchKernel will be a pointer to a buffer containing all kernel | 51 * ::cuLaunchKernel will be a pointer to a buffer containing all kernel |
52 * parameters used for launching kernel f. This buffer needs to | 52 * parameters used for launching kernel f. This buffer needs to |
53 * honor all alignment/padding requirements of the individual parameters. | 53 * honor all alignment/padding requirements of the individual parameters. |
54 * If ::GRAAL_CU_LAUNCH_PARAM_BUFFER_SIZE is not also specified in the | 54 * If ::GRAAL_CU_LAUNCH_PARAM_BUFFER_SIZE is not also specified in the |
55 * extra array, then ::GRAAL_CU_LAUNCH_PARAM_BUFFER_POINTER will have no | 55 * extra array, then ::GRAAL_CU_LAUNCH_PARAM_BUFFER_POINTER will have no |
56 * effect. | 56 * effect. |
57 */ | 57 */ |
58 #define GRAAL_CU_LAUNCH_PARAM_BUFFER_POINTER ((void*)0x01) | 58 #define GRAAL_CU_LAUNCH_PARAM_BUFFER_POINTER ((void *) 0x01) |
59 | 59 |
60 /** | 60 /** |
61 * Indicator that the next value in the extra parameter to | 61 * Indicator that the next value in the extra parameter to |
62 * ::cuLaunchKernel will be a pointer to a size_t which contains the | 62 * ::cuLaunchKernel will be a pointer to a size_t which contains the |
63 * size of the buffer specified with ::GRAAL_CU_LAUNCH_PARAM_BUFFER_POINTER. | 63 * size of the buffer specified with ::GRAAL_CU_LAUNCH_PARAM_BUFFER_POINTER. |
64 * It is required that ::GRAAL_CU_LAUNCH_PARAM_BUFFER_POINTER also be specified | 64 * It is required that ::GRAAL_CU_LAUNCH_PARAM_BUFFER_POINTER also be specified |
65 * in the extra array if the value associated with | 65 * in the extra array if the value associated with |
66 * ::GRAAL_CU_LAUNCH_PARAM_BUFFER_SIZE is not zero. | 66 * ::GRAAL_CU_LAUNCH_PARAM_BUFFER_SIZE is not zero. |
67 */ | 67 */ |
68 #define GRAAL_CU_LAUNCH_PARAM_BUFFER_SIZE ((void*)0x02) | 68 #define GRAAL_CU_LAUNCH_PARAM_BUFFER_SIZE ((void *) 0x02) |
69 | 69 |
70 class Ptx { | 70 class Ptx { |
71 friend class gpu; | 71 friend class gpu; |
72 | 72 |
73 protected: | 73 protected: |