1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 12:45:18 +03:00
aports/testing/intel-compute-runtime/pthread-yield.patch
Dennis Krupenik 41a63b1a96 testing/intel-compute-runtime: new aport
Intel® Graphics Compute Runtime for oneAPI Level Zero and OpenCL™ Driver
https://github.com/intel/compute-runtime
2020-08-31 01:13:34 +00:00

22 lines
771 B
Diff

pthread_yield -> sched_yield
---
--- a/opencl/test/unit_test/os_interface/linux/drm_gem_close_worker_tests.cpp
+++ b/opencl/test/unit_test/os_interface/linux/drm_gem_close_worker_tests.cpp
@@ -121,7 +121,7 @@
//wait for worker to complete or deadCnt drops
while (!worker->isEmpty() && (deadCnt-- > 0))
- pthread_yield(); //yield to another threads
+ sched_yield(); //yield to another threads
worker->close(false);
@@ -142,7 +142,7 @@
//wait for worker to complete or deadCnt drops
while (!worker->isEmpty() && (deadCnt-- > 0))
- pthread_yield(); //yield to another threads
+ sched_yield(); //yield to another threads
//and check if GEM was closed
EXPECT_EQ(1, this->drmMock->gem_close_cnt.load());