Skip to content

Commit 69a0b12

Browse files
committed
dev-libs/rocclr-4.3.0: Fix build of dev-util/hip-4.3.0 with dev-util/opencl-headers-2021.06.30
See-also: https://bugs.gentoo.org/790164 See-also: ROCm/ROCclr#25 See-also: KhronosGroup/OpenCL-Headers#145
1 parent d3f5990 commit 69a0b12

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
From 8243fe4ca68ab54306cd1a218ff13c20eaf85551 Mon Sep 17 00:00:00 2001
2+
From: Dennis Schridde <[email protected]>
3+
Date: Mon, 6 Sep 2021 12:07:47 +0200
4+
Subject: [PATCH] Fix OpenCL headers 2021.04.29 compatibility
5+
6+
OpenCL headers 2021.04.29 moved `CL_COMMAND_GL_FENCE_SYNC_OBJECT_KHR` into
7+
a different header. (See issue referenced below for details.)
8+
9+
See-also: https://github.com/KhronosGroup/OpenCL-Headers/issues/145
10+
See-also: https://bugs.gentoo.org/790164
11+
---
12+
platform/command.hpp | 3 ++-
13+
1 file changed, 2 insertions(+), 1 deletion(-)
14+
15+
diff --git a/platform/command.hpp b/platform/command.hpp
16+
index 47bc74ac..838737a5 100644
17+
--- a/platform/command.hpp
18+
+++ b/platform/command.hpp
19+
@@ -44,7 +44,8 @@
20+
#include "platform/activity.hpp"
21+
#include "platform/command_utils.hpp"
22+
23+
-#include "CL/cl_ext.h"
24+
+#include <CL/cl_ext.h>
25+
+#include <CL/cl_gl.h>
26+
27+
#include <algorithm>
28+
#include <atomic>
29+
--
30+
2.33.0
31+

0 commit comments

Comments
 (0)