-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ugly/compute-runtime updated patches
- Loading branch information
Showing
9 changed files
with
150 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff -Nurw compute-runtime-20.08.15750/unit_tests/linux/mock_os_layer.h src/compute-runtime-20.08.15750/unit_tests/linux/mock_os_layer.h | ||
--- compute-runtime-20.08.15750/unit_tests/linux/mock_os_layer.h 2020-03-04 16:29:18.498605132 +0000 | ||
+++ src/compute-runtime-20.08.15750/unit_tests/linux/mock_os_layer.h 2020-03-04 16:29:31.308605717 +0000 | ||
@@ -20,7 +20,7 @@ | ||
|
||
extern "C" { | ||
int open(const char *pathname, int flags, ...); | ||
-int ioctl(int fd, unsigned long int request, ...) throw(); | ||
+int ioctl(int fd, int request, ...); | ||
} | ||
|
||
extern int (*c_open)(const char *pathname, int flags, ...); | ||
diff -Nurw compute-runtime-20.08.15750/core/os_interface/linux/sys_calls_linux.cpp src/compute-runtime-20.08.15750/core/os_interface/linux/sys_calls_linux.cpp | ||
--- compute-runtime-20.08.15750/core/os_interface/linux/sys_calls_linux.cpp 2020-03-04 19:47:02.252480862 +0000 | ||
+++ src/compute-runtime-20.08.15750/core/os_interface/linux/sys_calls_linux.cpp 2020-03-04 19:47:20.399148357 +0000 | ||
@@ -20,7 +20,7 @@ | ||
return ::open(file, flags); | ||
} | ||
int ioctl(int fileDescriptor, unsigned long int request, void *arg) { | ||
- return ::ioctl(fileDescriptor, request, arg); | ||
+ return ::ioctl(fileDescriptor, (int) request, arg); | ||
} | ||
} // namespace SysCalls | ||
} // namespace NEO |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff -Nurw compute-runtime-20.08.15750/core/os_interface/linux/os_library_linux.cpp src/compute-runtime-20.08.15750/core/os_interface/linux/os_library_linux.cpp | ||
--- compute-runtime-20.08.15750/core/os_interface/linux/os_library_linux.cpp 2020-03-04 16:06:31.458542632 +0000 | ||
+++ src/compute-runtime-20.08.15750/core/os_interface/linux/os_library_linux.cpp 2020-03-04 16:07:02.031877363 +0000 | ||
@@ -30,7 +30,7 @@ | ||
this->handle = dlopen(0, RTLD_LAZY); | ||
} else { | ||
#ifdef SANITIZER_BUILD | ||
- constexpr auto dlopenFlag = RTLD_LAZY; | ||
+ constexpr auto dlopenFlag = RTLD_LAZY | RTLD_GLOBAL; | ||
#else | ||
constexpr auto dlopenFlag = RTLD_LAZY | RTLD_DEEPBIND; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff -Nurw compute-runtime-20.08.15750/unit_tests/os_interface/linux/drm_gem_close_worker_tests.cpp src/compute-runtime-20.08.15750/unit_tests/os_interface/linux/drm_gem_close_worker_tests.cpp | ||
--- compute-runtime-20.08.15750/unit_tests/os_interface/linux/drm_gem_close_worker_tests.cpp 2020-03-04 19:49:52.062488625 +0000 | ||
+++ src/compute-runtime-20.08.15750/unit_tests/os_interface/linux/drm_gem_close_worker_tests.cpp 2020-03-04 19:50:21.399156633 +0000 | ||
@@ -120,7 +120,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); | ||
|
||
@@ -141,7 +141,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()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
diff -Nurw compute-runtime-20.08.15750/unit_tests/built_ins/built_in_kernels_tests.cpp src/compute-runtime-20.08.15750/unit_tests/built_ins/built_in_kernels_tests.cpp | ||
--- compute-runtime-20.08.15750/unit_tests/built_ins/built_in_kernels_tests.cpp 2020-03-04 19:51:20.502492668 +0000 | ||
+++ src/compute-runtime-20.08.15750/unit_tests/built_ins/built_in_kernels_tests.cpp 2020-03-04 19:51:41.509160296 +0000 | ||
@@ -6,7 +6,7 @@ | ||
*/ | ||
|
||
#include "runtime/builtin_kernels_simulation/opencl_c.h" | ||
- | ||
+#undef select | ||
#include "gtest/gtest.h" | ||
|
||
namespace BuiltinKernelsSimulation { | ||
diff -Nurw compute-runtime-20.08.15750/unit_tests/command_queue/get_size_required_buffer_tests.cpp src/compute-runtime-20.08.15750/unit_tests/command_queue/get_size_required_buffer_tests.cpp | ||
--- compute-runtime-20.08.15750/unit_tests/command_queue/get_size_required_buffer_tests.cpp 2020-03-04 19:51:20.505826001 +0000 | ||
+++ src/compute-runtime-20.08.15750/unit_tests/command_queue/get_size_required_buffer_tests.cpp 2020-03-04 19:52:01.999161233 +0000 | ||
@@ -14,6 +14,7 @@ | ||
#include "runtime/event/event.h" | ||
#include "runtime/helpers/hardware_commands_helper.h" | ||
#include "runtime/kernel/kernel.h" | ||
+#undef select | ||
#include "test.h" | ||
#include "unit_tests/command_queue/command_enqueue_fixture.h" | ||
#include "unit_tests/command_queue/enqueue_fixture.h" | ||
diff -Nurw compute-runtime-20.08.15750/unit_tests/execution_model/enqueue_execution_model_kernel_tests.cpp src/compute-runtime-20.08.15750/unit_tests/execution_model/enqueue_execution_model_kernel_tests.cpp | ||
--- compute-runtime-20.08.15750/unit_tests/execution_model/enqueue_execution_model_kernel_tests.cpp 2020-03-04 19:51:20.509159335 +0000 | ||
+++ src/compute-runtime-20.08.15750/unit_tests/execution_model/enqueue_execution_model_kernel_tests.cpp 2020-03-04 19:52:41.835829721 +0000 | ||
@@ -16,6 +16,7 @@ | ||
#include "runtime/event/user_event.h" | ||
#include "runtime/helpers/per_thread_data.h" | ||
#include "runtime/kernel/kernel.h" | ||
+#undef select | ||
#include "unit_tests/fixtures/device_host_queue_fixture.h" | ||
#include "unit_tests/fixtures/execution_model_fixture.h" | ||
#include "unit_tests/helpers/gtest_helpers.h" | ||
diff -Nurw compute-runtime-20.08.15750/unit_tests/profiling/profiling_tests.cpp src/compute-runtime-20.08.15750/unit_tests/profiling/profiling_tests.cpp | ||
--- compute-runtime-20.08.15750/unit_tests/profiling/profiling_tests.cpp 2020-03-04 19:51:20.529159336 +0000 | ||
+++ src/compute-runtime-20.08.15750/unit_tests/profiling/profiling_tests.cpp 2020-03-04 19:52:59.095830510 +0000 | ||
@@ -15,6 +15,7 @@ | ||
#include "runtime/command_queue/enqueue_marker.h" | ||
#include "runtime/command_queue/enqueue_migrate_mem_objects.h" | ||
#include "runtime/helpers/dispatch_info.h" | ||
+#undef select | ||
#include "test.h" | ||
#include "unit_tests/command_queue/command_enqueue_fixture.h" | ||
#include "unit_tests/event/event_fixture.h" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters