mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
Time opencl work from start of queueing a kernel till it's flushed when calculating dynamic intensity.
This commit is contained in:
parent
5c7e03084a
commit
bf427de3ac
@ -1355,7 +1355,6 @@ static int64_t opencl_scanhash(struct thr_info *thr, struct work *work,
|
||||
int64_t hashes;
|
||||
|
||||
/* This finish flushes the readbuffer set with CL_FALSE later */
|
||||
gettimeofday(&gpu->tv_gpustart, NULL);
|
||||
clFinish(clState->commandQueue);
|
||||
gettimeofday(&gpu->tv_gpuend, NULL);
|
||||
|
||||
@ -1411,6 +1410,8 @@ static int64_t opencl_scanhash(struct thr_info *thr, struct work *work,
|
||||
clFinish(clState->commandQueue);
|
||||
}
|
||||
|
||||
gettimeofday(&gpu->tv_gpustart, NULL);
|
||||
|
||||
if (clState->goffset) {
|
||||
size_t global_work_offset[1];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user