aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp
diff options
context:
space:
mode:
authorArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 14:59:52 +0500
committerArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 15:25:07 +0500
commit1413237d43010220a997a7cc5a4bebf040ef8075 (patch)
tree03f1e18ac364e3134a25cf55f8091a2e04a31793 /meta-amd-bsp
parentcc5953c3a2f348543ed44492244627ee0de76239 (diff)
downloadmeta-amd-1413237d43010220a997a7cc5a4bebf040ef8075.tar.gz
meta-amd-1413237d43010220a997a7cc5a4bebf040ef8075.tar.bz2
meta-amd-1413237d43010220a997a7cc5a4bebf040ef8075.zip
recipes-rocm: move from r1000 & v1000 to the common meta-amd-bsp layer
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
Diffstat (limited to 'meta-amd-bsp')
-rw-r--r--meta-amd-bsp/recipes-rocm/hsa/files/hsa.tar.gzbin0 -> 9571373 bytes
-rw-r--r--meta-amd-bsp/recipes-rocm/hsa/files/libhsakmt.tar.gzbin0 -> 70390 bytes
-rw-r--r--meta-amd-bsp/recipes-rocm/hsa/hsa.bb31
-rw-r--r--meta-amd-bsp/recipes-rocm/hsa/libhsakmt.bb29
-rw-r--r--meta-amd-bsp/recipes-rocm/opencl/files/opencl.tar.gzbin0 -> 77557463 bytes
-rw-r--r--meta-amd-bsp/recipes-rocm/opencl/opencl.bb38
6 files changed, 98 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-rocm/hsa/files/hsa.tar.gz b/meta-amd-bsp/recipes-rocm/hsa/files/hsa.tar.gz
new file mode 100644
index 00000000..d9a080f2
--- /dev/null
+++ b/meta-amd-bsp/recipes-rocm/hsa/files/hsa.tar.gz
Binary files differ
diff --git a/meta-amd-bsp/recipes-rocm/hsa/files/libhsakmt.tar.gz b/meta-amd-bsp/recipes-rocm/hsa/files/libhsakmt.tar.gz
new file mode 100644
index 00000000..ec2c5ac8
--- /dev/null
+++ b/meta-amd-bsp/recipes-rocm/hsa/files/libhsakmt.tar.gz
Binary files differ
diff --git a/meta-amd-bsp/recipes-rocm/hsa/hsa.bb b/meta-amd-bsp/recipes-rocm/hsa/hsa.bb
new file mode 100644
index 00000000..d80faa9c
--- /dev/null
+++ b/meta-amd-bsp/recipes-rocm/hsa/hsa.bb
@@ -0,0 +1,31 @@
+SUMMARY = "AMD Heterogeneous System Architecture HSA"
+DESCRIPTION = "This package includes the user-mode API \
+ interfaces and libraries necessary for host \
+ applications to launch compute kernels to \
+ available HSA kernel agent."
+
+LICENSE = "NCSA"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=abc754edcbe650f4f548eb4efc3cf8d5"
+
+RDEPENDS_${PN} = "libhsakmt"
+
+SRC_URI = "file://hsa.tar.gz"
+SRC_URI[md5sum] = "e27a7b3821a6be61c510542840e865d2"
+
+S = "${WORKDIR}/hsa"
+
+# Skip configure and compile
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+INSANE_SKIP_${PN} += "already-stripped build-deps ldflags"
+
+do_install () {
+ # Install the binary components
+ install -d ${D}${bindir}
+ cp -r ${S}/bin/* ${D}${bindir}
+ install -d ${D}${libdir}
+ cp -r ${S}/lib/* ${D}${libdir}
+ install -d ${D}${includedir}
+ cp -r ${S}/include/* ${D}${includedir}
+}
diff --git a/meta-amd-bsp/recipes-rocm/hsa/libhsakmt.bb b/meta-amd-bsp/recipes-rocm/hsa/libhsakmt.bb
new file mode 100644
index 00000000..db535faf
--- /dev/null
+++ b/meta-amd-bsp/recipes-rocm/hsa/libhsakmt.bb
@@ -0,0 +1,29 @@
+SUMMARY = "ROCt Library"
+DESCRIPTION = "This package includes the user-mode API interfaces \
+ used to interact with the ROCk driver. Currently \
+ supported agents include only the AMD/ATI Fiji family \
+ of discrete GPUs."
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=b1afa13daf74f4073c4813368bc1b1b0"
+
+RDEPENDS_${PN} = "libpci numactl"
+
+SRC_URI = "file://libhsakmt.tar.gz"
+SRC_URI[md5sum] = "4fe4381a7ec30219f115a8915c85a97c"
+
+S = "${WORKDIR}/libhsakmt"
+
+# Skip configure and compile
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+INSANE_SKIP_${PN} += "already-stripped build-deps"
+
+do_install () {
+ # Install the binary components
+ install -d ${D}${libdir}
+ cp -r ${S}/lib/* ${D}${libdir}
+ install -d ${D}${includedir}
+ cp -r ${S}/include/* ${D}${includedir}
+}
diff --git a/meta-amd-bsp/recipes-rocm/opencl/files/opencl.tar.gz b/meta-amd-bsp/recipes-rocm/opencl/files/opencl.tar.gz
new file mode 100644
index 00000000..43d62269
--- /dev/null
+++ b/meta-amd-bsp/recipes-rocm/opencl/files/opencl.tar.gz
Binary files differ
diff --git a/meta-amd-bsp/recipes-rocm/opencl/opencl.bb b/meta-amd-bsp/recipes-rocm/opencl/opencl.bb
new file mode 100644
index 00000000..3a83afab
--- /dev/null
+++ b/meta-amd-bsp/recipes-rocm/opencl/opencl.bb
@@ -0,0 +1,38 @@
+SUMMARY = "OpenCL components for development on AMD platforms"
+DESCRIPTION = "This package provides binary runtime/development \
+ components for utilizing OpenCL on AMD platforms."
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+RDEPENDS_${PN} = "hsa ${PN}-bitcodes ${PN}-amd-drivers"
+
+SRC_URI = "file://opencl.tar.gz"
+SRC_URI[md5sum] = "8ace16bb9d76824ffad1dc0d18089466"
+
+S = "${WORKDIR}/opencl"
+
+# Skip configure and compile
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+PACKAGES =+ "${PN}-bitcodes ${PN}-amd-drivers"
+
+FILES_${PN}-bitcodes = "${libdir}/bitcode/*"
+FILES_${PN}-amd-drivers = "${libdir}/libcltrace.so \
+ ${libdir}/libamdocl64.so"
+
+INSANE_SKIP_${PN} += "already-stripped build-deps ldflags"
+INSANE_SKIP_${PN}-amd-drivers += "ldflags file-rdeps"
+
+do_install () {
+ # Install the binary components
+ install -d ${D}${bindir}
+ cp -r ${S}/bin/x86_64/* ${D}${bindir}
+ install -d ${D}${libdir}
+ cp -r ${S}/lib/x86_64/* ${D}${libdir}
+ install -d ${D}${includedir}
+ cp -r ${S}/include/* ${D}${includedir}
+ install -d ${D}${sysconfdir}/OpenCL
+ cp -r ${S}/etc/* ${D}${sysconfdir}/OpenCL
+}