Lines 1-8
Link Here
|
1 |
--- src/cl_event.c.orig 2015-02-03 15:00:21.865295000 +0100 |
1 |
--- src/cl_event.c.orig 2015-09-24 02:49:06 UTC |
2 |
+++ src/cl_event.c 2015-02-03 15:00:30.759495000 +0100 |
2 |
+++ src/cl_event.c |
3 |
@@ -28,7 +28,7 @@ |
3 |
@@ -27,8 +27,9 @@ |
|
|
4 |
|
4 |
#include <assert.h> |
5 |
#include <assert.h> |
5 |
#include <stdio.h> |
6 |
#include <stdio.h> |
|
|
7 |
+#include <time.h> |
6 |
|
8 |
|
7 |
-inline cl_bool |
9 |
-inline cl_bool |
8 |
+static inline cl_bool |
10 |
+static inline cl_bool |
Lines 9-11
Link Here
|
9 |
cl_event_is_gpu_command_type(cl_command_type type) |
11 |
cl_event_is_gpu_command_type(cl_command_type type) |
10 |
{ |
12 |
{ |
11 |
switch(type) { |
13 |
switch(type) { |
|
|
14 |
@@ -617,7 +618,7 @@ cl_ulong cl_event_get_cpu_timestamp(cl_u |
15 |
{ |
16 |
struct timespec ts; |
17 |
|
18 |
- if(clock_gettime(CLOCK_MONOTONIC_RAW,&ts) != 0){ |
19 |
+ if(clock_gettime(CLOCK_MONOTONIC,&ts) != 0){ |
20 |
printf("CPU Timmer error\n"); |
21 |
return CL_FALSE; |
22 |
} |