use clflush replaces clfinish

This commit is contained in:
yao
2013-04-02 14:41:02 +08:00
parent 2a1cf23fab
commit f3254b28f2
4 changed files with 18 additions and 6 deletions

View File

@@ -375,6 +375,7 @@ struct name##_test: Runnable { \
while (!TestSystem::instance().stop()) { \
TestSystem::instance().gpuOn()
#define GPU_OFF \
ocl::finish(); \
TestSystem::instance().gpuOff(); \
} TestSystem::instance().gpuComplete()
@@ -388,4 +389,5 @@ struct name##_test: Runnable { \
#define WARMUP_ON \
while (!TestSystem::instance().warmupStop()) {
#define WARMUP_OFF \
ocl::finish(); \
} TestSystem::instance().warmupComplete()