Another slow-hash improvement
This commit is contained in:
@@ -110,6 +110,8 @@ typedef uint32_t uint; // we need to get rid of this sooner or later, for consis
|
||||
|
||||
#define HCBUFSIZ 0x50000 // general large space buffer size in case the size is unknown at compile-time
|
||||
|
||||
#define EXPECTED_ITERATIONS 10000
|
||||
|
||||
/**
|
||||
* functions
|
||||
*/
|
||||
|
||||
@@ -991,9 +991,9 @@ struct __hc_device_param
|
||||
|
||||
// workaround cpu spinning
|
||||
|
||||
double exec_us_prev1;
|
||||
double exec_us_prev2;
|
||||
double exec_us_prev3;
|
||||
double exec_us_prev1[EXPECTED_ITERATIONS];
|
||||
double exec_us_prev2[EXPECTED_ITERATIONS];
|
||||
double exec_us_prev3[EXPECTED_ITERATIONS];
|
||||
|
||||
// this is "current" speed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user