-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d3d208
commit ef2588e
Showing
11 changed files
with
149 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
**/*.eopkg | ||
/common | ||
Makefile* | ||
llvm |
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
30 changes: 30 additions & 0 deletions
30
rocm-hip/files/0001-Use-installed-rocclr-if-available.patch
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,30 @@ | ||
From 78c755d2bd32930a322e4c3b68be6e8ceae390f5 Mon Sep 17 00:00:00 2001 | ||
From: Jeremy Newton <[email protected]> | ||
Date: Wed, 4 May 2022 09:23:43 -0400 | ||
Subject: [PATCH] Use installed rocclr if available | ||
|
||
--- | ||
src/cmake/FindROCclr.cmake | 6 ++++++ | ||
1 file changed, 6 insertions(+) | ||
|
||
diff --git a/src/cmake/FindROCclr.cmake b/src/cmake/FindROCclr.cmake | ||
index b9ff2b1c..40c4d587 100644 | ||
--- a/src/cmake/FindROCclr.cmake | ||
+++ b/src/cmake/FindROCclr.cmake | ||
@@ -18,7 +18,13 @@ | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
# THE SOFTWARE. | ||
|
||
+find_package(ROCCLR NAMES ROCclr) | ||
+ | ||
if(ROCCLR_FOUND) | ||
+ message(STATUS "Using rocclr from ${ROCCLR_LIB_INSTALL_DIR}") | ||
+ link_directories(PUBLIC ${ROCCLR_LIB_INSTALL_DIR}) | ||
+ include_directories(${ROCCLR_INCLUDE_DIRS}) | ||
+ add_definitions(${ROCCLR_COMPILE_DEFINITIONS}) | ||
return() | ||
endif() | ||
|
||
-- | ||
2.34.1 | ||
|
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,28 @@ | ||
From cd50df60787f98847a27fb223dc13d73613a17fa Mon Sep 17 00:00:00 2001 | ||
From: Jeremy Newton <[email protected]> | ||
Date: Sat, 7 May 2022 00:03:48 -0400 | ||
Subject: [PATCH 2/2] Fix CL icd header include | ||
|
||
Use CL public headers, not the the private header in the ICD loader source. | ||
|
||
Fixes issues when building with ROCclr standalone package. | ||
--- | ||
src/fixme.cpp | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/fixme.cpp b/src/fixme.cpp | ||
index 3b6b55bc..9f5d4cc4 100644 | ||
--- a/src/fixme.cpp | ||
+++ b/src/fixme.cpp | ||
@@ -19,7 +19,7 @@ | ||
THE SOFTWARE. */ | ||
|
||
#include "vdi_common.hpp" | ||
-#include <icd/loader/icd_dispatch.h> | ||
+#include <CL/cl_icd.h> | ||
|
||
cl_icd_dispatch amd::ICDDispatchedObject::icdVendorDispatch_[] = {0}; | ||
amd::PlatformIDS amd::PlatformID::Platform = {amd::ICDDispatchedObject::icdVendorDispatch_}; | ||
-- | ||
2.34.1 | ||
|
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
0001-Revert-hip-Fix-and-install-cmake-targets-for-hip-pac.patch | ||
0002-Revert-hip-Switch-to-component-based-packaging.patch | ||
0002-Fix-CL-icd-header-include.patch |
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
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 |
---|---|---|
@@ -1,39 +1,76 @@ | ||
<PISI> | ||
<Source> | ||
<Name>rocm-opencl</Name> | ||
<Name>rocm</Name> | ||
<Packager> | ||
<Name>Jacek Jagosz</Name> | ||
<Email>[email protected]</Email> | ||
</Packager> | ||
<License>MIT</License> | ||
<PartOf>programming.devel</PartOf> | ||
<Summary xml:lang="en">OpenCL 2.2 compatible language runtime</Summary> | ||
<Description xml:lang="en">OpenCL 2.2 compatible language runtime | ||
<Summary xml:lang="en">OpenCL 2.2 compatible language runtime for AMD Radeon GPUs</Summary> | ||
<Description xml:lang="en">OpenCL 2.2 compatible language runtime for AMD Radeon GPUs | ||
</Description> | ||
<Archive type="binary" sha1sum="79eb0752a961b8e0d15c77d298c97498fbc89c5a">https://getsol.us/sources/README.Solus</Archive> | ||
</Source> | ||
<Package> | ||
<Name>rocm-opencl</Name> | ||
<Summary xml:lang="en">OpenCL 2.2 compatible language runtime</Summary> | ||
<Description xml:lang="en">OpenCL 2.2 compatible language runtime | ||
<Summary xml:lang="en">OpenCL 2.2 compatible language runtime for AMD Radeon GPUs</Summary> | ||
<Description xml:lang="en">OpenCL 2.2 compatible language runtime for AMD Radeon GPUs | ||
</Description> | ||
<PartOf>programming.devel</PartOf> | ||
<RuntimeDependencies> | ||
<Dependency release="1">rocm-rocclr</Dependency> | ||
</RuntimeDependencies> | ||
<Files> | ||
<Path fileType="executable">/usr/bin/rocm-clinfo</Path> | ||
<Path fileType="library">/usr/lib64/librocclr.so.5.1</Path> | ||
<Path fileType="library">/usr/lib64/librocclr.so.5.1.0</Path> | ||
<Path fileType="library">/usr/lib64/libamdocl64.so</Path> | ||
<Path fileType="library">/usr/lib64/libcltrace.so</Path> | ||
<Path fileType="data">/usr/share/OpenCL/vendors/amdocl64.icd</Path> | ||
<Path fileType="doc">/usr/share/doc/rocm-opencl/LICENSE.txt</Path> | ||
</Files> | ||
</Package> | ||
<Package> | ||
<Name>rocm-opencl-devel</Name> | ||
<Summary xml:lang="en">Development files for rocm-opencl</Summary> | ||
<Description xml:lang="en">OpenCL 2.2 compatible language runtime | ||
<Summary xml:lang="en">OpenCL 2.2 compatible language runtime for AMD Radeon GPUs</Summary> | ||
<Description xml:lang="en">OpenCL 2.2 compatible language runtime for AMD Radeon GPUs | ||
</Description> | ||
<PartOf>programming.devel</PartOf> | ||
<RuntimeDependencies> | ||
<Dependency release="1">rocm-opencl</Dependency> | ||
<Dependency releaseFrom="1">rocm-rocclr-devel</Dependency> | ||
<Dependency releaseFrom="1">rocm-opencl</Dependency> | ||
</RuntimeDependencies> | ||
<Files> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl.hpp</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl2.hpp</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_dx9_media_sharing_intel.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_egl.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_ext.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_ext_intel.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_gl.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_gl_ext.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_icd.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_platform.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_va_api_media_sharing_intel.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_version.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/opencl.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/icd/loader/icd_dispatch.h</Path> | ||
</Files> | ||
</Package> | ||
<Package> | ||
<Name>rocm-rocclr</Name> | ||
<Summary xml:lang="en">OpenCL 2.2 compatible language runtime for AMD Radeon GPUs</Summary> | ||
<Description xml:lang="en">OpenCL 2.2 compatible language runtime for AMD Radeon GPUs | ||
</Description> | ||
<Files> | ||
<Path fileType="library">/usr/lib64/librocclr.so.5.1</Path> | ||
<Path fileType="library">/usr/lib64/librocclr.so.5.1.0</Path> | ||
</Files> | ||
</Package> | ||
<Package> | ||
<Name>rocm-rocclr-devel</Name> | ||
<Summary xml:lang="en">OpenCL 2.2 compatible language runtime for AMD Radeon GPUs</Summary> | ||
<Description xml:lang="en">OpenCL 2.2 compatible language runtime for AMD Radeon GPUs | ||
</Description> | ||
<RuntimeDependencies> | ||
<Dependency releaseFrom="1">rocm-rocclr</Dependency> | ||
</RuntimeDependencies> | ||
<Files> | ||
<Path fileType="header">/usr/include/rocclr/amdocl/CMakeFiles/amdocl.dir</Path> | ||
|
@@ -160,30 +197,13 @@ | |
<Path fileType="header">/usr/include/rocclr/utils/macros.hpp</Path> | ||
<Path fileType="header">/usr/include/rocclr/utils/util.hpp</Path> | ||
<Path fileType="header">/usr/include/rocclr/utils/versions.hpp</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl.hpp</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl2.hpp</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_dx9_media_sharing_intel.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_egl.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_ext.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_ext_intel.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_gl.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_gl_ext.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_icd.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_platform.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_va_api_media_sharing_intel.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/cl_version.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/CL/opencl.h</Path> | ||
<Path fileType="header">/usr/include/rocm-opencl/icd/loader/icd_dispatch.h</Path> | ||
<Path fileType="library">/usr/lib64/libamdocl64.so</Path> | ||
<Path fileType="library">/usr/lib64/libcltrace.so</Path> | ||
<Path fileType="library">/usr/lib64/librocclr.so</Path> | ||
<Path fileType="data">/usr/share/cmake/Modules/ROCclr.cmake</Path> | ||
</Files> | ||
</Package> | ||
<History> | ||
<Update release="1"> | ||
<Date>2022-05-04</Date> | ||
<Date>2022-05-13</Date> | ||
<Version>5.1.0</Version> | ||
<Comment>Packaging update</Comment> | ||
<Name>Jacek Jagosz</Name> | ||
|
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